On 21.01.2010 16:56:39, Tab Atkins Jr. wrote: >On Thu, Jan 21, 2010 at 3:36 PM, Benjamin Nowack <bnowack@semsol.com> wrote: >> * The parser finds itemtype=http://xmlns.com/foaf/0.1/Person >> * In common RDF practice, this (slash-)URI represents an RDF >> Â Class called "Person" from an RDF vocabulary identified by >> Â "http://xmlns.com/foaf/0.1/" (The other case are hash-URIs, >> Â where the term name is separated from the vocabulary URI >> Â by a #, e.g. as in "http://rdfs.org/sioc/ns#User"). > >Is it possible to relatively reliably distinguish between slash and >hash uri structures based on the itemtype? If so, can your algorithm >be extended to also handle the common hash-uri structure? Yes and yes. The regex is basically just /^(.*[\/\#])([^\/\#]+)$/. prefix.cc has a pretty comprehensive list of RDF vocabs in use [1]. They'd all work with this algorithm. Ben [1] http://prefix.cc/popular/all.file.txt > >~TJ >Received on Friday, 22 January 2010 08:40:20 UTC
This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:08 UTC