Hi Roland, It looks to me like you imported the IRI dumps of the Dutch DBpedia and try to query using URIs. http://nl.dbpedia.org/resource/Waterski\u00EBn is the unicode escaped version, encoded in ASCII, of the IRI. In order for your queries to work you need to use IRIs.
Cheers, Alexandru Alexandru-Aurelian Todor Freie Universität Berlin Department of Mathematics and Computer Science Institute of Computer Science AG Corporate Semantic Web Königin-Luise-Str. 24/26, room 116 14195 Berlin Germany On 02/10/2014 09:03 PM, Roland Cornelissen wrote: > Hi, > > I have a local triplestore (VOS7) containing links to DBpedia Dutch > (nl.dbpedia.org). > Some of the URI's in DBpedia contain non ASCII characters, like > http://nl.dbpedia.org/resource/Waterskiën > which are presented as such in SPARQL results. > But when used in a federated query on my local store including > http://nl.dbpedia.org/sparql the query fails on the non-ASCII character: > > Virtuoso RDFZZ Error DB.DBA.SPARQL_REXEC('http://nl.dbpedia.org/sparql', > ...) returned Content-Type 'text/plain' status 'HTTP/1.1 400 Bad Request > ' > Virtuoso 37000 Error SP030: SPARQL compiler, line 0: Bad character '\' > (0x5c) in SPARQL expression at '\' > > SPARQL query: > define sql:big-data-const 0 define output:format "HTTP+XML > application/sparql-results+xml" define output:dict-format "HTTP+TTL > text/rdf+n3" SELECT ?abstract > WHERE { <http://nl.dbpedia.org/resource/Waterski\u00EBn> > <http://dbpedia.org/ontology/abstract> ?abstract . } > > SPARQL query: > define sql:big-data-const 0 > #output-format:text/html > define sql:signal-void-variables 1 SELECT * { > SERVICE <http://data.metamatter.nl/sparql> { > ?s owl:sameAs ?dbp . > } SERVICE <http://nl.dbpedia.org/sparql> { > ?dbp dbpo:abstract ?abstract. > } > } > > Any advice on how to handle these non-ASCII chars in DBpedia URI's would > greatly appreciated. > > Thanks, > Roland > > ------------------------------------------------------------------------------ > Androi apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Dbpedia-discussion mailing list > Dbpedia-discussion@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Dbpedia-discussion mailing list Dbpedia-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion