Chapter 7. Inference on an RDF Graph

The RDF Graph feature supports RDF Schema (RDFS) and Web
Ontology Language (OWL) inference through Apache Jena OntModel
APIs. It also has the ability to support other memory-based
third party reasoners, such as Pellet and TrOWL.

Use Jena OntModel APIs

Apache Jena provides a set of Java APIs including
Reasoner,
ReasonerFactory,
InfModel,
OntModelSpec, OntModel and more. Refer
to
http://jena.apache.org/documentation/inference/index.html
for details. The following example describes how to use
OWL_MEM_RULE_INF to build an OntologyModel on top of an
OracleModelNoSql instance. The inference results are added to
an in-memory Jena Model.