INRIA & friends

fr.inrialpes.exmo.align.impl
Class OWLAPIAlignment

java.lang.Object
  extended byfr.inrialpes.exmo.align.impl.BasicAlignment
      extended byfr.inrialpes.exmo.align.impl.OWLAPIAlignment
All Implemented Interfaces:
Alignment, java.lang.Cloneable

public class OWLAPIAlignment
extends BasicAlignment

Represents an OWL ontology alignment. An ontology comprises a number of collections. Each ontology has a number of classes, properties and individuals, along with a number of axioms asserting information about those objects. NOTE(JE): hashtabale are indexed by URI. This is strange, but there might be a reason

Version:
$Id: BasicAlignment.java 227 2006-02-22 14:45:12Z euzenat $
Author:
Jérôme Euzenat, David Loup, Raphaël Troncy

Field Summary
protected  int debug
           
protected  Parameters extensions
           
protected  java.util.Hashtable hash1
           
protected  java.util.Hashtable hash2
           
protected  java.lang.String level
           
protected  OWLOntology onto1
           
protected  OWLOntology onto2
           
private  boolean STRICT_IMPLEMENTATION
           
protected  long time
           
protected  java.lang.String type
           
protected  java.net.URI uri1
          This is the URI of the place from which the ontology has been loaded! This is NOT the Ontology URI which can be obtained by onto1.getLogicalURI();
protected  java.net.URI uri2
           
 
Constructor Summary
OWLAPIAlignment()
           
 
Method Summary
 void accept(AlignmentVisitor visitor)
          Alignment methods
 Cell addAlignCell(java.lang.Object ob1, java.lang.Object ob2, java.lang.String relation, double measure)
          Cell methods
protected  void addCell(Cell c)
           
 Cell getAlignCell1(java.lang.Object ob)
          Cells are retrieved These primitives are deprecated.
 Cell getAlignCell2(java.lang.Object ob)
           
 java.util.Set getAlignCells1(java.lang.Object ob)
          Cells are retrieved These primitives are deprecated.
 java.util.Set getAlignCells2(java.lang.Object ob)
           
 java.lang.Object getOntology1()
          Alignment methods *
 java.lang.Object getOntology2()
           
protected  void init(OWLOntology onto1, OWLOntology onto2)
           
 void removeAlignCell(Cell c)
           
 void setOntology1(java.lang.Object ontology)
           
 void setOntology2(java.lang.Object ontology)
           
 
Methods inherited from class fr.inrialpes.exmo.align.impl.BasicAlignment
addAlignCell, clone, compose, cut, cut, cut2, dump, getAlignedObject1, getAlignedObject2, getAlignedRelation1, getAlignedRelation2, getAlignedStrength1, getAlignedStrength2, getArrayElements, getElements, getExtension, getExtensions, getFile1, getFile2, getLevel, getType, harden, ingest, inverse, join, meet, nbCells, render, setExtension, setFile1, setFile2, setLevel, setType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRICT_IMPLEMENTATION

private boolean STRICT_IMPLEMENTATION

debug

protected int debug

level

protected java.lang.String level

type

protected java.lang.String type

onto1

protected OWLOntology onto1

onto2

protected OWLOntology onto2

hash1

protected java.util.Hashtable hash1

hash2

protected java.util.Hashtable hash2

time

protected long time

extensions

protected Parameters extensions

uri1

protected java.net.URI uri1
This is the URI of the place from which the ontology has been loaded! This is NOT the Ontology URI which can be obtained by onto1.getLogicalURI();


uri2

protected java.net.URI uri2
Constructor Detail

OWLAPIAlignment

public OWLAPIAlignment()
Method Detail

accept

public void accept(AlignmentVisitor visitor)
            throws AlignmentException
Description copied from interface: Alignment
Alignment methods

Specified by:
accept in interface Alignment
Overrides:
accept in class BasicAlignment
Throws:
AlignmentException

init

protected void init(OWLOntology onto1,
                    OWLOntology onto2)
Overrides:
init in class BasicAlignment

getOntology1

public java.lang.Object getOntology1()
Alignment methods *

Specified by:
getOntology1 in interface Alignment
Overrides:
getOntology1 in class BasicAlignment

getOntology2

public java.lang.Object getOntology2()
Specified by:
getOntology2 in interface Alignment
Overrides:
getOntology2 in class BasicAlignment

setOntology1

public void setOntology1(java.lang.Object ontology)
                  throws AlignmentException
Specified by:
setOntology1 in interface Alignment
Overrides:
setOntology1 in class BasicAlignment
Throws:
AlignmentException

setOntology2

public void setOntology2(java.lang.Object ontology)
                  throws AlignmentException
Specified by:
setOntology2 in interface Alignment
Overrides:
setOntology2 in class BasicAlignment
Throws:
AlignmentException

addAlignCell

public Cell addAlignCell(java.lang.Object ob1,
                         java.lang.Object ob2,
                         java.lang.String relation,
                         double measure)
                  throws AlignmentException
Cell methods

Specified by:
addAlignCell in interface Alignment
Overrides:
addAlignCell in class BasicAlignment
Throws:
AlignmentException

addCell

protected void addCell(Cell c)
                throws AlignmentException
Overrides:
addCell in class BasicAlignment
Throws:
AlignmentException

getAlignCells1

public java.util.Set getAlignCells1(java.lang.Object ob)
                             throws AlignmentException
Description copied from interface: Alignment
Cells are retrieved These primitives are deprecated. Use getAlignCells1 and getAlignCells2 instead. Reason: this applies only for 1:1 alignments Some implementations might act cleverly (retrieving the best value). Basic implementations may raise the exception

Specified by:
getAlignCells1 in interface Alignment
Overrides:
getAlignCells1 in class BasicAlignment
Throws:
AlignmentException

getAlignCells2

public java.util.Set getAlignCells2(java.lang.Object ob)
                             throws AlignmentException
Specified by:
getAlignCells2 in interface Alignment
Overrides:
getAlignCells2 in class BasicAlignment
Throws:
AlignmentException

getAlignCell1

public Cell getAlignCell1(java.lang.Object ob)
                   throws AlignmentException
Description copied from interface: Alignment
Cells are retrieved These primitives are deprecated. Use getAlignCells1 and getAlignCells2 instead. Reason: this applies only for 1:1 alignments Some implementations might act cleverly (retrieving the best value). Basic implementations may raise the exception

Specified by:
getAlignCell1 in interface Alignment
Overrides:
getAlignCell1 in class BasicAlignment
Throws:
AlignmentException

getAlignCell2

public Cell getAlignCell2(java.lang.Object ob)
                   throws AlignmentException
Specified by:
getAlignCell2 in interface Alignment
Overrides:
getAlignCell2 in class BasicAlignment
Throws:
AlignmentException

removeAlignCell

public void removeAlignCell(Cell c)
                     throws AlignmentException
Overrides:
removeAlignCell in class BasicAlignment
Throws:
AlignmentException

INRIA & friends

..no bottom yet...