|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An extension to the normal Model interface that supports access to any underlying inference capability.
In Jena the primary use of inference is to generate additional entailments from a set of RDF data. These entailments just appear as additional RDF data in the inferred model and are accessed through the normal API. For example, if an inference engine can determine the class of a resource "foo" is "fooClass" then all Model API calls such as listStatements and getProperty should act as if the triple:
foo rdf:type fooClass .were in the data.
A few reasoner services cannot be made directly available in this way and the InfGraph extension gives access to these - specifically access to validation/consistency checking, derivation traces and find-with-posits.
Note that this interface, and especially the interface onto ValidityReports and Derivations are not yet stable.
Nested Class Summary |
Nested classes inherited from class com.hp.hpl.jena.shared.PrefixMapping |
com.hp.hpl.jena.shared.PrefixMapping.Factory, com.hp.hpl.jena.shared.PrefixMapping.IllegalPrefixException, com.hp.hpl.jena.shared.PrefixMapping.JenaLockedException |
Field Summary |
Fields inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
Standard |
Fields inherited from interface com.hp.hpl.jena.rdf.model.ModelLock |
READ, WRITE |
Method Summary | |
java.util.Iterator |
getDerivation(Statement statement)
Return the derivation of the given statement (which should be the result of some previous list operation). |
Model |
getRawModel()
Return the raw RDF model being processed (i.e. the argument to the Reasonder.bind call that created this InfModel). |
Reasoner |
getReasoner()
Return the Reasoner which is being used to answer queries to this graph. |
StmtIterator |
listStatements(Resource subject,
Property predicate,
RDFNode object,
Model posit)
Find all the statements matching a pattern. |
void |
prepare()
Perform any initial processing and caching. |
void |
rebind()
Cause the inference model to reconsult the underlying data to take into account changes. |
void |
setDerivationLogging(boolean logOn)
Switch on/off drivation logging. |
ValidityReport |
validate()
Test the consistency of the underlying data. |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFReaderF |
getReader, getReader, setReaderClassName |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFWriterF |
getWriter, getWriter, setWriterClassName |
Methods inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
expandPrefix, getNsPrefixMap, getNsPrefixURI, getNsURIPrefix, lock, setNsPrefix, setNsPrefixes, setNsPrefixes, usePrefix |
Methods inherited from interface com.hp.hpl.jena.rdf.model.ModelLock |
enterCriticalSection, leaveCriticalSection |
Method Detail |
public Model getRawModel()
public Reasoner getReasoner()
public void rebind()
public void prepare()
public ValidityReport validate()
public StmtIterator listStatements(Resource subject, Property predicate, RDFNode object, Model posit)
Return an iterator over all the statements in a model
that match a pattern. The statements selected are those
whose subject matches the subject
argument,
whose predicate matches the predicate
argument
and whose object matchesthe object
argument.
If an argument is null
it matches anything.
The s/p/o terms may refer to resources which are temporarily defined in the "posit" model. This allows one, for example, to query what resources are of type CE where CE is a class expression rather than a named class - put CE in the posit arg.
subject
- The subject soughtpredicate
- The predicate soughtobject
- The value sought
public void setDerivationLogging(boolean logOn)
public java.util.Iterator getDerivation(Statement statement)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |