|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.reasoner.transitiveReasoner.TransitiveReasoner
com.hp.hpl.jena.reasoner.rdfsReasoner1.RDFSReasoner
RDFSRuleReasoner
.
An RDFS reasoner suited to modest vocabularies but large instance
data. It does eager processing on the class and property declarations
and caches the results. This means that the initial creation can
be slow. However, if the vocabulary and instance data can be
separated then at least the class lattice results can be reused.
Instance related rules are implemented using a very simple rewrite system. Triple queries that match a rule are rewritten and reapplied as queries. This is reasonably efficient for fairly ground queries, especially where the predicate is ground. It performs redundant passes over the data for unground queries, especially any that need that might match (*, type, Resource) or (*, type, Property)!
Field Summary | |
static Node |
domainP
Deprecated. The domain property |
static Node |
rangeP
Deprecated. The range property |
Fields inherited from class com.hp.hpl.jena.reasoner.transitiveReasoner.TransitiveReasoner |
directSubClassOf, directSubPropertyOf, subClassOf, subPropertyOf |
Constructor Summary | |
RDFSReasoner()
Deprecated. Constructor |
|
RDFSReasoner(Resource configuration)
Deprecated. Constructor |
Method Summary | |
InfGraph |
bind(Graph data)
Deprecated. Attach the reasoner to a set of RDF ddata to process. |
Reasoner |
bindSchema(Graph tbox)
Deprecated. Extracts all of the subClass and subProperty declarations from the given schema/tbox and caches the resultant graphs. |
void |
setDerivationLogging(boolean logOn)
Deprecated. Switch on/off drivation logging. |
void |
setParameter(java.lang.String parameterUri,
java.lang.Object value)
Deprecated. Set a configuration parameter for the reasoner. |
boolean |
supportsProperty(Property property)
Deprecated. Determine whether the given property is recognized and treated specially by this reasoner. |
Methods inherited from class com.hp.hpl.jena.reasoner.transitiveReasoner.TransitiveReasoner |
bindSchema, getCapabilities, getSubClassCache, getSubPropertyCache, getTbox |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hp.hpl.jena.reasoner.Reasoner |
bindSchema, getCapabilities |
Field Detail |
public static Node domainP
public static Node rangeP
Constructor Detail |
public RDFSReasoner()
public RDFSReasoner(Resource configuration)
configuration
- a set of arbitrary configuration information to be
passed the reasoner, encoded as RDF properties of a base configuration resource,
can be null in no custom configuration is required. The
only meaningful configuration property at present is scanProperties.Method Detail |
public boolean supportsProperty(Property property)
supportsProperty
in interface Reasoner
supportsProperty
in class TransitiveReasoner
property
- the property which we want to ask the reasoner about, given as a Node since
this is part of the SPI rather than API
public Reasoner bindSchema(Graph tbox) throws ReasonerException
bindSchema
in interface Reasoner
bindSchema
in class TransitiveReasoner
tbox
- schema containing the property and class declarations
ReasonerException
public InfGraph bind(Graph data) throws ReasonerException
bind
in interface Reasoner
bind
in class TransitiveReasoner
data
- the RDF data to be processed, some reasoners may restrict
the range of RDF which is legal here (e.g. syntactic restrictions in OWL).
ReasonerException
- if the data is ill-formed according to the
constraints imposed by this reasoner.public void setDerivationLogging(boolean logOn)
Default - false.
setDerivationLogging
in interface Reasoner
setDerivationLogging
in class TransitiveReasoner
public void setParameter(java.lang.String parameterUri, java.lang.Object value)
setParameter
in interface Reasoner
setParameter
in class TransitiveReasoner
parameterUri
- the uri identifying the paramter to be changedvalue
- the new value for the parameter, typically this is a wrapped
java object like Boolean or Integer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |