public interface SAbstractAnnotation extends Label, SAnnotationContainer
An annotation in Salt is an attribute-value-pair and can belong to either a node, an edge, a graph, a layer or another label. An attribute-value-pair is a triple which consists of a namespace, a name and a value (namespace:name=value). The combination of name and namespace is used to identify a label and therefore must be unique. The namespace is an optional value, to distinguish in case of there are two annotations having the same name. For instance a node etc. can have a label stts:pos=VVFIN as well as the label pos:VV to annotate it with two part-of-speech annotations from different tagsets.
SFeature objects are used to store structural information of Salt, which are necessary to map a linguistic model to a graph. For instanceSFeature
added to the relation between a token and a primary text contain the start
and end position of the token in the primary text. In the very most cases a
user of the Salt api will never need to use a SFeature object.
For further information on labels,LabelNS_SEPERATOR| Modifier and Type | Method and Description |
|---|---|
Boolean |
getValue_SBOOLEAN()
Returns the sValue attribute of this object as
Boolean
if possible. |
Double |
getValue_SFLOAT()
Returns the sValue attribute of this object as
Float if
possible. |
Long |
getValue_SNUMERIC()
Returns the sValue attribute of this object as
Long if
possible. |
Object |
getValue_SOBJECT()
Returns the the sValue attribute of this object as the original
object.
|
String |
getValue_STEXT()
Returns the sValue attribute of this object as String
representation.
|
org.eclipse.emf.common.util.URI |
getValue_SURI()
Returns the sValue attribute of this object as
URI if
possible. |
SDATATYPE |
getValueType()
Returns the value of the 'SValue Type' attribute.
|
void |
setValueType(SDATATYPE value) |
getContainer, getName, getNamespace, getQName, getValue, setContainer, setName, setNamespace, setQName, setValueaddAnnotation, addFeature, addMetaAnnotation, addProcessingAnnotation, createAnnotation, createAnnotations, createFeature, createFeatures, createMetaAnnotation, createMetaAnnotations, createProcessingAnnotation, createProcessingAnnotations, getAnnotation, getAnnotation, getAnnotations, getFeature, getFeature, getFeatures, getMetaAnnotation, getMetaAnnotations, getProcessingAnnotation, getProcessingAnnotations, iterator_SAnnotation, iterator_SFeature, iterator_SMetaAnnotation, iterator_SProcessingAnnotationaddLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsSDATATYPE getValueType()
de.hu_berlin.german.korpling.saltnpepper.salt.saltCore.SDATATYPE.
If no SDATATYPE was set, a value will be computed. Here is the
list of how java objects will be mapped to a SDATATYPE value.
SDATATYPE.SOBJECTSDATATYPE.STEXTSDATATYPE.SBOOLEANSDATATYPE.SNUMERICSDATATYPE.SNUMERICSDATATYPE.SFLOATSDATATYPE.SFLOATSDATATYPE.SURISDATATYPE.SOBJECTvoid setValueType(SDATATYPE value)
String getValue_STEXT()
String it will
be returned, else the #toString() method will be called. If no
value is given, null will be returned.String representation of the sValue attribute.Boolean getValue_SBOOLEAN()
Boolean
if possible. If the value is not of type Boolean or is empty,
null will be returned.Boolean representation of the sValue attribute.Long getValue_SNUMERIC()
Long if
possible. If the value is not of type Long or is empty, null will
be returned.Long representation of the sValue attribute.Double getValue_SFLOAT()
Float if
possible. If the value is not of type Float or is empty, null
will be returned.Float representation of the sValue attribute.org.eclipse.emf.common.util.URI getValue_SURI()
URI if
possible. If the value is not of type URI or is empty, null will
be returned.URI representation of the sValue attribute.Copyright © 2009–2020 Humboldt-Universität zu Berlin, INRIA. All rights reserved.