Class WebIsAlodXLKnowledgeSource
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.external.SemanticWordRelationDictionary
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.external.webIsAlod.xl.WebIsAlodXLKnowledgeSource
- All Implemented Interfaces:
ExternalResource
,ExternalResourceWithHypernymCapability
,ExternalResourceWithSynonymCapability
,HypernymCapability
,SynonymCapability
-
Field Summary
Modifier and TypeFieldDescription(package private) WebIsAlodXLLinker
The linker that links input strings to terms.double
minimum confidence for synonymy queries.(package private) WebIsAlodSPARQLservice
SPARQL service instance required for requests. -
Constructor Summary
ConstructorDescriptionDefault constructor.WebIsAlodXLKnowledgeSource
(double minimumConfidence) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closing open resources.getHypernyms
(String linkedConcept) Retrieves a set of hypernyms independently of the word sense.Returns the linker instance for this particular resource.double
getName()
Obtain the name of the resource.getSynonymsLexical
(String linkedConcept) Retrieves a list of synonyms independently of the word sense.boolean
isInDictionary
(String word) boolean
isStrongFormSynonymous
(String link1, String link2) Checks for synonymy by determining whether link1 is contained in the set of synonymous words of link2 or vice versa.boolean
isSynonymous
(String link1, String link2) Checks for synonymous words in a loose-form fashion: There has to be an overlap in the two sets of synonyms or word_1 and word_2.boolean
isURIinDictionary
(String uri) void
setMinimumConfidence
(double minimumConfidence) Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.external.SemanticWordRelationDictionary
isHypernym, isHypernym, isHypernymous, isSynonymousOrHypernymous
-
Field Details
-
linker
WebIsAlodXLLinker linkerThe linker that links input strings to terms. -
sparqLservice
WebIsAlodSPARQLservice sparqLserviceSPARQL service instance required for requests. -
minimumConfidence
public double minimumConfidenceminimum confidence for synonymy queries.
-
-
Constructor Details
-
WebIsAlodXLKnowledgeSource
public WebIsAlodXLKnowledgeSource(double minimumConfidence) Constructor- Parameters:
minimumConfidence
- Minimum confidence.
-
WebIsAlodXLKnowledgeSource
public WebIsAlodXLKnowledgeSource()Default constructor. A minimum required confidence of 0.0 is used as default.
-
-
Method Details
-
isInDictionary
-
isURIinDictionary
-
isSynonymous
Description copied from class:SemanticWordRelationDictionary
Checks for synonymous words in a loose-form fashion: There has to be an overlap in the two sets of synonyms or word_1 and word_2. The assumed language is English.- Specified by:
isSynonymous
in interfaceSynonymCapability
- Overrides:
isSynonymous
in classSemanticWordRelationDictionary
- Parameters:
link1
- linked word 1link2
- linked word 2- Returns:
- True if the given words are synonymous, else false.
-
isStrongFormSynonymous
Description copied from class:SemanticWordRelationDictionary
Checks for synonymy by determining whether link1 is contained in the set of synonymous words of link2 or vice versa.- Specified by:
isStrongFormSynonymous
in interfaceSynonymCapability
- Overrides:
isStrongFormSynonymous
in classSemanticWordRelationDictionary
- Parameters:
link1
- Word 1link2
- Word 2- Returns:
- True if the given words are synonymous, else false.
-
getSynonymsLexical
Description copied from class:SemanticWordRelationDictionary
Retrieves a list of synonyms independently of the word sense. The assumed language is English.- Specified by:
getSynonymsLexical
in interfaceSynonymCapability
- Specified by:
getSynonymsLexical
in classSemanticWordRelationDictionary
- Parameters:
linkedConcept
- The linked concept for which synonyms shall be retrieved.- Returns:
- A set of synonyms in word form (not links).
-
close
public void close()Description copied from class:SemanticWordRelationDictionary
Closing open resources.- Specified by:
close
in classSemanticWordRelationDictionary
-
getHypernyms
Description copied from class:SemanticWordRelationDictionary
Retrieves a set of hypernyms independently of the word sense. The assumed language is English.- Specified by:
getHypernyms
in classSemanticWordRelationDictionary
- Parameters:
linkedConcept
- The linked concept for which hypernyms shall be retrieved.- Returns:
- A set of linked concepts.
-
getLinker
Description copied from interface:ExternalResource
Returns the linker instance for this particular resource.- Specified by:
getLinker
in interfaceExternalResource
- Specified by:
getLinker
in classSemanticWordRelationDictionary
- Returns:
- The specific linker used to link words to concepts.
-
getName
Description copied from interface:ExternalResource
Obtain the name of the resource.- Specified by:
getName
in interfaceExternalResource
- Specified by:
getName
in classSemanticWordRelationDictionary
- Returns:
- Name of the resource.
-
setMinimumConfidence
public void setMinimumConfidence(double minimumConfidence) -
getMinimumConfidence
public double getMinimumConfidence()
-