This commit is contained in:
parent
e21bd9e170
commit
26c7e020e2
2 changed files with 88 additions and 8 deletions
|
@ -14,20 +14,60 @@ public interface ModelChange {
|
||||||
public enum Operation {
|
public enum Operation {
|
||||||
ADD, REMOVE
|
ADD, REMOVE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the serialized model
|
||||||
|
*
|
||||||
|
* @return InputStream - a model (collection of RDF triples), serialized
|
||||||
|
*/
|
||||||
public InputStream getSerializedModel();
|
public InputStream getSerializedModel();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the serialized model
|
||||||
|
*
|
||||||
|
* @param InputStream - a model (collection of RDF triples), serialized
|
||||||
|
*/
|
||||||
public void setSerializedModel(InputStream serializedModel);
|
public void setSerializedModel(InputStream serializedModel);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the serialization format of the model
|
||||||
|
*
|
||||||
|
* @return RDFService.ModelSerializationFormat - the serialization format of the model
|
||||||
|
*/
|
||||||
public RDFService.ModelSerializationFormat getSerializationFormat();
|
public RDFService.ModelSerializationFormat getSerializationFormat();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the serialization format of the model
|
||||||
|
*
|
||||||
|
* @param RDFService.ModelSerializationFormat - the serialization format of the model
|
||||||
|
*/
|
||||||
public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat);
|
public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat);
|
||||||
|
|
||||||
public Operation getOperation();
|
/**
|
||||||
|
* Getter for the operation type
|
||||||
public void setOperation(Operation operation);
|
*
|
||||||
|
* @return ModelChange.Operation - the operation type
|
||||||
|
*/
|
||||||
|
public ModelChange.Operation getOperation();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the operation type
|
||||||
|
*
|
||||||
|
* @param ModelChange.Operation - the operation type
|
||||||
|
*/
|
||||||
|
public void setOperation(ModelChange.Operation operation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the URI of the graph to which to apply the change
|
||||||
|
*
|
||||||
|
* @return String - the graph URI
|
||||||
|
*/
|
||||||
public String getGraphURI();
|
public String getGraphURI();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the URI of the graph to which to apply the change
|
||||||
|
*
|
||||||
|
* @param String - the graph URI
|
||||||
|
*/
|
||||||
public void setGraphURI(String graphURI);
|
public void setGraphURI(String graphURI);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,41 +31,81 @@ public class ModelChangeImpl implements ModelChange {
|
||||||
this.graphURI = graphURI;
|
this.graphURI = graphURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the serialized model
|
||||||
|
*
|
||||||
|
* @return InputStream - a model (collection of RDF triples), serialized
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public InputStream getSerializedModel() {
|
public InputStream getSerializedModel() {
|
||||||
return serializedModel;
|
return serializedModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the serialized model
|
||||||
|
*
|
||||||
|
* @param InputStream - a model (collection of RDF triples), serialized
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setSerializedModel(InputStream serializedModel) {
|
public void setSerializedModel(InputStream serializedModel) {
|
||||||
this.serializedModel = serializedModel;
|
this.serializedModel = serializedModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the serialization format of the model
|
||||||
|
*
|
||||||
|
* @return RDFService.ModelSerializationFormat - the serialization format of the model
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public RDFService.ModelSerializationFormat getSerializationFormat() {
|
public RDFService.ModelSerializationFormat getSerializationFormat() {
|
||||||
return serializationFormat;
|
return serializationFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the serialization format of the model
|
||||||
|
*
|
||||||
|
* @param RDFService.ModelSerializationFormat - the serialization format of the model
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat) {
|
public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat) {
|
||||||
this.serializationFormat = serializationFormat;
|
this.serializationFormat = serializationFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the operation type
|
||||||
|
*
|
||||||
|
* @return ModelChange.Operation - the operation type
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Operation getOperation() {
|
public Operation getOperation() {
|
||||||
return operation;
|
return operation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the operation type
|
||||||
|
*
|
||||||
|
* @param ModelChange.Operation - the operation type
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setOperation(Operation operation) {
|
public void setOperation(Operation operation) {
|
||||||
this.operation = operation;
|
this.operation = operation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the URI of the graph to which to apply the change
|
||||||
|
*
|
||||||
|
* @return String - the graph URI
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String getGraphURI() {
|
public String getGraphURI() {
|
||||||
return graphURI;
|
return graphURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for the URI of the graph to which to apply the change
|
||||||
|
*
|
||||||
|
* @param String - the graph URI
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setGraphURI(String graphURI) {
|
public void setGraphURI(String graphURI) {
|
||||||
this.graphURI = graphURI;
|
this.graphURI = graphURI;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue