public class Change extends Object
ComodiXmlEntity
, see
appliesTo(ComodiXmlEntity)
ComodiTarget
, see affects(ComodiTarget)
ComodiIntention
, see
hasIntention(ComodiIntention)
ComodiReason
, see
hasReason(ComodiReason)
Change
, see
wasTriggeredBy(String)
Constructor and Description |
---|
Change(String subjectId,
org.apache.jena.rdf.model.Model model,
URI baseUri,
String type)
Instantiates a new change.
|
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.
|
org.apache.jena.rdf.model.Resource |
getChangeAsResource()
Gets the change as an RDF resource.
|
List<org.apache.jena.rdf.model.Statement> |
getStatements()
Gets the RDF statements about 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(String subjectId, org.apache.jena.rdf.model.Model model, URI baseUri, String type)
ChangeFactory
to
create Insertions, Deletions, Moves, Updates, etc.subjectId
- the id of the subject(-node) encoding for the changemodel
- the RDF model
the base URI of the elements we're talking aboutbaseUri
- the base URI of the elements we're talking abouttype
- the change type (insertion, deletion, etc)public org.apache.jena.rdf.model.Resource getChangeAsResource()
public 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 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 © 2017 SEMS project @ University of Rostock. All rights reserved.