Interface LabelToConceptLinker
- All Known Implementing Classes:
BabelNetEmbeddingLinker
,BabelNetLinker
,BabelNetRdfLinker
,DBpediaEmbeddingLinker
,DBpediaLinker
,LabelToConceptLinkerCombined
,LabelToConceptLinkerCombinedEmbeddings
,LabelToConceptLinkerEmbeddings
,WebIsAlodClassicLinker
,WebIsAlodEmbeddingLinker
,WebIsAlodXLLinker
,WikidataEmbeddingLinker
,WikidataLinker
,WiktionaryEmbeddingLinker
,WiktionaryLinker
,WordNetEmbeddingLinker
,WordNetLinker
public interface LabelToConceptLinker
General interface for all label-to-concept linkers.
-
Method Summary
Modifier and TypeMethodDescriptionGet instance specific name of the linker.linkToPotentiallyMultipleConcepts
(String labelToBeLinked) This method tries to linklabelToBeLinked
to one concept if possible.linkToSingleConcept
(String labelToBeLinked) Queries for a concept and returns a link that represents an entity in the background knowledge source such as theSemanticWordRelationDictionary
.void
setNameOfLinker
(String nameOfLinker) Set instance specific name of the linker.
-
Method Details
-
linkToSingleConcept
Queries for a concept and returns a link that represents an entity in the background knowledge source such as theSemanticWordRelationDictionary
. Note that the link may not always be something intuitive such as a URI but may also be an artificial identifier that is understood by the corresponding background knowledge source.- Parameters:
labelToBeLinked
- The label which shall be linked to a single concept.- Returns:
- Concept or null if no link could be found.
-
linkToPotentiallyMultipleConcepts
This method tries to linklabelToBeLinked
to one concept if possible. If it fails, it will try to link it to multiple concepts.- Parameters:
labelToBeLinked
- The label which shall be linked.- Returns:
- One or multiple linked concepts in a set. Null if it could not fully link the label.
-
getNameOfLinker
String getNameOfLinker()Get instance specific name of the linker.- Returns:
- Name as String.
-
setNameOfLinker
Set instance specific name of the linker.- Parameters:
nameOfLinker
- Name to be set.
-