From: P.L.Coetzee <P.L...@op...> - 2007-08-21 15:47:28
|
Hi Marco, Unless you've used them this way around in your instance data, you've = got the namespace prefix and URI swapped over for rdf: and rdfs: - as = you have them, you're asking for properties = <http://www.w3.org/1999/02/22-rdf-syntax-ns#label> and = <http://www.w3.org/2000/01/rdf-schema#type>, not = <http://www.w3.org/2000/01/rdf-schema#label> and = <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>. My guess is that the = query which will give you what you want is: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?userstory WHERE { ?res rdfs:label ?userstory . ?res rdf:type ?type . } Hope that helps your debugging :) Cheers, Peter -----Original Message----- From: rdf...@li... on behalf of = Marco Rieth Sent: Tue 21/08/2007 14:44 To: rdf...@li... Subject: Re: [Rdfapi-php-interest] Unbound Prefix =20 Ok, the space between : and < seems to work. The SparqlParser doesn't complain anymore. But now I have the problem, that no results are = returned, although there should be... Trying to select all triples works just fine: PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/2000/01/rdf-schema#> SELECT * WHERE { ?res ?blah ?more } But as soon as I try to select a specific triple using the properties rdfs:label and rdf:type, the result is false: PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?userstory WHERE { ?res rdfs:label ?userstory ?res rdf:type ?type } Could it be, that the rdf-export from the wiki (it's the rdf-export from semantic media wiki) is not compatible with RAP? Or is my query still = messed up? |