Class ChangeSetImpl

    • Constructor Detail

      • ChangeSetImpl

        public ChangeSetImpl()
    • Method Detail

      • setPreconditionQuery

        public void setPreconditionQuery​(String preconditionQuery)
        Specified by:
        setPreconditionQuery in interface ChangeSet
        Parameters:
        preconditionQuery - - a SPARQL query
      • addAddition

        @Deprecated
        public void addAddition​(InputStream model,
                                RDFService.ModelSerializationFormat format,
                                String graphURI)
        Deprecated.
        Description copied from interface: ChangeSet
        Adds one model change representing an addition to the list of model changes
        Specified by:
        addAddition in interface ChangeSet
        Parameters:
        model - - a serialized RDF model (collection of triples)
        format - - format of the serialized RDF model
        graphURI - - URI of the graph to which the RDF model should be added
      • addAddition

        public void addAddition​(InputStream model,
                                RDFService.ModelSerializationFormat format,
                                String graphURI,
                                String userId)
        Description copied from interface: ChangeSet
        Adds one model change representing an addition to the list of model changes
        Specified by:
        addAddition in interface ChangeSet
        Parameters:
        model - - a serialized RDF model (collection of triples)
        format - - format of the serialized RDF model
        graphURI - - URI of the graph to which the RDF model should be added
        userId - String - identifier of user requested model changes
      • addRemoval

        @Deprecated
        public void addRemoval​(InputStream model,
                               RDFService.ModelSerializationFormat format,
                               String graphURI)
        Deprecated.
        Description copied from interface: ChangeSet
        Adds one model change representing a deletion to the list of model changes
        Specified by:
        addRemoval in interface ChangeSet
        Parameters:
        model - - a serialized RDF model (collection of triples)
        format - - format of the serialized RDF model
        graphURI - - URI of the graph from which the RDF model should be removed
      • addRemoval

        public void addRemoval​(InputStream model,
                               RDFService.ModelSerializationFormat format,
                               String graphURI,
                               String userId)
        Description copied from interface: ChangeSet
        Adds one model change representing a deletion to the list of model changes
        Specified by:
        addRemoval in interface ChangeSet
        Parameters:
        model - - a serialized RDF model (collection of triples)
        format - - format of the serialized RDF model
        graphURI - - URI of the graph from which the RDF model should be removed
        userId - String - identifier of user requested model changes
      • manufactureModelChange

        public ModelChange manufactureModelChange()
        Description copied from interface: ChangeSet
        Creates an instance of the ModelChange class
        Specified by:
        manufactureModelChange in interface ChangeSet
        Returns:
        ModelChange - an empty instance of the ModelChange class
      • manufactureModelChange

        @Deprecated
        public ModelChange manufactureModelChange​(InputStream serializedModel,
                                                  RDFService.ModelSerializationFormat serializationFormat,
                                                  ModelChange.Operation operation,
                                                  String graphURI)
        Deprecated.
        Description copied from interface: ChangeSet
        Creates an instance of the ModelChange class
        Specified by:
        manufactureModelChange in interface ChangeSet
        Parameters:
        serializedModel - - a serialized RDF model (collection of triples)
        serializationFormat - - format of the serialized RDF model
        operation - - the type of operation to be performed with the serialized RDF model
        graphURI - - URI of the graph on which to apply the model change operation
        Returns:
        ModelChange - a ModelChange instance initialized with the input model, model format, operation and graphURI
      • manufactureModelChange

        public ModelChange manufactureModelChange​(InputStream serializedModel,
                                                  RDFService.ModelSerializationFormat serializationFormat,
                                                  ModelChange.Operation operation,
                                                  String graphURI,
                                                  String userId)
        Description copied from interface: ChangeSet
        Creates an instance of the ModelChange class
        Specified by:
        manufactureModelChange in interface ChangeSet
        Parameters:
        serializedModel - - a serialized RDF model (collection of triples)
        serializationFormat - - format of the serialized RDF model
        operation - - the type of operation to be performed with the serialized RDF model
        graphURI - - URI of the graph on which to apply the model change operation
        userId - - URI of the user requested model changes
        Returns:
        ModelChange - a ModelChange instance initialized with the input model, model format, operation and graphURI
      • addPreChangeEvent

        public void addPreChangeEvent​(Object o)
        Description copied from interface: ChangeSet
        Adds an event that will be be passed to any change listeners in advance of the change set additions and retractions being performed. The event will only be fired if the precondition (if any) is met.
        Specified by:
        addPreChangeEvent in interface ChangeSet
        Parameters:
        o - - event to notify listeners of in advance of making changes to the triple store.
      • addPostChangeEvent

        public void addPostChangeEvent​(Object o)
        Description copied from interface: ChangeSet
        Adds an event that will be be passed to any change listeners after all of the change set additions and retractions are performed.
        Specified by:
        addPostChangeEvent in interface ChangeSet
        Parameters:
        o - - the event to notify listeners of after the changes are performed.
      • getPreChangeEvents

        public List<Object> getPreChangeEvents()
        Description copied from interface: ChangeSet
        Returns a list of events to pass to any change listeners in advance of the change set additions and retractions being performed.
        Specified by:
        getPreChangeEvents in interface ChangeSet
      • getPostChangeEvents

        public List<Object> getPostChangeEvents()
        Description copied from interface: ChangeSet
        Returns a list of events to pass to any change listeners after the change set additions and retractions are performed.
        Specified by:
        getPostChangeEvents in interface ChangeSet