From: Tom H. <tom...@gm...> - 2007-08-21 15:40:07
|
Hi Marco, It might be the whole of the solution, but the triples patterns in your query should be delimited with full stops ('.'), e.g. 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 . } (Optional on the last triple pattern IIRC, but I always find it useful for consistency). HTH, and good luck :) Tom. On 21/08/07, Marco Rieth <cre...@go...> wrote: > 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? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > |