GraphDB Constraint Validation

compared with
Current by Ruslan Velkov
on Nov 06, 2014 17:07.

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

Changes (1)

View Page History
|| Example | INSERT DATA \{ \_:b sys:addRuleset <{nolink:file:c:/graphdb/test-data/test.pie}> \} \\
This creates a new ruleset "test". If the absolute path to the file resides on e.g. /opt/rules/test.pie then it can be specified as <{nolink:file:/opt/rules/test.pie}>, <{nolink:file://opt/rules/test.pie}>, or <{nolink:file:///opt/rules/test.pie}>, i. e. with 1, 2, or 3 slashes.Relative paths are specified without the slashes or with dot between the slashes: <{nolink:file:opt/rules/test.pie}>, <{nolink:file:/./opt/rules/test.pie}>, <{nolink:file://./opt/rules/test.pie}>, or even <{nolink:file:./opt/rules/test.pie}> (with dot in front of the path). Relative paths can be used in case we know the work directory of the Java process in which GraphDB runs. Because colon means specifying a port number after the host, if we want to specify the drive letter on a Windows machine, we should NOT use slashes after 'file:', like in the example above. ||
| {color:#000080}{*}Example{*}{color} | INSERT DATA \{ <:custom> sys:addRuleset <{nolink:file:c:/graphdb/test-data/test.pie}
> \}\\
Same as above but creates a ruleset called 'custom' out of the test.pie file found in the given absolute path.\\ |
| {color:#000080}{*}Example{*}{color} | INSERT DATA \{ \_:b sys:addRuleset <{nolink:}
> \}\\
Retrieves the PIE file from the given URL. We can again use <:custom> to change the name of the ruleset to 'custom' or whatever we want.\\ |