public class URIAlignment extends BasicAlignment
confidenceType, extensions, hash1, hash2, level, logger, namespaces, onto1, onto2, relationCreationMethod, relationType, time, type
Constructor and Description |
---|
URIAlignment() |
Modifier and Type | Method and Description |
---|---|
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)
Cells are created and indexed at once
|
Cell |
addAlignCell(java.lang.String id,
java.lang.Object ob1,
java.lang.Object ob2,
Relation relation,
double measure)
Cell methods
|
URICell |
createCell(java.lang.String id,
java.lang.Object ob1,
java.lang.Object ob2,
Relation relation,
double measure) |
URIAlignment |
createNewAlignment(java.lang.Object onto1,
java.lang.Object onto2,
java.lang.Class<? extends Relation> relType,
java.lang.Class<?> confType)
This method is used by the algebraic operators
It has to be overriden by implementations.
|
Cell |
getAlignCell1(java.lang.Object ob)
Cells are retrieved
These primitives are deprecated.
|
Cell |
getAlignCell2(java.lang.Object ob)
//@deprecated There is more than one cell about one object
|
java.util.Set<Cell> |
getAlignCells1(java.lang.Object ob)
Cells are retrieved
These primitives are deprecated.
|
java.util.Set<Cell> |
getAlignCells2(java.lang.Object ob) |
void |
init(java.lang.Object o1,
java.lang.Object o2)
Initialize the alignement before using it
|
URIAlignment |
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.
|
void |
setOntology1(java.lang.Object ontology) |
void |
setOntology2(java.lang.Object ontology) |
URIAlignment |
toURIAlignment()
Returns default exception for conversion to URIAlignments
|
accept, addAlignCell, addAlignCell, addCell, aggregate, avgConfidence, cleanUp, clone, compose, contains, createRelation, cut, cut, cut2, deleteAllCells, diff, dump, equals, getAlignCells, getAlignedObject1, getAlignedObject2, getAlignedRelation1, getAlignedRelation2, getAlignedStrength1, getAlignedStrength2, getArrayElements, getConfidenceType, getElements, getExtension, getExtensions, getExtensionsObject, getFile1, getFile2, getLevel, getOntology1, getOntology1URI, getOntology2, getOntology2URI, getOntologyObject1, getOntologyObject2, getParameters, getRelationType, getSortedIterator, getType, getXNamespace, getXNamespaces, harden, hashCode, ingest, init, init, invertContent, invertType, iterator, join, maxConfidence, meet, minConfidence, nbCells, normalise, remCell, removeAlignCell, render, rewriteQuery, rewriteQuery, rewriteSPARQLQuery, rewriteSPARQLQuery, setConfidenceType, setExtension, setExtensions, setFile1, setFile2, setLevel, setRelationType, setType, setXNamespace, translateMessage, varianceConfidence
public void init(java.lang.Object o1, java.lang.Object o2) throws AlignmentException
Alignment
init
in interface Alignment
init
in class BasicAlignment
o1
- andAlignmentException
- if cannot initializepublic void setOntology1(java.lang.Object ontology) throws AlignmentException
setOntology1
in interface Alignment
setOntology1
in class BasicAlignment
AlignmentException
public void setOntology2(java.lang.Object ontology) throws AlignmentException
setOntology2
in interface Alignment
setOntology2
in class BasicAlignment
AlignmentException
public Cell addAlignCell(java.lang.String id, java.lang.Object ob1, java.lang.Object ob2, Relation relation, double measure) throws AlignmentException
addAlignCell
in class BasicAlignment
AlignmentException
public Cell addAlignCell(java.lang.Object ob1, java.lang.Object ob2, java.lang.String relation, double measure) throws AlignmentException
Alignment
addAlignCell
in interface Alignment
addAlignCell
in class BasicAlignment
ob1
- the object of the first ontology in the correspondenceob2
- the object of the second ontology in the correspondencerelation
- the relation between these objectsmeasure
- the confidence measure in the correspondenceAlignmentException
- when something goes wrong (unknown objects, bad relation)public Cell addAlignCell(java.lang.Object ob1, java.lang.Object ob2) throws AlignmentException
addAlignCell
in interface Alignment
addAlignCell
in class BasicAlignment
AlignmentException
public URICell createCell(java.lang.String id, java.lang.Object ob1, java.lang.Object ob2, Relation relation, double measure) throws AlignmentException
createCell
in class BasicAlignment
AlignmentException
public java.util.Set<Cell> getAlignCells1(java.lang.Object ob) throws AlignmentException
Alignment
getAlignCells1
in interface Alignment
getAlignCells1
in class BasicAlignment
ob
- the object of the first ontology from which to retrieve the correspondencesAlignmentException
- when something goes wrongpublic java.util.Set<Cell> getAlignCells2(java.lang.Object ob) throws AlignmentException
getAlignCells2
in interface Alignment
getAlignCells2
in class BasicAlignment
AlignmentException
public Cell getAlignCell1(java.lang.Object ob) throws AlignmentException
Alignment
getAlignCell1
in interface Alignment
getAlignCell1
in class BasicAlignment
ob
- the object of the first ontology from which to retrieve the correspondenceAlignmentException
- when something goes wrong
//@deprecated There is more than one cell about one objectpublic Cell getAlignCell2(java.lang.Object ob) throws AlignmentException
Alignment
getAlignCell2
in interface Alignment
getAlignCell2
in class BasicAlignment
ob
- the object of the second ontology from which to retrieve the correspondenceAlignmentException
- when something goes wrongpublic URIAlignment toURIAlignment() throws AlignmentException
toURIAlignment
in class BasicAlignment
AlignmentException
- when something goes wrong (the alignment cannot be converted)public URIAlignment createNewAlignment(java.lang.Object onto1, java.lang.Object onto2, java.lang.Class<? extends Relation> relType, java.lang.Class<?> confType) throws AlignmentException
BasicAlignment
createNewAlignment
in class BasicAlignment
onto1
- andAlignmentException
- when something goes wrongpublic URIAlignment inverse() throws AlignmentException
BasicAlignment
inverse
in interface Alignment
inverse
in class BasicAlignment
AlignmentException
- when something goes wrong (unlikely)(C) INRIA & friends, 2003-2020