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

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
./fuseki-server --update --port 3030 --loc=DB /http://www.lingsoft.fi/LingsoftOntology/

Br,
Mikael

--
www.lingsoft.fi

Speech Applications - Language Management - Translation - Reader's and Writer's 
Tools - Text Tools - E-books and M-books

Mikael Pesonen
System Engineer

e-mail: mikael.peso...@lingsoft.fi
Tel. +358 2 279 3300

Time zone: GMT+2

Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND

Turku Office
Linnankatu 10 A
FI-20100 Turku
FINLAND

Reply via email to