On 7.3.2016 16:35, Andy Seaborne wrote:
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:



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"

Sorry it works with s-query

bin/s-query --service=http://speechdev:3031/ds/query 'SELECT ?s ?p ?o WHERE { GRAPH <http://www.lingsoft.fi/LingsoftOntology/>{?s ?p ?o}} LIMIT 2'

but www-ui does not work. Buttons under "manage datasets" do not do anything and buttons under "dataset" say "Please select a dataset."

Br,
Mikael


./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



--
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: [email protected]
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