com.hp.hpl.jena.reasoner.rdfsReasoner1
Class RDFSReasoner

java.lang.Object
  extended bycom.hp.hpl.jena.reasoner.transitiveReasoner.TransitiveReasoner
      extended bycom.hp.hpl.jena.reasoner.rdfsReasoner1.RDFSReasoner
All Implemented Interfaces:
Reasoner

Deprecated. Obsoleted at jena2p4, replaced by 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)!

public class RDFSReasoner
extends TransitiveReasoner
implements Reasoner

Version:
$Revision: 1.16 $ on $Date: 2003/06/23 15:49:36 $
Author:
Dave Reynolds

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

domainP

public static Node domainP
Deprecated. 
The domain property


rangeP

public static Node rangeP
Deprecated. 
The range property

Constructor Detail

RDFSReasoner

public RDFSReasoner()
Deprecated. 
Constructor


RDFSReasoner

public RDFSReasoner(Resource configuration)
Deprecated. 
Constructor

Parameters:
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

supportsProperty

public boolean supportsProperty(Property property)
Deprecated. 
Determine whether the given property is recognized and treated specially by this reasoner. This is a convenience packaging of a special case of getCapabilities.

Specified by:
supportsProperty in interface Reasoner
Overrides:
supportsProperty in class TransitiveReasoner
Parameters:
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
Returns:
true if the given property is handled specially by the reasoner.

bindSchema

public Reasoner bindSchema(Graph tbox)
                    throws ReasonerException
Deprecated. 
Extracts all of the subClass and subProperty declarations from the given schema/tbox and caches the resultant graphs. It can only be used once, can't stack up multiple tboxes this way. This limitation could be lifted - the only difficulty is the need to reprocess all the earlier tboxes if a new subPropertyOf subPropertyOf subClassOf is discovered.

Specified by:
bindSchema in interface Reasoner
Overrides:
bindSchema in class TransitiveReasoner
Parameters:
tbox - schema containing the property and class declarations
Throws:
ReasonerException

bind

public InfGraph bind(Graph data)
              throws ReasonerException
Deprecated. 
Attach the reasoner to a set of RDF ddata to process. The reasoner may already have been bound to specific rules or ontology axioms (encoded in RDF) through earlier bindRuleset calls.

Specified by:
bind in interface Reasoner
Overrides:
bind in class TransitiveReasoner
Parameters:
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).
Returns:
an inference graph through which the data+reasoner can be queried.
Throws:
ReasonerException - if the data is ill-formed according to the constraints imposed by this reasoner.

setDerivationLogging

public void setDerivationLogging(boolean logOn)
Deprecated. 
Switch on/off drivation logging. If set to true then the InfGraph created from the bind operation will start life with recording of derivations switched on. This is currently only of relevance to rule-based reasoners.

Default - false.

Specified by:
setDerivationLogging in interface Reasoner
Overrides:
setDerivationLogging in class TransitiveReasoner

setParameter

public void setParameter(java.lang.String parameterUri,
                         java.lang.Object value)
Deprecated. 
Set a configuration parameter for the reasoner. The only supported parameter at present is: are:

Specified by:
setParameter in interface Reasoner
Overrides:
setParameter in class TransitiveReasoner
Parameters:
parameterUri - the uri identifying the paramter to be changed
value - the new value for the parameter, typically this is a wrapped java object like Boolean or Integer.


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.