edu.cornell.mannlib.vitro.webapp.rdfservice
Interface ModelChange


public interface ModelChange

A ModelChange is one component of a ChangeSet. Represents a model (collection of RDF triples), the URI of a graph, and an indication of whether to add or remove the model from the graph.


Nested Class Summary
static class ModelChange.Operation
           
 
Method Summary
 java.lang.String getGraphURI()
           
 ModelChange.Operation getOperation()
           
 RDFService.ModelSerializationFormat getSerializationFormat()
           
 java.io.InputStream getSerializedModel()
           
 void setGraphURI(java.lang.String graphURI)
           
 void setOperation(ModelChange.Operation operation)
           
 void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat)
           
 void setSerializedModel(java.io.InputStream serializedModel)
           
 

Method Detail

getSerializedModel

java.io.InputStream getSerializedModel()
Returns:
InputStream - the serialized model (collection of RDF triples) representing a change to make

setSerializedModel

void setSerializedModel(java.io.InputStream serializedModel)
Parameters:
serializedModel - - the serialized model (collection of RDF triples) representing a change to make

getSerializationFormat

RDFService.ModelSerializationFormat getSerializationFormat()
Returns:
RDFService.ModelSerializationFormat - the serialization format of the model

setSerializationFormat

void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat)
Parameters:
serializationFormat - - the serialization format of the model

getOperation

ModelChange.Operation getOperation()
Returns:
ModelChange.Operation - the operation to be performed

setOperation

void setOperation(ModelChange.Operation operation)
Parameters:
operation - - the operation to be performed

getGraphURI

java.lang.String getGraphURI()
Returns:
String - the URI of the graph to which to apply the change

setGraphURI

void setGraphURI(java.lang.String graphURI)
Parameters:
graphURI - - the URI of the graph to which to apply the change If the graphURI is null the change applies to the default write graph. If this method is not used to set the write graph the default write graph will be used.