| COMPARISON SERVICE | |||
| METHOD NAME | DESCRIPTION/PRECONDITIONS/EFFECTS | METHOD SIGNATURE | EXCEPTIONS THROWN |
|---|---|---|---|
| DIFF |
Description:
The Comparison Service is responsible for comparing two collections of namespaces or named graphs (KBs) already stored in the repository and compute their delta in an appropriate form. The result of the comparison is a “delta” (or “diff”) describing the differences between the two collections of namespaces or named graphs, i.e., the change(s) that should be applied upon the first in order to get to the second. It should be noted that these collections are expanded with those namespaces or named graphs that they respectively depend on. Notice that the redundancy elimination feature of the Import Service could cause unexpected results in the behaviour of the Comparison Service, for those diff functions that use explicit information, which is affected by redundancy elimination (see [ZTC07]). This is true only if redundancy elimination is applied, e.g., if one imports the models in the database (from the input files) and compares the results; it will not happen if the models are compared in the main memory, before being loaded into the database. It should be emphasized that the comparison is not performed upon the namespaces and named graphs in the input only (namespacesOrGraphspaces1 and namespacesOrGraphspaces2), but also upon the namespaces and named graphs that they depend on. In other words, the compared conceptualizations occur by taking the union of the triples in the URIs indicated by nameGraphSpaceURI1 (and nameGraphSpaceURI2) plus the triples in the namespaces or named graphs that the input namespaces or named graphs depend on.
Preconditions:
None. |
public gr.forth.ics.rdfsuite.services.Delta diff( java.util.Collection<java.lang.String&qt; namespacesOrGraphspaces1, java.util.Collection<java.lang.String&qt; namespacesOrGraphspaces2, gr.forth.ics.rdfsuite.services.DeltaFunction deltaFunction, gr.forth.ics.rdfsuite.services.DbSettings dbSettings) |
This service does not throw any exceptions. |