OWLIM-SE Reasoner

compared with
Current by barry.bishop
on Feb 28, 2013 15:52.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (8)

View Page History
h3. Schema update transactions

In situations when fast statement retraction is required, but it is also necessary to update schemas, a special statement pattern can be used. By including an insert for a statement with the following form in the update:

In situations when fast statement retraction is required, but it is also necessary to update schemas, a special statement pattern can be used. By including a statement with the following form in the update:
{noformat}
_:b1 <http://www.ontotext.com/owlim/system#schemaTransaction> _:b2
{noformat}

{noformat}?subject <http://www.ontotext.com/owlim/system#schemaTransaction> ?object
{noformat}where {{?subject}} and {{?object}} can be anything, OWLIM will use the smooth-delete algorithm, but will also traverse read-only statements and allow them to be deleted/inserted. Such transactions are likely to be be much more computationally expensive to achieve, but are intended for the occasional, offline update to otherwise read-only schemas. The advantage is that fast-delete can still be used, but a repository export and import is not required when making a modification to a schema.

For any transaction that includes an insert of the above special predicate/statement:

* Read-only (explicit or inferred) statements can be deleted
** Normal otherwise

Schema statements can be inserted or deleted using SPARQL Update as follows:

{noformat}
DELETE {
[[schema statements to delete]]
}
INSERT {
_:b1 <http://www.ontotext.com/owlim/system#schemaTransaction> _:b2 .
[[schema statements to insert]]
}
WHERE { }
{noformat}


h1. Predefined Rule-Sets