GATE
Version 3.1-2270

gate.lexicon
Interface OntoLexLR

All Superinterfaces:
FeatureBearer, LanguageResource, NameBearer, Resource, Serializable
All Known Implementing Classes:
OntoLexKBImpl

public interface OntoLexLR
extends LanguageResource

Title: OntoLexLR interface, GATE2

Description: This interface describes the mapping between ontological concepts/instances and lexical entries. Such mapping is needed to support language generation and also understanding that uses both lexicons of synonyms and other lexical info and an ontology of the domain.

Developed for the purpose of the MIAKT project, February 2003.

Copyright: Copyright (c) 2000

Company: University Of Sheffield

Version:
1.0
Author:
Kalina Bontcheva

Method Summary
 void add(Object conceptId, Object lexId)
          Add a concept<->lexical ID pair
 void clear()
          Clear the mapping
 Set getAllConceptIds()
          Returns a list of objects which are all concept IDs in this mapping.
 Set getAllLexIds()
          Returns a list of objects which are all lexical IDs in this mapping.
 List getConceptIds(Object lexId)
          Returns a list of objects which are the concept IDs corresponding to the given lexical Id.
 List getLexIds(Object conceptId)
          Returns a list of objects which are the lexical IDs corresponding to the given concept Id.
 Object getLexKBIdentifier()
          Accessor for the lexical Id property.
 Object getOntologyIdentifier()
          Accessor for the ontology Id property
 boolean isEmpty()
          True if the mapping is empty
 void remove(Object conceptId, Object lexId)
          Remove the given mapping
 void removeByConcept(Object conceptId)
          Remove all mappings to lexical items for the given concept Id
 void removeByLexId(Object lexId)
          Remove all mappings to concept items for the given lexical Id
 void setLexKBIdentifier(Object lexId)
          Set method for the lexical Id property.
 void setOntologyIdentifier(Object ontoId)
          Set method for the ontology Id property.
 
Methods inherited from interface gate.LanguageResource
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync
 
Methods inherited from interface gate.Resource
cleanup, getParameterValue, init, setParameterValue, setParameterValues
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.NameBearer
getName, setName
 

Method Detail

getConceptIds

List getConceptIds(Object lexId)
Returns a list of objects which are the concept IDs corresponding to the given lexical Id. A list is returned because there might be more than one such concept IDs. Null is returned if there is no corresponding concept ID.


getLexIds

List getLexIds(Object conceptId)
Returns a list of objects which are the lexical IDs corresponding to the given concept Id. A list is returned because there might be more than one such lexical IDs. Null is returned if there is no corresponding lexical ID.


getAllLexIds

Set getAllLexIds()
Returns a list of objects which are all lexical IDs in this mapping.


getAllConceptIds

Set getAllConceptIds()
Returns a list of objects which are all concept IDs in this mapping.


add

void add(Object conceptId,
         Object lexId)
Add a concept<->lexical ID pair


removeByConcept

void removeByConcept(Object conceptId)
Remove all mappings to lexical items for the given concept Id


removeByLexId

void removeByLexId(Object lexId)
Remove all mappings to concept items for the given lexical Id


remove

void remove(Object conceptId,
            Object lexId)
Remove the given mapping


isEmpty

boolean isEmpty()
True if the mapping is empty


clear

void clear()
Clear the mapping


getLexKBIdentifier

Object getLexKBIdentifier()
Accessor for the lexical Id property. It specifies which lexicon is this mapping for


setLexKBIdentifier

void setLexKBIdentifier(Object lexId)
Set method for the lexical Id property. It specifies which lexicon is this mapping for


getOntologyIdentifier

Object getOntologyIdentifier()
Accessor for the ontology Id property


setOntologyIdentifier

void setOntologyIdentifier(Object ontoId)
Set method for the ontology Id property. It specifies which ontology is this mapping for


GATE
Version 3.1-2270