Problem with namespace resolution for AG in CL

Stewart Wallace <[email protected]> Tue, 28 Oct 2008 10:41:11 +0000 (UTC)
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
I have recently installed Allegro CL 8.2 and successfully created an AG
triple-store and imported some triples.  I'm now trying to run some simple
sparql queries but I can't seem to get the namespaces to resolve.  When I
evaluate (display-namespaces), I get a satisfactory looking list like this:

rdfs => http://www.w3.org/2000/01/rdf-schema#
err => http://www.w3.org/2005/xqt-errors#
fn => http://www.w3.org/2005/xpath-functions#
rdf => http://www.w3.org/1999/02/22-rdf-syntax-ns#
mp1 => http://www.owl-ontologies.com/unnamed0.owl#
xs => http://www.w3.org/2001/XMLSchema#
xsd => http://www.w3.org/2001/XMLSchema#
owl => http://www.w3.org/2002/07/owl#

but when I run a simple query like (sparql:run-sparql " SELECT DISTINCT ?s ?o
WHERE { ?s rdfs:subClassOf ?o}"), I get this error (and the same for any other
Qnames I try to use):

Error: Parse error: namespace mapping for "rdfs" not defined when expanding
QName "rdfs:subClassOf".   [condition type:
SPARQL-LEXER-ERROR-NAMESPACE-MAPPING-NOT-DEFINED]

Much appreciated if anyone can suggest something I am missing.

Thanks,



Stewart Wallace