7

3

I'm looking snippet or list with the most common XML namespace prefixes, and their corresponding base URL:s (like for rdf, rdfs, xsd, owl, foaf and the like), for easy copy and paste into an RDF/XML document.

As an example, the rdf namespace, which is defined in the basic rdf:RDF XML tag like so (not sure if this is the base url of the latest standard though):

<rdf:RDF
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>

Anybody knows of a good such list? Otherwise maybe we can collect such a list here? Guess it would make life easier for many newcomers to the Semantic web / RDF/XML world.

flag

4 Answers

6

This is the set of namespaces that I use most often, which might be of use:

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:owl="http://www.w3.org/2002/07/owl#" 
xmlns:dc="http://purl.org/dc/terms/"
xmlns:foaf="http://xmlns.com/foaf/0.1/" 
xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
xmlns:dbp="http://dbpedia.org/dbprop/"
xmlns:geo="http://www.geonames.org/ontology#"
xmlns:gr="http://purl.org/goodrelations/v1#" 
xmlns:commerce="http://search.yahoo.com/searchmonkey/commerce/"
xmlns:media="http://search.yahoo.com/searchmonkey/media/" 
xmlns:cb="http://cb.semsol.org/ns#" >
link|flag
Thanks, that's a great snippet! – Samuel Lampa Dec 8 at 12:50
I've just corrected a typo in the owl namespace. Sorry about that. – billroberts Dec 13 at 16:49
11

I'm not aware of any lists as such but what you want is probably prefix.cc, it's a service created by Richard Cyganiak from DERI and it's basically a lookup service for prefixes. Enter a prefix and it'll give you one/more Namespace URIs typically associated with that prefix.

As far as I remember it also allows you to export prefixes in various formats such as RDF/XML snippets.

Unfortunately the site is down at the moment, from his tweets Richard is aware of the issue but obviously hasn't resolved it yet. If it's still giving error messages when you go try again in a couple of days and hopefully it'll be sorted.

link|flag
Thanks, it does indeed sound like what I'm looking for. Hope the site is up ruuning soon. – Samuel Lampa Dec 7 at 15:42
Richard says it should hopefully be back up tomorrow – Rob Vesse Dec 7 at 21:37
In case it's not obvious, prefix.cc has a list of [all the popular prefixes available](prefix.cc/popular/all.rdf) (change the file extension to get the list in different syntaxes including .json, .sparql, and .txt). – kasei 13 hours ago
3

Ping the Semantic Web has stats about Namespaces and Types.

link|flag
0

Thanks, these make nice snippets in TextMate. Mix with N3/Turtle syntax highlighting and now you're cooking.

http://www.openvest.com/trac//wiki/n3SyntaxHighlighting

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.