public class Change extends Object
ComodiXmlEntity
, see
appliesTo(ComodiXmlEntity)
ComodiTarget
, see affects(ComodiTarget)
ComodiIntention
, see
hasIntention(ComodiIntention)
ComodiReason
, see
hasReason(ComodiReason)
ComodiChangeType
, see
hasChangeType(ComodiChangeType)
Change
, see
wasTriggeredBy(String)
Constructor and Description |
---|
Change(de.unirostock.sems.xmlutils.ds.DocumentNode node,
org.apache.jena.rdf.model.Model model,
URI baseUri)
The Constructor specifying the node in the delta and the Apache/Jena RDF
model.
|
Change(org.jdom2.Element node,
org.apache.jena.rdf.model.Model model,
URI baseUri)
The Constructor specifying the node in the delta and the Apache/Jena RDF
model.
|
Modifier and Type | Method and Description |
---|---|
Change |
addAnnotation(org.apache.jena.rdf.model.Property predicate,
org.apache.jena.rdf.model.RDFNode object)
Adds another custom annotation describing this change.
|
Change |
affects(ComodiTarget target)
Adds information about the target that is affected by this change.
|
Change |
appliesTo(ComodiXmlEntity entity)
Adds information about the XML entity that this change was applied to.
|
List<org.apache.jena.rdf.model.Statement> |
getStatements()
Gets the RDF statements about this change.
|
Change |
hasChangeType(ComodiChangeType changeType)
Adds information about the type of this change.
|
Change |
hasIntention(ComodiIntention intention)
Adds information about the intention of this change.
|
Change |
hasReason(ComodiReason reason)
Adds information about the reason of this change.
|
Change |
wasTriggeredBy(String nodeId)
Links to a change that triggered this change.
|
public Change(org.jdom2.Element node, org.apache.jena.rdf.model.Model model, URI baseUri)
node
is supposed to have an id
attribute.node
- the node encoding for the differencesmodel
- the RDF modelbaseUri
- the base URI of the elements we're talking aboutpublic Change(de.unirostock.sems.xmlutils.ds.DocumentNode node, org.apache.jena.rdf.model.Model model, URI baseUri)
node
is supposed to have an id-attribute.node
- the node encoding for the differencesmodel
- the RDF modelbaseUri
- the base URI of the elements we're talking aboutpublic List<org.apache.jena.rdf.model.Statement> getStatements()
public Change appliesTo(ComodiXmlEntity entity)
entity
- the type of XML entitypublic Change hasIntention(ComodiIntention intention)
intention
- the intentionpublic Change hasReason(ComodiReason reason)
reason
- the reasonpublic Change hasChangeType(ComodiChangeType changeType)
changeType
- the change typepublic Change affects(ComodiTarget target)
target
- the targetpublic Change wasTriggeredBy(String nodeId)
nodeId
- the id of the node that triggered this changepublic Change addAnnotation(org.apache.jena.rdf.model.Property predicate, org.apache.jena.rdf.model.RDFNode object)
predicate
- the predicateobject
- the objectCopyright © 2015 SEMS project @ University of Rostock. All rights reserved.