Hi Mikael!
There are many ways.
If you use Fuseki, then you can submit SPARQL queries over HTTP. The
easiest way is probably to use the rsparql command line tool (from the
Jena distribution) or s-query (from the Fuseki distribution).
If you only have a TDB but no Fuseki, then you can use the tdbquery
command. It takes a --query (or --file) parameter specifying a file with
the SPARQL query.
-Osma
On 20/06/16 11:20, Mikael Pesonen wrote:
Hi,
I have a graph with about 10 million triples and separate Lucene index.
Now Im querying data first from Jena and then filtering results with
Lucene query result.
Problem is that getting ~100k results is too slow:
SELECT ?s ?p ?o WHERE {
GRAPH <...graph...> {
?s dcterms:isPartOf <...collection...> .
?s ?p ?o } }
Querying Lucene first and then sending its result to Jena could be
faster, but sparql query size will be 10-100k so command line wont work.
Is it possible to make large Jena queries without Java?
Thanks,
Mikael
--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
[email protected]
http://www.nationallibrary.fi