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

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

public class PropertyDomainInferer
extends Object
implements IOntologyProcessor

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


Constructor Summary
PropertyDomainInferer()
          Creates a new property domain inferer, that infers property domains by looking at instances in the ontology.
PropertyDomainInferer(boolean keepExistingDomains)
          Creates a new property domain inferer, that infers property domains by looking at instances in the ontology.
PropertyDomainInferer(boolean keepExistingDomains, boolean enableGeneralization)
          Creates a new property domain inferer, that infers property domains by looking at instances in the ontology.
PropertyDomainInferer(boolean keepExistingDomains, boolean enableGeneralization, boolean allowThingDomain)
          Creates a new property domain inferer, that infers property domains 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 property domain inferer on all properties in the given ontology.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDomainInferer

public PropertyDomainInferer(boolean keepExistingDomains,
                             boolean enableGeneralization,
                             boolean allowThingDomain)
Creates a new property domain inferer, that infers property domains by looking at instances in the ontology.

Parameters:
keepExistingDomains - Whether to keep domains already defined in the ontology. An existing domain may still be removed when the generalizer decides to add a superclass of the existing domain class to the domain. An existing owl:Thing domain will be removed when allowThingDomain is set to false. Defaults to true.
enableGeneralization - Whether to use the generalization engine is used to find abstract superclasses of domain classes. Defaults to true.
allowThingDomain - Whether the domain may contain owl:Thing. Defaults to false.

PropertyDomainInferer

public PropertyDomainInferer(boolean keepExistingDomains,
                             boolean enableGeneralization)
Creates a new property domain inferer, that infers property domains by looking at instances in the ontology.

Parameters:
keepExistingDomains - Whether to keep domains already defined in the ontology. An existing domain may still be removed when the generalizer decides to add a superclass of the existing domain class to the domain. An existing owl:Thing domain will be removed when allowThingDomain is set to false. Defaults to true.
enableGeneralization - Whether to use the generalization engine is used to find abstract superclasses of domain classes. Defaults to true.

PropertyDomainInferer

public PropertyDomainInferer(boolean keepExistingDomains)
Creates a new property domain inferer, that infers property domains by looking at instances in the ontology.

Parameters:
keepExistingDomains - Whether to keep domains already defined in the ontology. An existing domain may still be removed when the generalizer decides to add a superclass of the existing domain class to the domain. An existing owl:Thing domain will be removed when allowThingDomain is set to false. Defaults to true.

PropertyDomainInferer

public PropertyDomainInferer()
Creates a new property domain inferer, that infers property domains 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 property domain inferer on all properties in the given ontology.

Specified by:
process in interface IOntologyProcessor
Parameters:
ontModel - The ontModel instance to work on.


Copyright © 2011. All Rights Reserved.