On 06/08/11 02:13, Don Gourley wrote:
I have a thesaurus in SKOS format that I want to publish as linked
data. I am using a simple httpd/fuseki/tdb stack to do this without
any custom programming. httpd does the content negotiation, and with
mod_rewrite and mod_proxy passes DESCRIBE queries to the fuseki server
to deliver RDF responses.
fuseki (or TDB?) assigns prefixes like 'j.0' for the namespaces it
doesn't know about (even though declared in the SKOS input to
tdbloader). I would like the namespace prefix for
"http://www.w3.org/2004/02/skos/core#" to be 'skos' as in my original
SKOS file. Is there any way to specify this without writing my own
java code for the SPARQL server?
For example, see: http://lod.nal.usda.gov/nalt/2111.rdf
Let me know if there is any other information about my (very simple)
setup that would inform a solution. I understand that this is purely
an aesthetic human-readability aspect to my RDF, but it could help
sell our early efforts with linked open data in the organization.
thanks, Don
Don,
The prefixes come from two places:
* The dataset being queried
* The query
If loaded from n-triples, there will not be any triples in the dataset.
You an add them later - simply add a model (it does not have to have any
triples) in Turtle or RDF/XML i.e. a format that does have prefixes.
If that does not work (there was a bug loading in Turtle prefixes IIRC),
then please coudl you provide a complete, minimal example.
The query should also contribute prefixes, whether used in the pattern
or not.
Andy