nl.tudelft.tbm.eeni.owlstructure.processor
Class PropertyRangeInferer

java.lang.Object
  extended by nl.tudelft.tbm.eeni.owlstructure.processor.PropertyRangeInferer
All Implemented Interfaces:
IOntologyProcessor

public class PropertyRangeInferer
extends Object
implements IOntologyProcessor

Set or extend property ranges by looking at instances in a given ontology


Constructor Summary
PropertyRangeInferer()
          Creates a new property range inferer, that infers property ranges by looking at instances in the ontology.
PropertyRangeInferer(boolean keepExistingRanges)
          Creates a new property range inferer, that infers property ranges by looking at instances in the ontology.
PropertyRangeInferer(boolean keepExistingRanges, boolean allowThingRange)
          Creates a new property range inferer, that infers property ranges by looking at instances in the ontology.
 
Method Summary
 com.hp.hpl.jena.ontology.OntModel process(com.hp.hpl.jena.ontology.OntModel ontModel)
          Run the propery range inferer on all classes in the given ontology
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyRangeInferer

public PropertyRangeInferer(boolean keepExistingRanges,
                            boolean allowThingRange)
Creates a new property range inferer, that infers property ranges by looking at instances in the ontology.

Parameters:
keepExistingRanges - Whether to keep ranges already defined in the ontology. An existing owl:Thing range will still be removed when keepExistingRanges is set to false. Defaults to true.
allowThingRange - Whether the range may contain the class owl:Thing. Defaults to false.

PropertyRangeInferer

public PropertyRangeInferer(boolean keepExistingRanges)
Creates a new property range inferer, that infers property ranges by looking at instances in the ontology.

Parameters:
keepExistingRanges - Whether to keep ranges already defined in the ontology. An existing owl:Thing range will still be removed when keepExistingRanges is set to false. Defaults to true.

PropertyRangeInferer

public PropertyRangeInferer()
Creates a new property range inferer, that infers property ranges by looking at instances in the ontology.

Method Detail

process

public com.hp.hpl.jena.ontology.OntModel process(com.hp.hpl.jena.ontology.OntModel ontModel)
Run the propery range inferer on all classes in the given ontology

Specified by:
process in interface IOntologyProcessor
Parameters:
ontModel - The ontology model to work on


Copyright © 2011. All Rights Reserved.