-
Notifications
You must be signed in to change notification settings - Fork 2
RDF API working draft
linclark edited this page Sep 13, 2010
·
6 revisions
- Since a core part of Drupal (simpletest) uses Simple XML, we should standardize to that.
- Do we need to support URNs?
- Would it be valid to say that the vocabs can only be imported in RDF/XML? Then we can process based on QName
function | notes |
---|---|
rdf_is_valid_uri | |
rdf_is_valid_url | – possible deprecation, in favor of valid_url. Only problem is that valid_url limits to http and ftp protocols. - needs rewrite, does not account for Unicode. - If not deprecated, do not expose. Only expose rdf_is_valid_uri |
rdf_is_valid_urn | – suggest deprecation, depending on whether we need to support URNs. - If not deprecated, do not expose. Only expose rdf_is_valid_uri - If not deprecated, needs rewrite as mailto is a url scheme |
rdf_uri_to_qname | – needs rewrite. currently checks the string to find the longest match, which is inexact and inefficient. Since QName local parts cannot contain delimiters, we can just check for the last delimiter to split the ns from the local part. |