You are currently browsing the daily archive for February 26th, 2009.
This is an awesome little service that my colleague Derek Baron pointed me to.
I’m constantly forgetting what the namespace is for a given prefix in RDF. This little service lets you type in the prefix that you need and gives you back the namespace that you were looking for.
Try these examples. If you look at the source, you will see it is very easy to use in your own tools.
http://prefix.cc/foaf,dc,owl.ttl
If you add the .sparql extension, it will give you back a valid SPARQL query all ready to edit.
http://prefix.cc/rdf,rdfs,owl,dc,foaf,skos.sparql
If you want to get just the plain text for you tool, you can add .plain to the format.
http://prefix.cc/rdf,rdfs,owl,dc,foaf,skos.sparql.plain
And you get back this nicely formatted SPARQL query in plain text (no html tags).
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT *
WHERE {
?s ?p ?o .
}
