The SWKM Services: The Import Service.
About the Import Service.
The Import Service (Figure 1) is responsible for loading the contents of a valid and well formed name or graph space (along with their version ID). This service is responsible for creating the necessary database constructs (tables, relationships, indices) that allow for efficient retrieval and manipulation by the RQL/RUL interpreter. The service can be invoked by providing as input either a file stream (in RDF/XML serialization or TRIG triple-based formats). The output of the service is a TRUE or FALSE statement accounting for successful or unsuccessful completion. The service uses the SWKMModel to intially load the schema into the main memory before committing it to the repository in order to be able to choose the best possible representation for its storage and perform a series of operations like validation. The schema is afterwards unloaded from the main memory unless it is kept by the service for caching reasons or explicitly kept by the application for easy and fast later usage. The up to date programming interface for this service may be found here.
Figure 1 : The Import Service
In the case of an application tries to import an already loaded name or graph space (identified by the same URI and version ID) the service returns a corresponding error message. The user or the application can accordingly change the namespace URI, invoke the versioning service to create a new version or decide to use the already loaded name or graph space.
Last modified: September 22, 2008