public class EDOALAlignment extends BasicAlignment
Modifier and Type | Field and Description |
---|---|
protected EDOALAlignment |
init |
(package private) static org.slf4j.Logger |
logger |
protected java.util.Hashtable<java.lang.String,Variable> |
variables |
confidenceType, extensions, hash1, hash2, level, namespaces, onto1, onto2, relationCreationMethod, relationType, time, type
Constructor and Description |
---|
EDOALAlignment() |
EDOALAlignment(BasicAlignment al) |
EDOALAlignment(EDOALAlignment al)
Generate a (deeper) copy of the alignment object
It has the same content but a different id (no id indeed)
|
EDOALAlignment(ObjectAlignment al) |
EDOALAlignment(URIAlignment al) |
Modifier and Type | Method and Description |
---|---|
void |
accept(TypeCheckingVisitor visitor) |
EDOALCell |
addAlignCell(java.lang.Object ob1,
java.lang.Object ob2)
Cell methods
|
EDOALCell |
addAlignCell(java.lang.Object ob1,
java.lang.Object ob2,
java.lang.String relation,
double measure)
Cells are created and indexed at once
|
EDOALCell |
addAlignCell(java.lang.String id,
java.lang.Object ob1,
java.lang.Object ob2,
Relation relation,
double measure) |
EDOALCell |
addAlignCell(java.lang.String id,
java.lang.Object ob1,
java.lang.Object ob2,
Relation relation,
double measure,
Extensions extensions) |
EDOALCell |
addAlignCell(java.lang.String id,
java.lang.Object ob1,
java.lang.Object ob2,
java.lang.String relation,
double measure) |
EDOALAlignment |
clone()
Generate a (shallow) copy of this alignment object
For a deeper copy, use the copy constructor
|
void |
convertToEDOAL(BasicAlignment al)
The EDOALAlignment has LoadedOntologies as ontologies
|
EDOALCell |
createCell(java.lang.String id,
java.lang.Object ob1,
java.lang.Object ob2,
Relation relation,
double measure) |
private static Id |
createEDOALExpression(LoadedOntology<java.lang.Object> o,
java.net.URI u) |
EDOALAlignment |
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) |
java.net.URI |
getOntology1URI() |
java.net.URI |
getOntology2URI() |
void |
init(java.lang.Object onto1,
java.lang.Object onto2)
Initialize the alignement before using it
|
EDOALAlignment |
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 |
loadInit(Alignment al) |
static LoadedOntology<? extends java.lang.Object> |
loadOntology(Ontology<java.lang.Object> onto) |
static LoadedOntology<? extends java.lang.Object> |
loadOntology(java.net.URI onto)
convert an URI alignment into a corresponding EDOALAlignment
The same could be implemented for ObjectAlignent if necessary
|
Variable |
recordVariable(java.lang.String name,
Expression expr) |
void |
setOntology1(java.lang.Object ontology) |
void |
setOntology2(java.lang.Object ontology) |
static EDOALAlignment |
toEDOALAlignment(BasicAlignment al) |
static EDOALAlignment |
toEDOALAlignment(ObjectAlignment al) |
static EDOALAlignment |
toEDOALAlignment(URIAlignment al) |
URIAlignment |
toURIAlignment()
This is a clone with the URI instead of Object objects
This conversion will drop any correspondences using something not identified by an URI
For converting to ObjectAlignment, first convert to URIAlignment and load as an ObjectAlignment
The same code as for ObjectAlignment works...
|
URIAlignment |
toURIAlignment(boolean strict) |
accept, addCell, aggregate, avgConfidence, cleanUp, 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, getOntology2, 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
static final org.slf4j.Logger logger
protected EDOALAlignment init
protected java.util.Hashtable<java.lang.String,Variable> variables
public EDOALAlignment()
public EDOALAlignment(EDOALAlignment al) throws AlignmentException
AlignmentException
public EDOALAlignment(URIAlignment al) throws AlignmentException
AlignmentException
public EDOALAlignment(ObjectAlignment al) throws AlignmentException
AlignmentException
public EDOALAlignment(BasicAlignment al) throws AlignmentException
AlignmentException
public void accept(TypeCheckingVisitor visitor) throws AlignmentException
AlignmentException
public void init(java.lang.Object onto1, java.lang.Object onto2) throws AlignmentException
Alignment
init
in interface Alignment
init
in class BasicAlignment
onto1
- andAlignmentException
- if cannot initializepublic void loadInit(Alignment al) throws AlignmentException
AlignmentException
public Variable recordVariable(java.lang.String name, Expression expr)
public EDOALCell addAlignCell(java.lang.Object ob1, java.lang.Object ob2) throws AlignmentException
addAlignCell
in interface Alignment
addAlignCell
in class BasicAlignment
AlignmentException
public EDOALCell 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 EDOALCell addAlignCell(java.lang.String id, java.lang.Object ob1, java.lang.Object ob2, java.lang.String relation, double measure) throws AlignmentException
addAlignCell
in class BasicAlignment
AlignmentException
public EDOALCell 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 EDOALCell addAlignCell(java.lang.String id, java.lang.Object ob1, java.lang.Object ob2, Relation relation, double measure, Extensions extensions) throws AlignmentException
addAlignCell
in class BasicAlignment
AlignmentException
public EDOALCell 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 java.net.URI getOntology1URI()
getOntology1URI
in interface Alignment
getOntology1URI
in class BasicAlignment
public java.net.URI getOntology2URI()
getOntology2URI
in interface Alignment
getOntology2URI
in class BasicAlignment
public 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 URIAlignment toURIAlignment() throws AlignmentException
toURIAlignment
in class BasicAlignment
AlignmentException
- when something goes wrong (the alignment cannot be converted)public URIAlignment toURIAlignment(boolean strict) throws AlignmentException
AlignmentException
public static LoadedOntology<? extends java.lang.Object> loadOntology(java.net.URI onto) throws AlignmentException
onto:
- the URI of the ontology to loadAlignmentException
- when something goes wrong (ontology not loadable)public static LoadedOntology<? extends java.lang.Object> loadOntology(Ontology<java.lang.Object> onto) throws AlignmentException
AlignmentException
public static EDOALAlignment toEDOALAlignment(URIAlignment al) throws AlignmentException
AlignmentException
public static EDOALAlignment toEDOALAlignment(ObjectAlignment al) throws AlignmentException
AlignmentException
public static EDOALAlignment toEDOALAlignment(BasicAlignment al) throws AlignmentException
AlignmentException
public void convertToEDOAL(BasicAlignment al) throws AlignmentException
al:
- an alignment to convert as an EDOALAlignementAlignmentException
- when something goes wrong (typically cannot access the aligned ontologies)private static Id createEDOALExpression(LoadedOntology<java.lang.Object> o, java.net.URI u) throws OntowrapException, AlignmentException
OntowrapException
AlignmentException
public EDOALAlignment clone()
clone
in interface Alignment
clone
in class BasicAlignment
public EDOALAlignment 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 EDOALAlignment inverse() throws AlignmentException
BasicAlignment
inverse
in interface Alignment
inverse
in class BasicAlignment
AlignmentException
- when something goes wrong (unlikely)(C) INRIA & friends, 2003-2020