com.hp.hpl.jena.eyeball.inspectors
Class OwlSyntaxInspector

java.lang.Object
  extended by com.hp.hpl.jena.eyeball.inspectors.InspectorBase
      extended by com.hp.hpl.jena.eyeball.inspectors.OwlSyntaxInspector
All Implemented Interfaces:
Inspector

public class OwlSyntaxInspector
extends InspectorBase

The OwlSyntaxInspector performs some elementary OWL syntax checks. To begin with: that a Restriction has the right mix of properties.

The single-statement pass is used to identify those resources that are (supposed to be) restrictions. The end phase inspects each such resource and produces a report if it doesn't have exactly one onProperty property and exactly one other constraint property.

Author:
kers

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hp.hpl.jena.eyeball.Inspector
Inspector.InspectorSet, Inspector.Operations
 
Field Summary
protected  java.util.Set<com.hp.hpl.jena.rdf.model.Resource> possibleRestrictions
           
 
Constructor Summary
OwlSyntaxInspector()
           
OwlSyntaxInspector(com.hp.hpl.jena.rdf.model.Resource root)
           
 
Method Summary
 void begin(Report r, com.hp.hpl.jena.ontology.OntModel assume)
          Initialise this Inspector, given the assumed ontologies and the report object which will hold the reports from this inspection.
 void end(Report r)
          End the inspection.
 void inspectStatement(Report r, com.hp.hpl.jena.rdf.model.Statement s)
          Inspect a single statement s from the model being inspected.
 
Methods inherited from class com.hp.hpl.jena.eyeball.inspectors.InspectorBase
inspectModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

possibleRestrictions

protected java.util.Set<com.hp.hpl.jena.rdf.model.Resource> possibleRestrictions
Constructor Detail

OwlSyntaxInspector

public OwlSyntaxInspector(com.hp.hpl.jena.rdf.model.Resource root)

OwlSyntaxInspector

public OwlSyntaxInspector()
Method Detail

begin

public void begin(Report r,
                  com.hp.hpl.jena.ontology.OntModel assume)
Description copied from interface: Inspector
Initialise this Inspector, given the assumed ontologies and the report object which will hold the reports from this inspection. This method should declare the report properties this inspector uses -- see the Report documentation.

Specified by:
begin in interface Inspector
Overrides:
begin in class InspectorBase

inspectStatement

public void inspectStatement(Report r,
                             com.hp.hpl.jena.rdf.model.Statement s)
Description copied from interface: Inspector
Inspect a single statement s from the model being inspected. The order of the statements is not specified.

Specified by:
inspectStatement in interface Inspector
Overrides:
inspectStatement in class InspectorBase

end

public void end(Report r)
Description copied from interface: Inspector
End the inspection. This method is called after all the statements have been individually inspected, so any final analyssi can be done.

Specified by:
end in interface Inspector
Overrides:
end in class InspectorBase