|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
nesstar.api.common.Term
public class Term
A (preferred) term, a word or a phrase used in a specific language to express a certain concept.
Code automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static String |
CLASS_ID
|
| Fields inherited from class nesstar.rdf.RDFObject |
|---|
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP |
| Constructor Summary | |
|---|---|
Term(RDFDB db,
URL id)
Create an object with the indicated id in the indicated db |
|
| Method Summary | |
|---|---|
void |
clear()
Clear all properties of this object |
RDFRef |
get_broaderTerms()
|
RDFRef |
get_concept()
|
String |
get_language()
|
RDFRef |
get_narrowerTerms()
|
RDFRef |
get_relatedTerms()
|
String |
get_synonyms()
|
RDFRef |
get_topTerms()
|
String |
get_translationNote()
|
static Vector |
getAllInstances()
|
static Vector |
getAllInstances(RDFDB db)
|
List |
getBroaderTerms()
|
String |
getComment()
The definition/scope of the term. |
Concept |
getConcept()
|
static FeatureDescriptor |
getDescriptor(String featureName)
get the descriptor for a feature of the class, either method or attribute Note: the methods' feature are still not implemented |
static Collection |
getGetterMethods()
|
static Term |
getInstance(RDFDB db,
URL id)
If an object of type Term with the indicated id exists in the db returns it otherwise create a new object in the db and returns it |
static Term |
getInstance(String rdf)
|
String |
getLanguage()
The ISO 639 2-letter code of the language in which this term is expressed, e.g.: "en". |
List |
getNarrowerTerms()
|
static Collection |
getPartsDescriptor()
|
List |
getRelatedTerms()
|
String[] |
getSynonyms()
The synonyms (in the same language) of the term, e.g.: CRIMINALS has synonyms OFFENDERS and DELINQUENTS. |
String |
getSynonymsAsString()
|
List |
getTopTerms()
|
String |
getTranslationNote()
A translation note for the ESSLT thesaurus. |
void |
initialised()
Notify that the object has been created and its properties setup for the first time. |
static void |
listenForNewObj(NewObjListener listener)
Register to be notified when new objects are added. |
static Term |
newInstance(RDFDB db)
Create a new object of this type with a locally unique id and returns it |
static Term |
retrieve(URL id)
If an object of type Term with the indicated id has already being retrieved from the network returns it otherwise retrieve it together with its class information (methods, properties, etc.) |
void |
set_broaderTerms(RDFRef broaderTerms)
|
void |
set_concept(RDFRef concept)
|
void |
set_language(String language)
|
void |
set_narrowerTerms(RDFRef narrowerTerms)
|
void |
set_relatedTerms(RDFRef relatedTerms)
|
void |
set_synonyms(String synonyms)
|
void |
set_topTerms(RDFRef topTerms)
|
void |
set_translationNote(String translationNote)
|
void |
setBroaderTerms(List broaderTerms)
|
void |
setConcept(Concept concept)
|
void |
setLanguage(String language)
The ISO 639 2-letter code of the language in which this term is expressed, e.g.: "en". |
void |
setNarrowerTerms(List narrowerTerms)
|
void |
setRelatedTerms(List relatedTerms)
|
void |
setSynonyms(String[] synonyms)
The synonyms (in the same language) of the term, e.g.: CRIMINALS has synonyms OFFENDERS and DELINQUENTS. |
void |
setTopTerms(List topTerms)
|
void |
setTranslationNote(String translationNote)
A translation note for the ESSLT thesaurus. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String CLASS_ID
| Constructor Detail |
|---|
public Term(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be createdid - the id of the object to create
Exception| Method Detail |
|---|
public void set_broaderTerms(RDFRef broaderTerms)
broaderTerms -
public void setBroaderTerms(List broaderTerms)
throws Exception
broaderTerms -
Exceptionpublic void set_narrowerTerms(RDFRef narrowerTerms)
narrowerTerms -
public void setNarrowerTerms(List narrowerTerms)
throws Exception
narrowerTerms -
Exceptionpublic void set_relatedTerms(RDFRef relatedTerms)
relatedTerms -
public void setRelatedTerms(List relatedTerms)
throws Exception
relatedTerms -
Exceptionpublic void set_topTerms(RDFRef topTerms)
topTerms -
public void setTopTerms(List topTerms)
throws Exception
topTerms -
Exceptionpublic void set_concept(RDFRef concept)
concept -
public void setConcept(Concept concept)
throws Exception
concept -
Exceptionpublic void setLanguage(String language)
The ISO 639 2-letter code of the language in which this term is expressed, e.g.: "en".
language - public void set_language(String language)
language - public void setSynonyms(String[] synonyms)
The synonyms (in the same language) of the term, e.g.: CRIMINALS has synonyms OFFENDERS and DELINQUENTS.
synonyms - public void set_synonyms(String synonyms)
synonyms - public void setTranslationNote(String translationNote)
A translation note for the ESSLT thesaurus.
translationNote - public void set_translationNote(String translationNote)
translationNote -
public static Vector getAllInstances(RDFDB db)
throws Exception
db - the db where the instances are to be found
Exception
public static Vector getAllInstances()
throws Exception
Exception
public static Term getInstance(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be found or createdid - the id of the object to retrieve or create
Exception
public static Term getInstance(String rdf)
throws Exception
rdf - some rdf code that contains a description of an object of this kind
Exception
public RDFRef get_broaderTerms()
throws Exception
Exception
public List getBroaderTerms()
throws Exception
The broader (more generic) terms.
Exception
public RDFRef get_narrowerTerms()
throws Exception
Exception
public List getNarrowerTerms()
throws Exception
The narrower (more specific) terms.
Exception
public RDFRef get_relatedTerms()
throws Exception
Exception
public List getRelatedTerms()
throws Exception
The related terms, e.g. INCOME is related to WEALTH. The relation is reciprocal, if X is related to Y than Y is related to X.
Exception
public RDFRef get_topTerms()
throws Exception
Exception
public List getTopTerms()
throws Exception
Exception
public RDFRef get_concept()
throws Exception
Exceptionpublic Concept getConcept()
public String getLanguage()
The ISO 639 2-letter code of the language in which this term is expressed, e.g.: "en".
public String get_language()
throws Exception
Exceptionpublic String[] getSynonyms()
The synonyms (in the same language) of the term, e.g.: CRIMINALS has synonyms OFFENDERS and DELINQUENTS.
public String getSynonymsAsString()
public String get_synonyms()
throws Exception
Exceptionpublic String getComment()
The definition/scope of the term. Used to specify the exact meaning of the term. For ELSST it corresponds to the "ambiguity" scope note.
getComment in class RDFObjectpublic String getTranslationNote()
A translation note for the ESSLT thesaurus.
public String get_translationNote()
throws Exception
Exceptionpublic static FeatureDescriptor getDescriptor(String featureName)
featureName - public static Collection getPartsDescriptor()
public static Collection getGetterMethods()
public static Term newInstance(RDFDB db)
throws Exception
db - the db where the object is to be found or created
Exceptionpublic static void listenForNewObj(NewObjListener listener)
listener - the listenerpublic void initialised()
initialised in class RDFObject
public static Term retrieve(URL id)
throws Exception
id - the id of the object to retrieve
Exceptionpublic void clear()
RDFObject
clear in class RDFObject
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||