correspondence
Class Correspondence

java.lang.Object
  extended by correspondence.Correspondence

public class Correspondence
extends java.lang.Object


Field Summary
static int PROPERTY_CHAIN
           
static int QUALIFIED_RESTRICTION
           
static int UNQUALIFIED_RESTRICTION
           
static int VALUE_RESTRICTION
           
 
Constructor Summary
Correspondence(org.semanticweb.owl.model.OWLClass classOnt1, org.semanticweb.owl.model.OWLDataProperty dataPropertyOnt2, java.lang.String data, java.lang.String identifier, int type)
          Constructor for complex correspondence of type Value Restriction.
Correspondence(org.semanticweb.owl.model.OWLClass classOnt1, org.semanticweb.owl.model.OWLObjectProperty objectPropertyOnt2, org.semanticweb.owl.model.OWLClass classOnt2, java.lang.String identifier, int type, double similaritySum)
          Constructor for complex correspondence of type Qualified and Unqualified Restriction.
Correspondence(org.semanticweb.owl.model.OWLDataProperty dataPropOnt1, org.semanticweb.owl.model.OWLObjectProperty objectProperty1Ont2, org.semanticweb.owl.model.OWLDataProperty dataProperty2Ont2, java.lang.String identifier, int type, double similaritySum)
          Constructor for complex correspondence of type Property Chain.
 
Method Summary
 boolean equals(java.lang.Object o)
          To be able to compare the correspondences, override the equals method.
 org.semanticweb.owl.model.OWLClass getClassOnt1()
           
 org.semanticweb.owl.model.OWLClass getClassOnt2()
           
 java.lang.String getData()
           
 org.semanticweb.owl.model.OWLDataProperty getDataProperty2Ont2()
           
 org.semanticweb.owl.model.OWLDataProperty getDataPropertyOnt2()
           
 org.semanticweb.owl.model.OWLDataProperty getDataPropOnt1()
           
 java.lang.String getIdentifier()
           
 org.semanticweb.owl.model.OWLObjectProperty getObjectProperty1Ont2()
           
 org.semanticweb.owl.model.OWLObjectProperty getObjectPropertyOnt2()
           
 double getSimilaritySum()
           
 int getType()
           
 int hashCode()
          Override the hash code method to match the correspondences right.
 java.lang.String toShortString()
           
 java.lang.String toString()
          Print a correspondence in fist-order-logic format with full URIs of the entities.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUALIFIED_RESTRICTION

public static final int QUALIFIED_RESTRICTION
See Also:
Constant Field Values

UNQUALIFIED_RESTRICTION

public static final int UNQUALIFIED_RESTRICTION
See Also:
Constant Field Values

VALUE_RESTRICTION

public static final int VALUE_RESTRICTION
See Also:
Constant Field Values

PROPERTY_CHAIN

public static final int PROPERTY_CHAIN
See Also:
Constant Field Values
Constructor Detail

Correspondence

public Correspondence(org.semanticweb.owl.model.OWLClass classOnt1,
                      org.semanticweb.owl.model.OWLObjectProperty objectPropertyOnt2,
                      org.semanticweb.owl.model.OWLClass classOnt2,
                      java.lang.String identifier,
                      int type,
                      double similaritySum)
Constructor for complex correspondence of type Qualified and Unqualified Restriction.

Parameters:
classOnt1 -
objectPropertyOnt2 -
classOnt2 -
identifier -
type -

Correspondence

public Correspondence(org.semanticweb.owl.model.OWLClass classOnt1,
                      org.semanticweb.owl.model.OWLDataProperty dataPropertyOnt2,
                      java.lang.String data,
                      java.lang.String identifier,
                      int type)
Constructor for complex correspondence of type Value Restriction.

Parameters:
classOnt1 -
dataPropertyOnt2 -
data -
identifier -
type -

Correspondence

public Correspondence(org.semanticweb.owl.model.OWLDataProperty dataPropOnt1,
                      org.semanticweb.owl.model.OWLObjectProperty objectProperty1Ont2,
                      org.semanticweb.owl.model.OWLDataProperty dataProperty2Ont2,
                      java.lang.String identifier,
                      int type,
                      double similaritySum)
Constructor for complex correspondence of type Property Chain.

Parameters:
dataPropOnt1 -
objectProperty1Ont2 -
dataProperty2Ont2 -
identifier -
type -
Method Detail

toString

public java.lang.String toString()
Print a correspondence in fist-order-logic format with full URIs of the entities.

Overrides:
toString in class java.lang.Object

toShortString

public java.lang.String toShortString()
                               throws ComplexMappingException
Returns:
The correspondence in string format without whole URIs, only with the important parts to identify the entity.
Throws:
ComplexMappingException

equals

public boolean equals(java.lang.Object o)
To be able to compare the correspondences, override the equals method.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Override the hash code method to match the correspondences right.

Overrides:
hashCode in class java.lang.Object

getClassOnt1

public org.semanticweb.owl.model.OWLClass getClassOnt1()

getObjectPropertyOnt2

public org.semanticweb.owl.model.OWLObjectProperty getObjectPropertyOnt2()

getClassOnt2

public org.semanticweb.owl.model.OWLClass getClassOnt2()

getDataPropertyOnt2

public org.semanticweb.owl.model.OWLDataProperty getDataPropertyOnt2()

getData

public java.lang.String getData()

getDataPropOnt1

public org.semanticweb.owl.model.OWLDataProperty getDataPropOnt1()

getObjectProperty1Ont2

public org.semanticweb.owl.model.OWLObjectProperty getObjectProperty1Ont2()

getDataProperty2Ont2

public org.semanticweb.owl.model.OWLDataProperty getDataProperty2Ont2()

getType

public int getType()

getSimilaritySum

public double getSimilaritySum()

getIdentifier

public java.lang.String getIdentifier()