On 04/03/16 10:58, Mikael Pesonen wrote:
Hi, I'm just learning to use these tools. I have successfully setup jena-fuseki1-1.1.2 and am able to make SPARQL queries. But for some reason jena-fuseki-2.3.1 does not find data when inserted in TDB. So I am missing something but cannot spot what... Here's the comparison of procedures. First one works, second one doesn't. The test query is this: /s-query --service=http://speechdev.lingsoft.fi:3030/ds/query 'SELECT ?s ?p ?o WHERE { GRAPH <http://www.lingsoft.fi/LingsoftOntology/>{?s ?p ?o}} LIMIT 2' 1) cd jena-fuseki1-1.1.2 ./fuseki-server --update --mem /ds ./s-put http://localhost:3030/ds/data http://www.lingsoft.fi/LingsoftOntology/skosified.rdf
Unclear why that worked because s-put needs 3 command line arguments. s-put datasetURI graphname file_for_data
2) cd apache-jena-fuseki-2.3.1 mkdir ./DB tdbloader2 --loc ./DB/ skosified.rdf
That loads data into the default graph. Use tdbloader (not 2) and --graph or change the query as below ...
INFO Total: 13,246 tuples : 8.67 seconds : 1,528.15 tuples/sec [2016/03/04 12:03:16 EET] ./fuseki-server --update --port 3031 --loc=DB /ds [2016-03-04 12:05:44] FusekiINFO [1] GET http://speechdev.lingsoft.fi:3031/ds/query?query=SELECT+%3Fs+%3Fp+%3Fo+WHERE+%7B+GRAPH+%3Chttp%3A%2F%2Fwww.lingsoft.fi%2FLingsoftOntology%2F%3E%7B%3Fs+%3Fp+%3Fo%7D%7D+LIMIT+2 [2016-03-04 12:05:44] Fuseki INFO [1] GET /ds :: 'query' :: <none> ? query=SELECT+%3Fs+%3Fp+%3Fo+WHERE+%7B+GRAPH+%3Chttp%3A%2F%2Fwww.lingsoft.fi%2FLingsoftOntology%2F%3E%7B%3Fs+%3Fp+%3Fo%7D%7D+LIMIT+2 [2016-03-04 12:05:44] Fuseki INFO [1] Query = SELECT ?s ?p ?o WHERE { GRAPH <http://www.lingsoft.fi/LingsoftOntology/>{?s ?p ?o}} LIMIT 2
GRAPH <http://www.lingsoft.fi/LingsoftOntology/>{?s ?p ?o} It's looking in a named graph , not the default graph. You can remove the GRAPH part or change the load. Andy
[2016-03-04 12:05:44] Fuseki INFO [1] exec/select [2016-03-04 12:05:44] Fuseki INFO [1] 200 OK (214 ms)
