public interface ChangeSet
| Modifier and Type | Method and Description |
|---|---|
void |
addAddition(InputStream model,
RDFService.ModelSerializationFormat serializationFormat,
String graphURI)
Adds one model change representing an addition to the list of model changes
|
void |
addPostChangeEvent(Object event)
Adds an event that will be be passed to any change listeners after all of
the change set additions and retractions are performed.
|
void |
addPreChangeEvent(Object event)
Adds an event that will be be passed to any change listeners in advance of
the change set additions and retractions being performed.
|
void |
addRemoval(InputStream model,
RDFService.ModelSerializationFormat serializationFormat,
String graphURI)
Adds one model change representing a deletion to the list of model changes
|
List<ModelChange> |
getModelChanges() |
List<Object> |
getPostChangeEvents()
Returns a list of events to pass to any change listeners after
the change set additions and retractions are performed.
|
List<Object> |
getPreChangeEvents()
Returns a list of events to pass to any change listeners in
advance of the change set additions and retractions being performed.
|
String |
getPreconditionQuery() |
RDFService.SPARQLQueryType |
getPreconditionQueryType() |
ModelChange |
manufactureModelChange()
Creates an instance of the ModelChange class
|
ModelChange |
manufactureModelChange(InputStream serializedModel,
RDFService.ModelSerializationFormat serializationFormat,
ModelChange.Operation operation,
String graphURI)
Creates an instance of the ModelChange class
|
void |
setPreconditionQuery(String preconditionQuery) |
void |
setPreconditionQueryType(RDFService.SPARQLQueryType queryType) |
String getPreconditionQuery()
void setPreconditionQuery(String preconditionQuery)
preconditionQuery - - a SPARQL queryRDFService.SPARQLQueryType getPreconditionQueryType()
void setPreconditionQueryType(RDFService.SPARQLQueryType queryType)
queryType - - the precondition query typeList<ModelChange> getModelChanges()
void addAddition(InputStream model, RDFService.ModelSerializationFormat serializationFormat, String graphURI)
model - - a serialized RDF model (collection of triples)serializationFormat - - format of the serialized RDF modelgraphURI - - URI of the graph to which the RDF model should be addedvoid addRemoval(InputStream model, RDFService.ModelSerializationFormat serializationFormat, String graphURI)
model - - a serialized RDF model (collection of triples)serializationFormat - - format of the serialized RDF modelgraphURI - - URI of the graph from which the RDF model should be removedModelChange manufactureModelChange()
ModelChange manufactureModelChange(InputStream serializedModel, RDFService.ModelSerializationFormat serializationFormat, ModelChange.Operation operation, String graphURI)
serializedModel - - a serialized RDF model (collection of triples)serializationFormat - - format of the serialized RDF modeloperation - - the type of operation to be performed with the serialized RDF modelgraphURI - - URI of the graph on which to apply the model change operationvoid addPreChangeEvent(Object event)
event - - event to notify listeners of in advance of making
changes to the triple store.void addPostChangeEvent(Object event)
event - - the event to notify listeners of after the changes are
performed.List<Object> getPreChangeEvents()
Copyright © 2016. All rights reserved.