Class AlcomoFilter
java.lang.Object
eu.sealsproject.platform.res.tool.impl.AbstractPlugin
de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
de.uni_mannheim.informatik.dws.melt.matching_owlapi_matchers.AlcomoFilter
- All Implemented Interfaces:
Filter
,eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
,eu.sealsproject.platform.res.tool.api.IPlugin
,eu.sealsproject.platform.res.tool.api.IToolBridge
Filter which makes and alignment coherent. When using this component, please cite:
Christian Meilicke. Alignment Incoherence in Ontology Matching. University Mannheim 2011.
This filter wraps the original implementation.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner
private de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem
private static final boolean
private boolean
True if a one-to-one alignment is required.private static final org.slf4j.Logger
private de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner
The reasoner that is to be used. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Alignment
alcomoAlignmentToYaaaAlignment
(de.uni_mannheim.informatik.dws.alcomo.mapping.Mapping alcomoAlignment) Mapping from Alcomo Mapping to YAAA'sAlignment
.static CorrespondenceRelation
alcomoSemanticRelationToYaaaCorrespondenceRelation
(int alcomoSemanticRelationCode) Mapping of the ALCOMO semantic relation code to YAAA'sCorrespondenceRelation
.de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem
de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner
boolean
Match two ontologies / knowledge graphs together and returns an alignment.match
(org.semanticweb.owlapi.model.OWLOntology source, org.semanticweb.owlapi.model.OWLOntology target, Alignment inputAlignment, Properties p) OwlAPI implementation.(package private) static String
serializeAlignmentToTemporaryFile
(Alignment alignment) Serialize the alignment to a file and return its path.(package private) static String
serializeOntologyToTemporaryFile
(org.semanticweb.owlapi.model.OWLOntology ontology) Serializes the ontology to a file and returns its path.void
setExtractionProblem
(de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem extractionProblem) void
setOneToOneAlignment
(boolean oneToOneAlignment) void
setReasoner
(de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner reasoner) Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
align, align, canExecute, getType
Methods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin
getId, getVersion, setId, setVersion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.sealsproject.platform.res.tool.api.IPlugin
getId, getVersion
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
isOneToOneAlignment
private boolean isOneToOneAlignmentTrue if a one-to-one alignment is required. Access only through getter/setter. -
IS_ONE_TO_ONE_ALIGNMENT_DEFAULT_VALUE
private static final boolean IS_ONE_TO_ONE_ALIGNMENT_DEFAULT_VALUE- See Also:
-
extractionProblem
private de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem extractionProblem -
reasoner
private de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner reasonerThe reasoner that is to be used. Access only through getter/setter. -
DEFAULT_REASONER
private static final de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner DEFAULT_REASONER
-
-
Constructor Details
-
AlcomoFilter
public AlcomoFilter()Constructor. Will set default values.
-
-
Method Details
-
match
Description copied from class:MatcherURL
Match two ontologies / knowledge graphs together and returns an alignment.- Specified by:
match
in classMatcherURL
- Parameters:
source
- The source ontology / knowledge graphtarget
- The target ontology / knowledge graphinputAlignment
- The input alignment as URL (alignment API format)- Returns:
- An alignment as URL (most often as file URL) the format is again the alignment API format.
- Throws:
Exception
- in case something went wrong.
-
match
public Alignment match(org.semanticweb.owlapi.model.OWLOntology source, org.semanticweb.owlapi.model.OWLOntology target, Alignment inputAlignment, Properties p) throws Exception OwlAPI implementation.- Parameters:
source
- Source ontology.target
- Target ontology.inputAlignment
- Input alignment (required for this filter).p
- Parameters (ignored by this filter).- Returns:
- Filtered Alignment.
- Throws:
Exception
- May be thrown in the case of error.
-
alcomoAlignmentToYaaaAlignment
public static Alignment alcomoAlignmentToYaaaAlignment(de.uni_mannheim.informatik.dws.alcomo.mapping.Mapping alcomoAlignment) Mapping from Alcomo Mapping to YAAA'sAlignment
.- Parameters:
alcomoAlignment
- The ALCOMO alignment ("mapping").- Returns:
Alignment
instance.
-
alcomoSemanticRelationToYaaaCorrespondenceRelation
public static CorrespondenceRelation alcomoSemanticRelationToYaaaCorrespondenceRelation(int alcomoSemanticRelationCode) Mapping of the ALCOMO semantic relation code to YAAA'sCorrespondenceRelation
.- Parameters:
alcomoSemanticRelationCode
- The ALCOMO semantic code (an integer).- Returns:
- Corresponding MELT/YAAA
CorrespondenceRelation
.
-
serializeAlignmentToTemporaryFile
Serialize the alignment to a file and return its path.- Parameters:
alignment
- The alignment to be serialized.- Returns:
- The path (as String) to the serialized alignment.
- Throws:
AlcomoException
- Thrown if there are problems with the file.
-
serializeOntologyToTemporaryFile
static String serializeOntologyToTemporaryFile(org.semanticweb.owlapi.model.OWLOntology ontology) throws AlcomoException Serializes the ontology to a file and returns its path.- Parameters:
ontology
- The ontology of which the file path shall be obtained.- Returns:
- String file path.
- Throws:
AlcomoException
- Risen if there occurs an exception in the process.
-
isOneToOneAlignment
public boolean isOneToOneAlignment() -
setOneToOneAlignment
public void setOneToOneAlignment(boolean oneToOneAlignment) -
getReasoner
public de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner getReasoner() -
setReasoner
public void setReasoner(de.uni_mannheim.informatik.dws.alcomo.Settings.BlackBoxReasoner reasoner) -
getExtractionProblem
public de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem getExtractionProblem() -
setExtractionProblem
public void setExtractionProblem(de.uni_mannheim.informatik.dws.alcomo.ExtractionProblem extractionProblem)
-