correspondenceComputations
Class ComputationUtility

java.lang.Object
  extended by correspondenceComputations.ComputationUtility

public class ComputationUtility
extends java.lang.Object

Author:
Dominique Ritze The class Computation contains some methods which are used by the classes in the same package.

Constructor Summary
ComputationUtility()
           
 
Method Summary
static boolean alreadyInAlignment(org.semanticweb.owl.model.OWLEntity entity, OntologyAlignment ali)
          Check if a correspondence is contained in the conventional alignment.
static java.util.HashMap<org.semanticweb.owl.model.OWLClass,Term> deleteHeadnoun(java.util.Set<org.semanticweb.owl.model.OWLClass> oldClasses, boolean[] delimiter)
          Delete the headnoun of all class names.
static java.util.Set<org.semanticweb.owl.model.OWLClass> getDataDomain(Reasoner reasonerDomain, org.semanticweb.owl.model.OWLOntology ontology, org.semanticweb.owl.model.OWLDataProperty property)
          Get the domain of a datatype property using Pellet.
static java.util.Set<java.lang.String> getDataRange(org.semanticweb.owl.model.OWLOntology ontology, org.semanticweb.owl.model.OWLDataProperty property)
          Get the range of a datatype property.
static java.util.Set<org.semanticweb.owl.model.OWLDescription> getDisjointClasses(Reasoner reasonerDisjoint, org.semanticweb.owl.model.OWLOntology ontology, org.semanticweb.owl.model.OWLClass cls)
          Get all disjoint classes of a given class.
static java.util.Set<org.semanticweb.owl.model.OWLClass> getObjectDomain(Reasoner reasonerDomain, org.semanticweb.owl.model.OWLOntology ontology, org.semanticweb.owl.model.OWLObjectProperty property)
          Get the domain of an object property using Pellet.
static java.util.Set<org.semanticweb.owl.model.OWLClass> getObjectRange(Reasoner reasonerRange, org.semanticweb.owl.model.OWLOntology ontology, org.semanticweb.owl.model.OWLObjectProperty property)
          Get the range of an obejct property using Pellet.
static java.lang.String getReducedName(Term t, int i)
          Get the reduced name of a term, that means the string without the word at the i-th position.
static double getSimilarValue(Term t1, Term t2)
          Get the similarity value of two terms.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputationUtility

public ComputationUtility()
Method Detail

getObjectRange

public static java.util.Set<org.semanticweb.owl.model.OWLClass> getObjectRange(Reasoner reasonerRange,
                                                                               org.semanticweb.owl.model.OWLOntology ontology,
                                                                               org.semanticweb.owl.model.OWLObjectProperty property)
                                                                        throws ComplexMappingException
Get the range of an obejct property using Pellet.

Parameters:
reasonerRange -
ontology -
property -
Returns:
Throws:
ComplexMappingException

getDataRange

public static java.util.Set<java.lang.String> getDataRange(org.semanticweb.owl.model.OWLOntology ontology,
                                                           org.semanticweb.owl.model.OWLDataProperty property)
Get the range of a datatype property.

Parameters:
ontology -
property -
Returns:

getDataDomain

public static java.util.Set<org.semanticweb.owl.model.OWLClass> getDataDomain(Reasoner reasonerDomain,
                                                                              org.semanticweb.owl.model.OWLOntology ontology,
                                                                              org.semanticweb.owl.model.OWLDataProperty property)
                                                                       throws ComplexMappingException
Get the domain of a datatype property using Pellet.

Parameters:
ontology -
property -
Returns:
Throws:
ComplexMappingException

getObjectDomain

public static java.util.Set<org.semanticweb.owl.model.OWLClass> getObjectDomain(Reasoner reasonerDomain,
                                                                                org.semanticweb.owl.model.OWLOntology ontology,
                                                                                org.semanticweb.owl.model.OWLObjectProperty property)
                                                                         throws ComplexMappingException
Get the domain of an object property using Pellet.

Parameters:
ontology -
property -
Returns:
Throws:
ComplexMappingException

getDisjointClasses

public static java.util.Set<org.semanticweb.owl.model.OWLDescription> getDisjointClasses(Reasoner reasonerDisjoint,
                                                                                         org.semanticweb.owl.model.OWLOntology ontology,
                                                                                         org.semanticweb.owl.model.OWLClass cls)
                                                                                  throws ComplexMappingException
Get all disjoint classes of a given class.

Parameters:
reasonerDisjoint -
ontology -
cls -
Returns:
Throws:
ComplexMappingException

deleteHeadnoun

public static java.util.HashMap<org.semanticweb.owl.model.OWLClass,Term> deleteHeadnoun(java.util.Set<org.semanticweb.owl.model.OWLClass> oldClasses,
                                                                                        boolean[] delimiter)
                                                                                 throws ComplexMappingException
Delete the headnoun of all class names.

Parameters:
oldClasses -
delimiter -
Returns:
Throws:
ComplexMappingException

getReducedName

public static java.lang.String getReducedName(Term t,
                                              int i)
Get the reduced name of a term, that means the string without the word at the i-th position.

Parameters:
t -
i -
Returns:

getSimilarValue

public static double getSimilarValue(Term t1,
                                     Term t2)
                              throws ComplexMappingException
Get the similarity value of two terms.

Parameters:
t1 -
t2 -
Returns:
Throws:
ComplexMappingException

alreadyInAlignment

public static boolean alreadyInAlignment(org.semanticweb.owl.model.OWLEntity entity,
                                         OntologyAlignment ali)
                                  throws ComplexMappingException
Check if a correspondence is contained in the conventional alignment.

Parameters:
entity -
ali -
Returns:
Throws:
ComplexMappingException