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

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

public class CardinalityInspector
extends InspectorBase


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hp.hpl.jena.eyeball.Inspector
Inspector.InspectorSet, Inspector.Operations
 
Field Summary
protected  com.hp.hpl.jena.ontology.OntModel assume
           
protected  CardinalityMap map
           
protected  java.util.Set<com.hp.hpl.jena.rdf.model.Resource> seen
           
 
Constructor Summary
CardinalityInspector()
           
CardinalityInspector(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.
 CardinalityMap getCardinalityMap()
           
 void inspectModel(Report r, com.hp.hpl.jena.ontology.OntModel m)
          Inspect the model as a whole.
 void inspectStatement(Report r, com.hp.hpl.jena.rdf.model.Statement toTest)
          Inspect a single statement s from the model being inspected.
 
Methods inherited from class com.hp.hpl.jena.eyeball.inspectors.InspectorBase
end
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assume

protected com.hp.hpl.jena.ontology.OntModel assume

seen

protected final java.util.Set<com.hp.hpl.jena.rdf.model.Resource> seen

map

protected CardinalityMap map
Constructor Detail

CardinalityInspector

public CardinalityInspector()

CardinalityInspector

public CardinalityInspector(com.hp.hpl.jena.rdf.model.Resource root)
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

inspectModel

public void inspectModel(Report r,
                         com.hp.hpl.jena.ontology.OntModel m)
Description copied from interface: Inspector
Inspect the model as a whole. This is an opportunity to perform arbitrary queries over the model's statements and associated entities, eg its prefix-mappings.

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

inspectStatement

public void inspectStatement(Report r,
                             com.hp.hpl.jena.rdf.model.Statement toTest)
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

getCardinalityMap

public CardinalityMap getCardinalityMap()