Interface ModelChange

  • All Known Implementing Classes:
    ModelChangeImpl

    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.
    • Method Detail

      • getUserId

        String getUserId()
        Returns:
        String - user identifier
      • setUserId

        void setUserId​(String userId)
        Parameters:
        String - - user identifier
      • getSerializedModel

        InputStream getSerializedModel()
        Returns:
        InputStream - the serialized model (collection of RDF triples) representing a change to make
      • setSerializedModel

        void setSerializedModel​(InputStream serializedModel)
        Parameters:
        serializedModel - - the serialized model (collection of RDF triples) representing a change to make
      • 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

        String getGraphURI()
        Returns:
        String - the URI of the graph to which to apply the change
      • setGraphURI

        void setGraphURI​(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.