Hi guys,

I'm using Jena(v3.0.1) to build a sematic web application.

Suppose I need to query a Dataset
<https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/Dataset.html>
(which
can be stored in memory, on disk, or on a remote server). This dataset can
contain models with inferred statements. I know that it is possible to
retrieve statements from that dataset using QueryExecution
<https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/QueryExecution.html>
class,
but it also includes inferred statements.

My question is: is there a way to exclude inferred statements when querying
a Jena Dataset?

In other words i'm looking for something similar to Sesame
RepositoryConnection::getStatements
<http://rdf4j.org/sesame/2.7/apidocs/org/openrdf/repository/RepositoryConnection.html#getStatements(org.openrdf.model.Resource,
org.openrdf.model.URI, org.openrdf.model.Value, boolean,
org.openrdf.model.Resource...)> method. This method has a parameter that
let you specify if inferred statements must be included or not in the
result.

Thank you in advance.

Reply via email to