On 10/02/13 20:46, David Jordan wrote:
I have some Java code in which I have added triples to the database
as part of a named model. Using SQL, I have confirmed that column
quads.g contains a reference to the name that I have provided. I can
also query that model in Java and retrieve the triples. For example,
I have the following query in a file.
select ?s where { ?s rdf:type :Individual }
It is not clear how to do the same query using sdbquery. By default,
when I run this query it returns no results. I assume that is because
the query is only against the default graph.
Correct.
How do I instruct the query to include the named model? I tried using
the FROM NAMED construct in the query itself, but I get the following
exception:
Either
WHERE { GRAPH ?g {?s rdf:type :Individual } }
or set the context symbol to enable the query patterns on the default
graph match against the union of the named graphs.
http://jena.apache.org/documentation/sdb/configuration.html#current-options
Andy
com.hp.hpl.jena.sdb.SDBException: Queries with dataset descriptions
(FROM/FROM NAMED) not supported
Ideally, I would like to specify the model being used on the command
line or be able to identify the named model in the configuration file
and refer to it. Is there a way to use named models with sdbquery???