|
INRIA & friends | ||||||||||
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. NOTE(JE): hashtabale are indexed by URI. This is strange, but there might be a reason
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 | |
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 |
protected void |
addCell(Cell c)
|
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 : - getting those cells with strength above n (hard) - getting the n best cells (best) - getting those cells with strength at worse n under the best (span) - getting the n% best cells (perc) - getting those cells with strength at worse n% of the best (prop) Rule: threshold is betweew 1 and 0 |
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)
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 |
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.ArrayList |
getArrayElements()
|
java.util.Enumeration |
getElements()
|
java.lang.String |
getExtension(java.lang.String label)
|
Parameters |
getExtensions()
Extensions are a way to read and add other information (metadata) to the alignment structure itself. |
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 cells of the alignment into its own alignment. |
protected void |
init(OWLOntology onto1,
OWLOntology onto2)
|
Alignment |
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 |
removeAlignCell(Cell c)
|
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 |
setExtension(java.lang.String label,
java.lang.String value)
|
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 |
private boolean STRICT_IMPLEMENTATION
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 long time
protected Parameters extensions
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 Parameters getExtensions()
Alignment
getExtensions
in interface Alignment
public void setExtension(java.lang.String label, java.lang.String value)
setExtension
in interface Alignment
public java.lang.String getExtension(java.lang.String label)
getExtension
in interface Alignment
public java.util.Enumeration getElements()
getElements
in interface Alignment
public java.util.ArrayList getArrayElements()
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
protected void addCell(Cell c) throws AlignmentException
AlignmentException
public java.util.Set getAlignCells1(java.lang.Object ob) throws AlignmentException
Alignment
getAlignCells1
in interface Alignment
AlignmentException
public java.util.Set getAlignCells2(java.lang.Object ob) throws AlignmentException
getAlignCells2
in interface Alignment
AlignmentException
public Cell getAlignCell1(java.lang.Object ob) throws AlignmentException
Alignment
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 removeAlignCell(Cell c) throws AlignmentException
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 Alignment inverse() throws AlignmentException
inverse
in interface Alignment
AlignmentException
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 & friends | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |