THE KNOWLEDGE REPOSITORY SERVICES API REFERENCE (version 2.0)

IMPORTER SERVICE
METHOD NAME DESCRIPTION/PRECONDITIONS/EFFECTS METHOD SIGNATURE EXCEPTIONS  THROWN
STORE Description:
The store method is responsible for storing the contents of a (set of) valid and well-formed namespace(s) or named graph(s) currently in memory to the underlying persistent storage medium. It is also responsible for updating the necessary database constructs (tables, relationships, indices) that allow for efficient retrieval and manipulation by the RQL/RUL interpreter.
Preconditions:
  • The array of URIs has exactly the same number of elements as the array of data.
  • Format is either "TRIG" or "RDF_XML".
  • If an RDF space declares its own URI (in a syntax-specific way), it must be the same as the respective entry in the array of URIs.
Effects:
After the successful execution of the operation, the underlying storage will contain all supplied RDF spaces, identified by their respective URIs .
void store(
java.lang.String[] uris,
java.lang.String[] data,
java.lang.String formatDesc,
gr.forth.ics.rdfsuite.services.DbSettings dbSettings)

The following exceptions are thrown by the service:

STORE WITH DEPENDENCIES Description:
I Imports in the underlying storage the specified namespaces and/or named graphs, along with their dependencies. The process is identical to the one described in above, with two differences: first, this method also stores the namespace(s) and/or named graph(s) that the specified namespace(s) and/or named graph(s) depend on; second, if one of the requested namespace(s) or named graph(s), or the ones they depend on, is not found, the method searches for it across the network in the physical location that the URI of the namespace or named graph under question indicates (i.e., it uses eager resolution).
Preconditions:
  • The array of URIs has exactly the same number of elements as the array of data.
  • Format is either "TRIG" or "RDF_XML".
  • If an RDF space declares its own URI (in a syntax-specific way), it must be the same as the respective entry in the array of URIs.
Effects:
After the successful execution of the operation, the underlying storage will contain all supplied RDF spaces, identified by their respective URIs (see above), and all their dependencies, recursively.
public void storeWithDependencies(
java.lang.String[] uris,
java.lang.String[] data,
java.lang.String formatDesc,
gr.forth.ics.rdfsuite.services.DbSettings dbSettings)