From: Max O. <ma...@ni...> - 2015-04-15 02:00:29
|
Hi, I have trying to get the RDR extension working as this is the feature I'm most interested in. So I copied a simple statement from the web site into a file called 'bob.tut' @prefix : <http://bigdata.com> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . :bob foaf:name "Bob" . <<:bob foaf:age 23>> dct:creator <http://example.com/crawlers#c1> ; dct:source <http://example.net/homepage-listing.html> . (BTW, the trailing dot on line 2 and ‘;’ on line 5 is missing in the wiki writeup). I then created a namespace “test” with RDR selected which gave me the following service description: …. <endpoint xmlns="http://www.w3.org/ns/sparql-service-description#" rdf:resource="http://localhost:9999/bigdata/namespace/test/sparql”/> … <feature xmlns="http://www.w3.org/ns/sparql-service-description#" rdf:resource="http://www.bigdata.com/rdf#/features/KB/Mode/Sids"/> <feature xmlns="http://www.w3.org/ns/sparql-service-description#" rdf:resource="http://www.bigdata.com/rdf#/features/KB/TruthMaintenance"/> If I now try to upload ‘bob’, I get the following error: $ curl -D- -H 'Content-Type: text/turtle' --upload-file bob.tut -X POST ' http://localhost:9999/bigdata/namespace/test/sparql/test/sparql?context-uri=http://example.org/tbox' HTTP/1.1 100 Continue HTTP/1.1 500 Server Error Content-Type: text/plain Transfer-Encoding: chunked Server: Jetty(9.2.3.v20140905) INSERT-WITH-BODY: baseURI= http://192.168.59.3:9999/bigdata/namespace/test/sparql, context-uri=[ http://example.org/tbox] java.util.concurrent.ExecutionException: org.openrdf.rio.RDFParseException: IRI included an unencoded space: '32' [line 5] …. Looks like the RDF parser didn’t get the memo that I’m sending RDR data, but I have no idea what I’m doing wrong, nor apparently what I'm doing - period :) Any help would be greatly appreciated. Cheers, -max |