On 07/03/16 13:39, Mikael Pesonen wrote:
Hi,
thanks for the help!
On 4.3.2016 16:09, Andy Seaborne wrote:
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
Sorry missing space, so:
./s-put http://localhost:3030/ds/data
http://www.lingsoft.fi/LingsoftOntology/ skosified.rdf
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 ...
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)
Okay so If I want to load data to named graph like this
tdbloader --loc ./DB/ --graph=http://www.lingsoft.fi/LingsoftOntology/
skosified.rdf
You now have a database "DB" with a single named graph
http://www.lingsoft.fi/LingsoftOntology/
how should I start the server? I don't get what the /DatasetPathName means.
These won't work:
./fuseki-server --update --port 3030 --loc=DB /ds
That should work (if in the same directory as the load).
What do you mean by "won't work"
./fuseki-server --update --port 3030 --loc=DB
/http://www.lingsoft.fi/LingsoftOntology/
Fuseki publishes datasets with a name, here "/ds" so the query service
will be http://<<HOST>>:3030/ds/query
Br,
Mikael