| REGISTRY SERVICE | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| METHOD NAME |
DESCRIPTION/PRECONDITIONS/EFFECTS | METHOD SIGNATURE | EXCEPTIONS THROWN | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| INSERTSCHEMA |
Description:
Inserts into the registry an instance of the class Schema (or subClasses) and one or more instances of class Version. Preconditions: The instances must be valid instances of the respective classes and be described by using the RDF/XML or TRIG format. The URI of the instance of class Schema given as parameter should be the same as the URI used in the file. The same conditions apply for the URIs of the instances of class Version. Moreover, both the URI of the Schema and the Version instances should have the format of a full URI. Finally, at least one Version instance must be provided. Effects: After the successful execution of the operation, the registry will contain the information of the instances of class Schema and Version identified by their respective URIs. |
public void insertSchema( java.lang.String schemaURI, java.lang.String[] versionID, java.lang.String file, gr.forth.ics.rdfsuite.services.Format format) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| INSERT SCHEMA URI |
Description:
Inserts into the registry an instance of the class Schema(or subClasses) and one or more instances of class Version with no further information besides their provided URIs. Preconditions: The format of the URI of the Schema instance should be that of a full URI. At least one versionID is provided. Effects: After the successful execution of the operation, the registry will contain the Schema and Version instance URIs. |
public void insertSchemaURI( gr.forth.ics.rdfsuite.services.Registry.SchemaSubClasses className, java.lang.String instanceURI, java.lang.String[] versionID) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| INSERT PERSON / ORGANIZATION |
Description:
Inserts into the registry an instance of class Person or class Organization by correlating it with the property given as parameter to a specific instance of class Schema, Version, Language or Encoding whose URI is given as parameter. Preconditions: The instances must be valid instances of the respective classes and be described using the RDF/XML or TRIG format. The registry should not already contain an instance with the same URI as the one that is going to be inserted. On the other hand, the instance denoted by classURI should have already been stored. The Person/Organization instance URI should have the format of a full URI. Effects: After the successful execution of the operation, the registry will contain the information of the instances of class Person or Organization identified by their respective URIs. |
public void insertPerson( java.lang.String classURI, java.lang.String[] personURI, java.lang.String property, java.lang.String file, gr.forth.ics.rdfsuite.services.Formatt format) AND public void insertOrganization( java.lang.String classURI, java.lang.String[] organizationURI, java.lang.String property, java.lang.String file, gr.forth.ics.rdfsuite.services.Format format) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| INSERT PERSON URI/ORGANIZATION URI |
Description:
Inserts into the registry an instance of classes Person or Organization with no further information besides their provided URIs. The inserted instance is correlated with the property given as parameter to a specific instance of class Schema, Version, Language or Encoding whose URI is given as parameter. Preconditions: The format of the URI of the Person or Organization instance should be that of a full URI. The registry should not already contain an instance with the same URI as the one that is going to be inserted. Effects: After the successful execution of the operation, the registry will contain the Person or Organization instance. |
public void insertPersonURI( java.lang.String classURI, java.lang.String[] personURI, java.lang.String property) AND public void insertOrganizationURI( java.lang.String classURI, java.lang.String[] organizationURI, java.lang.String property) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| INSERT INSTANCE |
Description:
Inserts into the registry a new instance of class className by correlating it to a specific instance (correlateToUri) whose URI is given as parameter. Preconditions: The instances must be valid instances of the respective classes and be described using the RDF/XML or TRIG format. Moreover, the instance URIs should have the format of a full URI and be the same as the ones used in the file. The instance denoted by correlateToUri should have already been stored. The parameter className can have one of the following values: VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. The registry should not already contain an instance with the same URI as the one that is going to be inserted. Effects: After the successful execution of the operation, the registry will contain the information of the instances of class className identified by their respective URIs. |
public void insertInstance( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String correlateToUri, java.lang.String[] instance, java.lang.String file, gr.forth.ics.rdfsuite.services.Format format) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| INSERT INSTANCE URI |
Description:
Inserts into the registry a new instance of class className with no further information besides its provided URI. The inserted instance is correlated to a specific instance (correlateToUri) whose URI is given as parameter. Preconditions: The instance denoted by correlateToUri should have already been stored. The parameter className can have one of the following values: VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. The registry should not already contain an instance with the same URI as the one that is going to be inserted. Effects: After the successful execution of the operation, the registry will contain the URI of the instance of class className. |
public void insertInstanceURI( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String correlateToUri, java.lang.String[] instance) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| EDIT INSTANCE URI |
Description:
Edits the URI of an already stored instance of class className. Preconditions: The registry already contains an instance with URI oldURI that is instance of class className. The parameter className can have one of the following values: SCHEMA, PERSON, ORGANIZATION, VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. The new value of the URI that is denoted by the parameter newURI should have the format of a full URI. Effects: The registry will no longer contain an instance identified by oldURI. Instead, it will contain a new instance with URI newURI. Moreover, all properties pointing from or to the instance with URI oldURI are transferred to the instance with URI newURI. |
public void editInstanceURI( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String oldURI, java.lang.String newURI) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| REMOVE INSTANCE |
Description:
Removes from the registry the instance of class className with URI instanceURI. Preconditions: The registry already contains an instance with URI instanceURI that is instance of class className. The parameter className can have one of the following values: SCHEMA, PERSON, ORGANIZATION, VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. Effects: The registry will no longer contain the instance of class className with URI instanceURI. Moreover, all the properties that are pointing from or to this instance will also be removed. Finally, all instances that won’t be correlated to other instances after the deletion will also be removed, except for instances of class Schema. |
public void removeInstance( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String instanceURI) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| EXIST INSTANCE URI |
Description:
Checks if the instance with URI instanceURI exists in the registry and is instance of the class className. Preconditions: The parameter className can have one of the following values: SCHEMA, PERSON, ORGANIZATION, VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. Effects: None. |
public boolean existInstanceURI( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String instanceURI) |
This method does not throw any exceptions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| INSERT PROPERTY |
Description:
Inserts the property with name propertyName and value propertyValue and correlates it to the instance with URI instanceURI that is instance of class classURI. Preconditions: The registry already contains an instance with URI instanceURI that is instance of class className. The parameter className can have one of the following values: SCHEMA, PERSON, ORGANIZATION, VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. The parameter rangeType can have one of the following values: STRING, NUMERIC, RESOURCE. If the parameter rangeType has the value RESOURCE, then the propertyValue must be the URI of an already stored instance. Effects: The instance with URI instanceURI will have a new property correlated to it. |
public void insertProperty( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String instanceURI, java.lang.String propertyName, java.lang.String[] propertyValue, gr.forth.ics.rdfsuite.services.Registry.PropertyRangeType rangeType) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| REMOVE PROPERTY |
Description:
Removes the property instance with name propertyName and value propertyValue from the class instance of class className with URI instanceURI. Preconditions: The registry already contains an instance with URI instanceURI that is an instance of class className. The parameter className can have one of the following values: SCHEMA, PERSON, ORGANIZATION, VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. The parameter rangeType can have one of the following values: STRING, NUMERIC. The property with name propertyName and value propertyValue has already been stored. Effects: The property instance with name propertyName and value propertyValue will be removed. |
public void removeProperty( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String instanceURI, java.lang.String propertyName, java.lang.String[] propertyValue, gr.forth.ics.rdfsuite.services.Registry.PropertyRangeType rangeType) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| EDIT PROPERTY |
Description:
Edits the value of the property propertyName of the instance of class className with URI instanceURI. Preconditions: The registry already contains an instance with URI instanceURI that is instance of class className. The registry already contains the property with name propertyName and value oldValue. The parameter className can have one of the following values: SCHEMA, PERSON, ORGANIZATION, VERSION, CHANGE, LANGUAGE, ENCODING, PHYSICAL_LANGUAGE. The parameter rangeType can have one of the following values: STRING, NUMERIC. Effects: The property with name propertyName will have a new value assigned to it. |
public void editProperty( gr.forth.ics.rdfsuite.services.Registry.ClassName className, java.lang.String instanceURI, java.lang.String propertyName, java.lang.String oldValue, java.lang.String newValue, gr.forth.ics.rdfsuite.services.Registry.PropertyRangeType rangeType) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| EVALUATE PREDEFINED QUERY |
Description:
Evaluates a query that is chosen from a list of predefined queries contained in an XML file. The query is characterized by the general family it belongs to (queryCategory) and its ID (queryID). The parameters (param) given as argument are used as the parameters needed by the query. For someone to use one of the predefined queries three things are needed by the method evaluatePredefinedQuery:
Description of offered queries:
The values of the parameters queryCategory and queryID are correct with respect to the XML file with the predefined queries. Effects: The selected query will be evaluated by replacing the parameters given and the result will be returned. |
public java.lang.String evaluatePredefinedQuery( java.lang.String queryCategory, java.lang.String queryID, java.lang.String[] param, gr.forth.ics.rdfsuite.services.Format format) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| EVALUATE DYNAMIC QUERY |
Description:
Evaluates a query that is composed by the parameters given as argument. If, for example, we want to compose and evaluate the query: select x from Schema{x}.keywords{y} where y = “sports” then the input should be: returnedItems = "Schema" fromParameters = "Schema.keywords" whereParameters = "keywords = \"sports\"" Preconditions: None Effects: The composed query will be evaluated and its result will be returned. |
public java.lang.String evaluatePredefinedQuery( java.lang.String itemsToReturn,, java.lang.String fromParameters, java.lang.String[] whereParameters, gr.forth.ics.rdfsuite.services.Format format) |
The following exceptions are thrown by the service:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||