|
INRIA & UMontrŽal | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.impl.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.
Field Summary | |
protected int |
debug
|
protected java.util.Hashtable |
hash1
|
protected java.util.Hashtable |
hash2
|
protected java.lang.String |
level
|
protected OWLOntology |
onto1
|
protected OWLOntology |
onto2
|
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 | |
BasicAlignment()
|
Method Summary | |
void |
accept(AlignmentVisitor visitor)
Alignment methods |
Cell |
addAlignCell(java.lang.Object ob1,
java.lang.Object ob2)
|
Cell |
addAlignCell(java.lang.Object ob1,
java.lang.Object ob2,
java.lang.String relation,
double measure)
Cell methods * |
Alignment |
compose(Alignment align)
The second alignment is composed with the first one meaning that for any pair (o, o', n, r) in O and (o',o", n', r') in O' the resulting alignment will contain: ( o, o", join(n,n'), compose(r, r')) iff compose(r,r') exists. |
void |
cut(double threshold)
Default cut implementation For compatibility with API until version 1.1 |
void |
cut(java.lang.String method,
double threshold)
Cut refinement : - above n (hard) - above n under the best () - getting the n% better (perc) - getting the under n% of the best (prop) - getting the n best values |
void |
cut2(double threshold)
The cut function suppresses from an alignment all the cell over a particulat threshold |
void |
dump(org.xml.sax.ContentHandler h)
Housekeeping * |
Cell |
getAlignCell1(java.lang.Object ob)
|
Cell |
getAlignCell2(java.lang.Object ob)
|
java.lang.Object |
getAlignedObject1(java.lang.Object ob)
Each part of the cell can be queried independently. |
java.lang.Object |
getAlignedObject2(java.lang.Object ob)
|
Relation |
getAlignedRelation1(java.lang.Object ob)
|
Relation |
getAlignedRelation2(java.lang.Object ob)
|
double |
getAlignedStrength1(java.lang.Object ob)
|
double |
getAlignedStrength2(java.lang.Object ob)
|
java.util.Enumeration |
getElements()
|
java.net.URI |
getFile1()
|
java.net.URI |
getFile2()
|
java.lang.String |
getLevel()
|
java.lang.Object |
getOntology1()
Alignment methods * |
java.lang.Object |
getOntology2()
|
java.lang.String |
getType()
|
void |
harden(double threshold)
The harden function acts like threshold but put all weights to 1. |
protected void |
ingest(Alignment alignment)
Incorporate the cell of the alignment into it own alignment. |
protected void |
init(OWLOntology onto1,
OWLOntology onto2)
|
void |
inverse()
A new alignment is created such that for any pair (o, o', n, r) in O the resulting alignment will contain: ( o', o, n, inverse(r)) iff compose(r) exists. |
Alignment |
join(Alignment align)
The second alignment is join with the first one meaning that for any pair (o, o', n, r) in O and (o, o', n', r) in O' the resulting alignment will contain: ( o, o", join(n,n'), r) any pair which is in only one alignment is discarded. |
Alignment |
meet(Alignment align)
The second alignment is meet with the first one meaning that for any pair (o, o', n, r) in O and (o, o', n', r) in O' the resulting alignment will contain: ( o, o', meet(n,n'), r) any pair which is in only one alignment is preserved. |
int |
nbCells()
|
void |
render(AlignmentVisitor renderer)
This should be rewritten in order to generate the axiom ontology instead of printing it! And then use ontology serialization for getting it printed. |
void |
setFile1(java.net.URI u)
Alignment type: Currently defined a sa String. |
void |
setFile2(java.net.URI u)
|
void |
setLevel(java.lang.String level)
Alignment type: Currently defined a sa String. |
void |
setOntology1(java.lang.Object ontology)
|
void |
setOntology2(java.lang.Object ontology)
|
void |
setType(java.lang.String type)
Alignment type: Currently defined a sa String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int debug
protected java.lang.String level
protected java.lang.String type
protected OWLOntology onto1
protected OWLOntology onto2
protected java.util.Hashtable hash1
protected java.util.Hashtable hash2
protected java.net.URI uri1
protected java.net.URI uri2
Constructor Detail |
public BasicAlignment()
Method Detail |
public void accept(AlignmentVisitor visitor) throws AlignmentException
Alignment
accept
in interface Alignment
AlignmentException
protected void init(OWLOntology onto1, OWLOntology onto2)
public int nbCells()
nbCells
in interface Alignment
public java.lang.Object getOntology1()
getOntology1
in interface Alignment
public java.lang.Object getOntology2()
getOntology2
in interface Alignment
public void setOntology1(java.lang.Object ontology) throws AlignmentException
setOntology1
in interface Alignment
AlignmentException
public void setOntology2(java.lang.Object ontology) throws AlignmentException
setOntology2
in interface Alignment
AlignmentException
public void setType(java.lang.String type)
Alignment
setType
in interface Alignment
public java.lang.String getType()
getType
in interface Alignment
public void setLevel(java.lang.String level)
Alignment
setLevel
in interface Alignment
public java.lang.String getLevel()
getLevel
in interface Alignment
public java.net.URI getFile1()
getFile1
in interface Alignment
public void setFile1(java.net.URI u)
Alignment
setFile1
in interface Alignment
public java.net.URI getFile2()
getFile2
in interface Alignment
public void setFile2(java.net.URI u)
setFile2
in interface Alignment
public java.util.Enumeration getElements()
getElements
in interface Alignment
public Cell addAlignCell(java.lang.Object ob1, java.lang.Object ob2, java.lang.String relation, double measure) throws AlignmentException
addAlignCell
in interface Alignment
AlignmentException
public Cell addAlignCell(java.lang.Object ob1, java.lang.Object ob2) throws AlignmentException
addAlignCell
in interface Alignment
AlignmentException
public Cell getAlignCell1(java.lang.Object ob) throws AlignmentException
getAlignCell1
in interface Alignment
AlignmentException
public Cell getAlignCell2(java.lang.Object ob) throws AlignmentException
getAlignCell2
in interface Alignment
AlignmentException
public java.lang.Object getAlignedObject1(java.lang.Object ob) throws AlignmentException
Alignment
getAlignedObject1
in interface Alignment
AlignmentException
public java.lang.Object getAlignedObject2(java.lang.Object ob) throws AlignmentException
getAlignedObject2
in interface Alignment
AlignmentException
public Relation getAlignedRelation1(java.lang.Object ob) throws AlignmentException
getAlignedRelation1
in interface Alignment
AlignmentException
public Relation getAlignedRelation2(java.lang.Object ob) throws AlignmentException
getAlignedRelation2
in interface Alignment
AlignmentException
public double getAlignedStrength1(java.lang.Object ob) throws AlignmentException
getAlignedStrength1
in interface Alignment
AlignmentException
public double getAlignedStrength2(java.lang.Object ob) throws AlignmentException
getAlignedStrength2
in interface Alignment
AlignmentException
public void cut2(double threshold) throws AlignmentException
AlignmentException
public void cut(double threshold) throws AlignmentException
cut
in interface Alignment
AlignmentException
public void cut(java.lang.String method, double threshold) throws AlignmentException
cut
in interface Alignment
AlignmentException
public void harden(double threshold) throws AlignmentException
harden
in interface Alignment
AlignmentException
public Alignment meet(Alignment align) throws AlignmentException
meet
in interface Alignment
AlignmentException
public Alignment join(Alignment align) throws AlignmentException
join
in interface Alignment
AlignmentException
public Alignment compose(Alignment align) throws AlignmentException
compose
in interface Alignment
AlignmentException
public void inverse()
inverse
in interface Alignment
public void dump(org.xml.sax.ContentHandler h)
dump
in interface Alignment
protected void ingest(Alignment alignment) throws AlignmentException
AlignmentException
public void render(AlignmentVisitor renderer) throws AlignmentException
render
in interface Alignment
AlignmentException
|
INRIA & UMontrŽal | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |