On 09/02/15 21:47, Fabio Ricci wrote:
Dear Jena community
I am starting to use the Jena framework but before I am installing/using
the fuseki RDF server.
I could start and run it properly but with some peculiarities:
1. When started with the mem option (in memory) and some RDF data is
loaded into a graph (no default graph) the only command that runs well
is the s-get with the graph again: All the RDF statements are returned.
The s-query --service is not running - nothing returned. And in the
webconsole http://localhost:3030/sparql.html none of my graphs are
loadable, neither per from <graph> nor by the apposite field "Target
Graph URI". Why is this so? Is there a bug in the fuseki server?
Here my operations:
./s-put http://localhost:3030/ds/data http://semweb.ch/SEMWEB
/Users/fabio/Documents/DATA/thesauri/pp_project_semweb.ttl
That puts data into named graph http://semweb.ch/SEMWEB.
./s-get http://localhost:3030/ds/data http://semweb.ch/SEMWEB
./s-query --service http://localhost:3030/ds/query 'SELECT * from
<http://semweb.ch/SEMWEB> {?s ?p ?o}'
To access a named graph, use GRAPH. FROM on a general dataset tries to
load it from the web. Did the fuskei log say anything about not being
able to load it?
Try:
SELECT * { GRAPH <http://semweb.ch/SEMWEB> { ?s ?p ?o} }'
2. I restarted the fuseki server with "./fuseki-server --update
--loc=./RDFDATA /ds" and noticed that all three of the commands ran well:
./s-put http://localhost:3030/ds/data http://semweb.ch/SEMWEB
/Users/fabio/Documents/DATA/thesauri/pp_project_semweb.ttl
./s-get http://localhost:3030/ds/data http://semweb.ch/SEMWEB
./s-query --service http://localhost:3030/ds/query 'SELECT * from
<http://semweb.ch/SEMWEB> {?s ?p ?o}'
For TDB, FROM picks out a graph from the dataset, not the whole web.
TDB can't load from the web for a temporary dataset just for the query
so the mechanism is overloaded. See the thread with Willie Minor.
Again. GRAPH is the way to access the named graph. Or
--set tdb:unionDefaultGraph=true
to make the default graph for query the computed union of all the named
graphs.
still the web console "SPARQLer" "could not load" the graph
"http://semweb.ch/SEMWEB"
I'd expect hat from the in-memory dataset but not with TDB. Testing
here, I don't see that with --loc -- I see some query results.
Andy
What is wrong in what I am doing?
Thank you for your advice
Regards
Fabio