| com.hp.hpl.jena.rdf.model.impl.ModelCom com.hp.hpl.jena.rdf.model.impl.InfModelImpl
InfModelImpl | public class InfModelImpl extends ModelCom implements InfModel(Code) | | Default implementation of the InfModel interface which simply wraps up
an InfGraph.
author: Dave Reynolds version: $Revision: 1.12 $ on $Date: 2008/01/02 12:05:00 $ |
InfModelImpl | public InfModelImpl(InfGraph infgraph)(Code) | | Constructor.
Parameters: infgraph - the InfGraph, as generated by a reasoner.bind operation, to be packaged up. |
getDeductionsModel | public Model getDeductionsModel()(Code) | | Returns a derivations model. The rule reasoners typically create a
graph containing those triples added to the base graph due to rule firings.
In some applications it can useful to be able to access those deductions
directly, without seeing the raw data which triggered them. In particular,
this allows the forward rules to be used as if they were rewrite transformation
rules.
the deductions model, if relevant for this class of inferenceengine or null if not. |
getDerivation | public Iterator getDerivation(Statement statement)(Code) | | Return the derivation of the given statement (which should be the result of
some previous list operation).
Not all reasoneers will support derivations.
an iterator over Derivation records or null if there is no derivation informationavailable for this triple. |
getInfGraph | public InfGraph getInfGraph()(Code) | | Return the underlying inference graph for this model.
|
getRawModel | public Model getRawModel()(Code) | | Return the raw RDF model being processed (i.e. the argument
to the Reasonder.bind call that created this InfModel).
|
getReasoner | public Reasoner getReasoner()(Code) | | Return the Reasoner which is being used to answer queries to this graph.
|
listStatements | public StmtIterator listStatements(Resource subject, Property predicate, RDFNode object, Model posit)(Code) | | Find all the statements matching a pattern.
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.
an iterator over the subjects Parameters: subject - The subject sought Parameters: predicate - The predicate sought Parameters: object - The value sought |
prepare | public void prepare()(Code) | | Perform any initial processing and caching. This call is optional. Most
engines either have negligable set up work or will perform an implicit
"prepare" if necessary. The call is provided for those occasions where
substantial preparation work is possible (e.g. running a forward chaining
rule system) and where an application might wish greater control over when
this prepration is done rather than just leaving to be done at first query time.
|
rebind | public void rebind()(Code) | | Cause the inference model to reconsult the underlying data to take
into account changes. Normally changes are made through the InfModel's add and
remove calls are will be handled appropriately. However, in some cases changes
are made "behind the InfModels's back" and this forces a full reconsult of
the changed data.
|
reset | public void reset()(Code) | | Reset any internal caches. Some systems, such as the tabled backchainer,
retain information after each query. A reset will wipe this information preventing
unbounded memory use at the expense of more expensive future queries. A reset
does not cause the raw data to be reconsulted and so is less expensive than a rebind.
|
setDerivationLogging | public void setDerivationLogging(boolean logOn)(Code) | | Switch on/off drivation logging. If this is switched on then every time an inference
is a made that fact is recorded and the resulting record can be access through a later
getDerivation call. This may consume a lot of space!
|
validate | public ValidityReport validate()(Code) | | Test the consistency of the underlying data. This normally tests
the validity of the bound instance data against the bound
schema data.
a ValidityReport structure |
Methods inherited from com.hp.hpl.jena.rdf.model.impl.ModelCom | public Model abort()(Code)(Java Doc) public GraphListener adapt(ModelChangedListener L)(Code)(Java Doc) public Model add(Resource s, Property p, String o)(Code)(Java Doc) public Model add(Resource s, Property p, String o, boolean wellFormed)(Code)(Java Doc) public Model add(Resource s, Property p, String o, String lang, boolean wellFormed)(Code)(Java Doc) public Model add(Resource s, Property p, String lex, RDFDatatype datatype)(Code)(Java Doc) public Model add(Resource s, Property p, String o, String l)(Code)(Java Doc) public Model add(StmtIterator iter)(Code)(Java Doc) public Model add(Model m)(Code)(Java Doc) public Model add(Model m, boolean suppressReifications)(Code)(Java Doc) public Model add(Statement s)(Code)(Java Doc) public Model add(Statement[] statements)(Code)(Java Doc) public Model add(List statements)(Code)(Java Doc) public Model add(Resource s, Property p, RDFNode o)(Code)(Java Doc) protected static Model addCommon(Model result, StmtIterator it, Model other)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, boolean o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, long o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, int o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, char o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, float o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, double o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, Object o)(Code)(Java Doc) public static void addNamespaces(Model m, Map ns)(Code)(Java Doc) public Model addTyped(Resource s, Property p, boolean o)(Code)(Java Doc) public Filter asFilter(Selector s)(Code)(Java Doc) public Model asModel(Graph g)(Code)(Java Doc) public static Node asNode(RDFNode x)(Code)(Java Doc) public RDFNode asRDFNode(Node n)(Code)(Java Doc) public Statement asStatement(Triple t)(Code)(Java Doc) public Statement[] asStatements(Triple[] triples)(Code)(Java Doc) public List asStatements(List triples)(Code)(Java Doc) public StmtIterator asStatements(Iterator it)(Code)(Java Doc) public Model begin()(Code)(Java Doc) public void close()(Code)(Java Doc) public Model commit()(Code)(Java Doc) public boolean contains(Resource s, Property p, String o)(Code)(Java Doc) public boolean contains(Resource s, Property p, String o, String l)(Code)(Java Doc) public boolean contains(Statement s)(Code)(Java Doc) public boolean contains(Resource s, Property p)(Code)(Java Doc) public boolean contains(Resource s, Property p, RDFNode o)(Code)(Java Doc) public boolean containsAll(Model model)(Code)(Java Doc) public boolean containsAll(StmtIterator iter)(Code)(Java Doc) protected boolean containsAllThenClose(StmtIterator iter)(Code)(Java Doc) public boolean containsAny(Model model)(Code)(Java Doc) public boolean containsAny(StmtIterator iter)(Code)(Java Doc) protected boolean containsAnyThenClose(StmtIterator iter)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, boolean o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, long o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, int o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, char o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, float o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, double o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, Object o)(Code)(Java Doc) public boolean containsResource(RDFNode r)(Code)(Java Doc) public boolean containsTyped(Resource s, Property p, boolean o)(Code)(Java Doc) public Alt createAlt()(Code)(Java Doc) public Alt createAlt(String uri)(Code)(Java Doc) public Bag createBag()(Code)(Java Doc) public Bag createBag(String uri)(Code)(Java Doc) public RDFList createList()(Code)(Java Doc) public RDFList createList(Iterator members)(Code)(Java Doc) public RDFList createList(RDFNode[] members)(Code)(Java Doc) public Literal createLiteral(String v)(Code)(Java Doc) public Literal createLiteral(String v, String l)(Code)(Java Doc) public Literal createLiteral(String v, boolean wellFormed)(Code)(Java Doc) public Literal createLiteral(String v, String l, boolean wellFormed)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, boolean o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, long o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, int o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, char o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, float o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, double o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, Object o)(Code)(Java Doc) public Property createProperty(String uri)(Code)(Java Doc) public Property createProperty(String nameSpace, String localName)(Code)(Java Doc) public ReifiedStatement createReifiedStatement(Statement s)(Code)(Java Doc) public ReifiedStatement createReifiedStatement(String uri, Statement s)(Code)(Java Doc) public Resource createResource(Resource type)(Code)(Java Doc) public Resource createResource(String uri, Resource type)(Code)(Java Doc) public Resource createResource(ResourceF f)(Code)(Java Doc) public Resource createResource(AnonId id)(Code)(Java Doc) public Resource createResource(String uri, ResourceF f)(Code)(Java Doc) public Resource createResource()(Code)(Java Doc) public Resource createResource(String uri)(Code)(Java Doc) public Seq createSeq()(Code)(Java Doc) public Seq createSeq(String uri)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o, boolean wellFormed)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o, String l)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o, String l, boolean wellFormed)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, RDFNode o)(Code)(Java Doc) public Literal createTypedLiteral(boolean v)(Code)(Java Doc) public Literal createTypedLiteral(int v)(Code)(Java Doc) public Literal createTypedLiteral(long v)(Code)(Java Doc) public Literal createTypedLiteral(char v)(Code)(Java Doc) public Literal createTypedLiteral(float v)(Code)(Java Doc) public Literal createTypedLiteral(double v)(Code)(Java Doc) public Literal createTypedLiteral(String v)(Code)(Java Doc) public Literal createTypedLiteral(Calendar cal)(Code)(Java Doc) public Literal createTypedLiteral(String lex, RDFDatatype dtype) throws DatatypeFormatException(Code)(Java Doc) public Literal createTypedLiteral(Object value, RDFDatatype dtype)(Code)(Java Doc) public Literal createTypedLiteral(String lex, String typeURI)(Code)(Java Doc) public Literal createTypedLiteral(Object value, String typeURI)(Code)(Java Doc) public Literal createTypedLiteral(Object value)(Code)(Java Doc) protected static Model createWorkModel()(Code)(Java Doc) public Model difference(Model model)(Code)(Java Doc) public void enterCriticalSection(boolean requestReadLock)(Code)(Java Doc) public Object executeInTransaction(Command cmd)(Code)(Java Doc) public String expandPrefix(String prefixed)(Code)(Java Doc) public ExtendedIterator findTriplesFrom(Selector s)(Code)(Java Doc) public Alt getAlt(String uri)(Code)(Java Doc) public Alt getAlt(Resource r)(Code)(Java Doc) public Resource getAnyReifiedStatement(Statement s)(Code)(Java Doc) public Bag getBag(String uri)(Code)(Java Doc) public Bag getBag(Resource r)(Code)(Java Doc) protected BulkUpdateHandler getBulkUpdateHandler()(Code)(Java Doc) public static PrefixMapping getDefaultModelPrefixes()(Code)(Java Doc) public Graph getGraph()(Code)(Java Doc) public Model getHiddenStatements()(Code)(Java Doc) public synchronized Lock getLock()(Code)(Java Doc) public synchronized ModelLock getModelLock()(Code)(Java Doc) public Map getNsPrefixMap()(Code)(Java Doc) public String getNsPrefixURI(String prefix)(Code)(Java Doc) public String getNsURIPrefix(String uri)(Code)(Java Doc) public Property getProperty(String uri)(Code)(Java Doc) public Property getProperty(String nameSpace, String localName)(Code)(Java Doc) public Statement getProperty(Resource s, Property p)(Code)(Java Doc) public RDFNode getRDFNode(Node n)(Code)(Java Doc) public RDFReader getReader()(Code)(Java Doc) public RDFReader getReader(String lang)(Code)(Java Doc) public ReificationStyle getReificationStyle()(Code)(Java Doc) public Statement getRequiredProperty(Resource s, Property p)(Code)(Java Doc) public Resource getResource(String uri, ResourceF f)(Code)(Java Doc) public Resource getResource(String uri)(Code)(Java Doc) public Seq getSeq(String uri)(Code)(Java Doc) public Seq getSeq(Resource r)(Code)(Java Doc) public RDFWriter getWriter()(Code)(Java Doc) public RDFWriter getWriter(String lang)(Code)(Java Doc) public boolean independent()(Code)(Java Doc) public static Model intersect(Model smaller, Model larger)(Code)(Java Doc) public Model intersection(Model other)(Code)(Java Doc) public boolean isClosed()(Code)(Java Doc) public boolean isEmpty()(Code)(Java Doc) public boolean isIsomorphicWith(Model m)(Code)(Java Doc) public boolean isReified(Statement s)(Code)(Java Doc) public void leaveCriticalSection()(Code)(Java Doc) public StmtIterator listBySubject(Container cont)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, boolean O)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, long O)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, char O)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, double O)(Code)(Java Doc) public NsIterator listNameSpaces()(Code)(Java Doc) public NodeIterator listObjects()(Code)(Java Doc) public NodeIterator listObjectsOfProperty(Property p)(Code)(Java Doc) public NodeIterator listObjectsOfProperty(Resource s, Property p)(Code)(Java Doc) public RSIterator listReifiedStatements()(Code)(Java Doc) public RSIterator listReifiedStatements(Statement st)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, boolean o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, char o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, long o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, float o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, double o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, Object o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, RDFNode o)(Code)(Java Doc) protected StmtIterator listStatements(Resource S, Property P, Node O)(Code)(Java Doc) public StmtIterator listStatements(Resource S, Property P, RDFNode O)(Code)(Java Doc) public StmtIterator listStatements(Resource S, Property P, String O)(Code)(Java Doc) public StmtIterator listStatements(Resource S, Property P, String O, String L)(Code)(Java Doc) public StmtIterator listStatements()(Code)(Java Doc) public StmtIterator listStatements(Selector selector)(Code)(Java Doc) public ResIterator listSubjects()(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p, RDFNode o)(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p, String o)(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p, String o, String l)(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p)(Code)(Java Doc) public StmtIterator listlLiteralStatements(Resource S, Property P, float O)(Code)(Java Doc) public PrefixMapping lock()(Code)(Java Doc) public Model notifyEvent(Object e)(Code)(Java Doc) public String qnameFor(String uri)(Code)(Java Doc) public Model query(Selector selector)(Code)(Java Doc) public QueryHandler queryHandler()(Code)(Java Doc) public Model read(String url)(Code)(Java Doc) public Model read(Reader reader, String base)(Code)(Java Doc) public Model read(InputStream reader, String base)(Code)(Java Doc) public Model read(String url, String lang)(Code)(Java Doc) public Model read(String url, String base, String lang)(Code)(Java Doc) public Model read(Reader reader, String base, String lang)(Code)(Java Doc) public Model read(InputStream reader, String base, String lang)(Code)(Java Doc) public Model register(ModelChangedListener listener)(Code)(Java Doc) public String reifiedToString()(Code)(Java Doc) public Model remove(Statement s)(Code)(Java Doc) public Model remove(Resource s, Property p, RDFNode o)(Code)(Java Doc) public Model remove(StmtIterator iter)(Code)(Java Doc) public Model remove(Model m)(Code)(Java Doc) public Model remove(Model m, boolean suppressReifications)(Code)(Java Doc) public Model remove(Statement[] statements)(Code)(Java Doc) public Model remove(List statements)(Code)(Java Doc) public Model removeAll()(Code)(Java Doc) public Model removeAll(Resource s, Property p, RDFNode o)(Code)(Java Doc) public void removeAllReifications(Statement s)(Code)(Java Doc) public PrefixMapping removeNsPrefix(String prefix)(Code)(Java Doc) public void removeReification(ReifiedStatement rs)(Code)(Java Doc) public boolean samePrefixMappingAs(PrefixMapping other)(Code)(Java Doc) public static PrefixMapping setDefaultModelPrefixes(PrefixMapping pm)(Code)(Java Doc) public PrefixMapping setNsPrefix(String prefix, String uri)(Code)(Java Doc) public PrefixMapping setNsPrefixes(PrefixMapping pm)(Code)(Java Doc) public PrefixMapping setNsPrefixes(Map map)(Code)(Java Doc) public String setReaderClassName(String lang, String className)(Code)(Java Doc) public String setWriterClassName(String lang, String className)(Code)(Java Doc) public String shortForm(String uri)(Code)(Java Doc) public long size()(Code)(Java Doc) protected String statementsToString(StmtIterator it)(Code)(Java Doc) public boolean supportsSetOperations()(Code)(Java Doc) public boolean supportsTransactions()(Code)(Java Doc) public String toString()(Code)(Java Doc) public Model union(Model model)(Code)(Java Doc) public Model unregister(ModelChangedListener listener)(Code)(Java Doc) public PrefixMapping withDefaultMappings(PrefixMapping other)(Code)(Java Doc) public Model write(Writer writer)(Code)(Java Doc) public Model write(Writer writer, String lang)(Code)(Java Doc) public Model write(Writer writer, String lang, String base)(Code)(Java Doc) public Model write(OutputStream writer)(Code)(Java Doc) public Model write(OutputStream writer, String lang)(Code)(Java Doc) public Model write(OutputStream writer, String lang, String base)(Code)(Java Doc)
|
|
|