it.uniroma2.info.ai_nlp.LinguisticWatermark
Class LinguisticInterface

java.lang.Object
  extended by it.uniroma2.info.ai_nlp.LinguisticWatermark.LinguisticInterface
Direct Known Subclasses:
BilingualLinguisticInterface

public abstract class LinguisticInterface
extends Object

this is the main class which must be implemented to create a wrapper for a given (category of) linguistic resource

Author:
Armando Stellato

Field Summary
protected  String[] ConceptualRelations
          a set of Semantic Relations between word senses of the linguistic resources
protected  String language
          the natural language in which the resource is expressed, if the resource is a bilingual dictionary it represents the target language of the translation
protected  String[] LexicalRelations
          a set of Lexical Relations or search strategies for querying the linguistic resource
protected  boolean matchCaseSearchStatus
          tells if searches on the linguistic resource will take into account the case of the word(s) given as input
protected  String shortID
          a sort of very short ID used to identify the resource
protected  boolean wholeWordSearchStatus
          tells if searches on the linguistic resource will return only exact matches of the word(s) given as input
 
Constructor Summary
LinguisticInterface()
           
 
Method Summary
 Collection exploreConceptualRelation(String Relation, Concept c)
           
 Collection exploreLexicalRelation(String Relation, String words)
           
 String[] getConceptualRelationsList()
           
 String getLanguage()
           
 String[] getLexicalRelationsList()
           
 boolean getMatchCaseSearchStatus()
           
 String getResourceShortId()
           
 boolean getWholeWordSearchStatus()
           
 boolean hasConceptPrefixSearch()
           
 boolean hasGlosses()
           
abstract  void initialize()
          this method initializes the resource, loading its database and specifying some of its properties (language, shortID etc...)
 boolean isBilingual()
           
 boolean isConceptualized()
           
 boolean isFlat()
           
 boolean isSelectableOperationMatchCaseToggling()
           
 boolean isSelectableOperationWholeWordToggling()
           
 boolean isTaxonomical()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ConceptualRelations

protected String[] ConceptualRelations
a set of Semantic Relations between word senses of the linguistic resources


LexicalRelations

protected String[] LexicalRelations
a set of Lexical Relations or search strategies for querying the linguistic resource


wholeWordSearchStatus

protected boolean wholeWordSearchStatus
tells if searches on the linguistic resource will return only exact matches of the word(s) given as input


matchCaseSearchStatus

protected boolean matchCaseSearchStatus
tells if searches on the linguistic resource will take into account the case of the word(s) given as input


language

protected String language
the natural language in which the resource is expressed, if the resource is a bilingual dictionary it represents the target language of the translation


shortID

protected String shortID
a sort of very short ID used to identify the resource

Constructor Detail

LinguisticInterface

public LinguisticInterface()
Method Detail

initialize

public abstract void initialize()
this method initializes the resource, loading its database and specifying some of its properties (language, shortID etc...)


exploreConceptualRelation

public Collection exploreConceptualRelation(String Relation,
                                            Concept c)
                                     throws Exception
Parameters:
Relation - a semantic relation between senses of linguistic expressions inside the linguistic resource
c - a sense related to one or more linguistic expressions
Returns:
a set of results, depending on the nature of the linguistic resource (usually concepts).
Throws:
Exception

exploreLexicalRelation

public Collection exploreLexicalRelation(String Relation,
                                         String words)
                                  throws Exception
Parameters:
Relation - a lexical relation between words or words and their senses, this may include search strategies to be applied upon a given search key
words - a word or linguistic expression used as a key for searching the linguistic resource
Returns:
a set of results, depending on the nature of the linguistic resource (usually Concepts for conceptualizedLR resources and lemmas for flatLR ones).
Throws:
Exception

getConceptualRelationsList

public String[] getConceptualRelationsList()
Returns:
the list of semantic relations which are available for the wrapped linguistic resource

getLexicalRelationsList

public String[] getLexicalRelationsList()
Returns:
the list of lexical relations which are available for the wrapped linguistic resource

getLanguage

public String getLanguage()
Returns:
the value assigned to the language field of this interface

getResourceShortId

public String getResourceShortId()
Returns:
the value assigned to the shortID field of this interface

isConceptualized

public boolean isConceptualized()
Returns:
true if the interface to the linguistic resource implements the ConceptualizedLR interface

hasConceptPrefixSearch

public boolean hasConceptPrefixSearch()

isTaxonomical

public boolean isTaxonomical()
Returns:
true if the interface to the linguistic resource implements the TaxonomicalLR interface

hasGlosses

public boolean hasGlosses()
Returns:
true if the interface to the linguistic resource implements the LRWithGlosses interface

isFlat

public boolean isFlat()
Returns:
true if the interface to the linguistic resource implements the FlatLR interface

isBilingual

public boolean isBilingual()
Returns:
true if the interface to the linguistic resource is a subclass of BilingualLinguisticInterface

isSelectableOperationMatchCaseToggling

public boolean isSelectableOperationMatchCaseToggling()
Returns:
true if this interface allows for switching between exact and non exact match when searching the resource for given word(s) i.e. if the interface to the linguistic resource implements the MatchCaseToggling interface

isSelectableOperationWholeWordToggling

public boolean isSelectableOperationWholeWordToggling()
Returns:
true if this interface allows for switching between case sensitive and case insensitive match when searching the resource for given word(s) i.e. if the interface to the linguistic resource implements the WholeWordToggling interface

getWholeWordSearchStatus

public boolean getWholeWordSearchStatus()
Returns:
the value assigned to the wholeWordSearchStatus field of this interface

getMatchCaseSearchStatus

public boolean getMatchCaseSearchStatus()
Returns:
the value assigned to the matchCaseSearchStatus field of this interface