public interface SDocument extends SNode
SDocumentGraph which contains the 'real'
linguistic data. An object of type SDocumentGraph can be set and get
by calling setDocumentGraph(SDocumentGraph) and
getDocumentGraph(). A closer documentation of a document
graph, you can find in SDocumentGraph. A document must always be
contained in a corpus (object of type SCorpus). Such a containment
relation in Salt is represented by an object of type SCorpusRelation.
How to add a SDocument object to a SCorpusGraph object please
see the documentation of SCorpusGraph.
A document passes it's id to a document graph, when one is set.
| Modifier and Type | Method and Description |
|---|---|
SDocumentGraph |
createDocumentGraph()
Returns the document structure which belongs to this document.
|
SDocumentGraph |
getDocumentGraph()
Returns the document structure which belongs to this document.
|
org.eclipse.emf.common.util.URI |
getDocumentGraphLocation()
Returns the location of the contained
SDocumentGraph object, in
case it is persisted. |
SCorpusGraph |
getGraph()
Returns the container graph of this node.
|
void |
loadDocumentGraph()
Loads a
SDocumentGraph object and sets it to the contained
SDocumentGraph object. |
void |
loadDocumentGraph(org.eclipse.emf.common.util.URI documentGraphLocation)
Loads a
SDocumentGraph object and sets it to the contained
SDocumentGraph object. |
void |
saveDocumentGraph(org.eclipse.emf.common.util.URI documentGraphLocation)
Persists the
SDocumentGraph object contained by this object as
SaltXML file at the location given by the passed URI object. |
void |
setDocumentGraph(SDocumentGraph documentGraph)
Sets the document structure which belongs to this document.
|
void |
setDocumentGraphLocation(org.eclipse.emf.common.util.URI location)
Sets the location as
URI, of where the contained
SDocumentGraph object is persisted. |
getInRelations, getLayers, getOutRelationsaddLayer, removeLayer, setGraphgetId, getIdentifier, setId, setIdentifieraddLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsaddAnnotation, 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_SProcessingAnnotationgetName, setNamegetPathSDocumentGraph getDocumentGraph()
SDocumentGraph createDocumentGraph()
void setDocumentGraph(SDocumentGraph documentGraph)
documentGraph - document structure which belongs to this documentorg.eclipse.emf.common.util.URI getDocumentGraphLocation()
SDocumentGraph object, in
case it is persisted. The location is stored via a SFeature
object having the namespace and the
name .SDocumentGraph object as
URIvoid setDocumentGraphLocation(org.eclipse.emf.common.util.URI location)
URI, of where the contained
SDocumentGraph object is persisted. The location is stored as
SFeature having the namespace
and the name .newSDocumentGraphLocation - location as URIvoid saveDocumentGraph(org.eclipse.emf.common.util.URI documentGraphLocation)
SDocumentGraph object contained by this object as
SaltXML file at the location given by the passed URI object. The
URI is stored as SFeature by calling
#setSDocumentGraphLocation(URI). The relation between
SDocument and given SDocumentGraph will be removed.documentGraphLocation - location of where to persist object as
file (must have the
ending ) in URI
syntaxvoid loadDocumentGraph()
SDocumentGraph object and sets it to the contained
SDocumentGraph object. The location of where to find the SaltXML
containing the SDocumentGraph object must be given as
SFeature. It will be read via calling
#getSDocumentGraphLocation(). After loading, the feature
accessible via #getSDocumentGraphLocation() will be removed.void loadDocumentGraph(org.eclipse.emf.common.util.URI documentGraphLocation)
SDocumentGraph object and sets it to the contained
SDocumentGraph object. The location of where to find the SaltXML
containing the SDocumentGraph object is given by the passed
URI object. After loading, the feature accessible via
#getSDocumentGraphLocation() if exist will be removed.documentGraphLocation - location of SaltXML to load SDocumentGraph object.SCorpusGraph getGraph()
Copyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.