On 10/10/13 10:12, Dibyanshu Jaiswal wrote:
Hi!

I am new to semantic web technologies, and have started with RDF/OWL for
making web applications.
Currently i have a requirement for accessing a Ontology (OntModel with
OWLModelSpec.OWL_MEM_RULE_INF) from an OWL file.I am also able to Store in
local TDB, all done by JENA 2.11.0. Thanks to the Nice API and Tutorial
provided for the same.
I need to fire SPARQL queries on the model to get some fruitful results.
Once the TDB is created, in order to fire search query on the same, the
results are not as expected.

As per my SPARQL qurey, when directly made to the TDB Dataset, does not
returns results (i.e. results with inference rules) accordingly. Where as
If the same query is fired on the OntModel (loaded from the TDB, with
OWLModelSpec.OWL_MEM_RULE_INF ) itself the results are found to be as
expected.

Generally, showing the details of what you are doing makes it easier for people to provide answers. The details matter :-)


How do I solve the problem of making queries directly to the Dataset and
not to OntModel with inference rule enabled?

Inference is a characteristic of the model (in RDF inference is within models/graphs, not between graphs).

You need to create an ont model backed by a graph from the TDB store.

        Andy

Please help!!
Thanks in Advance!!


Reply via email to