THE KNOWLEDGE REPOSITORY SERVICES API REFERENCE (version 2.0)

UPDATE SERVICE
METHOD NAME DESCRIPTION/PRECONDITIONS/EFFECTS METHOD SIGNATURE EXCEPTIONS  THROWN
UPDATE / UPDATE MULTIPLE Description:

The Update Service is responsible for executing RUL updates involving one or several namespaces or named graphs, by evaluating a RUL statement and executing it. Updating includes construction, modification and deletion of objects in the repository and returns a value (true or false) for successful (commit) or unsuccessful (abort) execution.

The Update method evaluates a single RUL statement and returns the result as described above. The updateMultiple method evaluates multiple RUL statements, in a sequential and independent manner; for each update request, a value (true or false) is returned, indicating whether that particular request succeeded or not. Note that if the updates are mutually dependent, the results of this operation are unspecified, as no guarantee on the order of update execution can be made.


Preconditions:
  • Format is either "TRIG" or "RDF_XML"
Effects:
In case of a syntactically wrong query, a result will be returned, in the specified format, containing an error message. 
public boolean update(
java.lang.String rul,
gr.forth.ics.rdfsuite.services.DbSettings dbSettings)

AND
public java.lang.Boolean[] updateMultiple(
java.lang.String[] ruls,
gr.forth.ics.rdfsuite.services.DbSettings dbSettings)
This service does not throw any exceptions.