I used the loadrdf tool to load a large data set with ruleset empty (I tried loading it with parallel inference but there were too many small files and it took too long). After loading I now want to turn on horst reasoning.

First I tried to change the inference type in the graphdb repository interface. Then I did a sparql update: INSERT DATA { [] http://www.ontotext.com/owlim/system#reinfer [] }.

Nothing.

Then I noticed that there was rule.list in the repo directory that still said "empty". I changed that to owl-horst-optimized and then issued the insert data. This time the update does not return and I see my graphdb process is taking 100%. However it does not seem to be actually inferring any new triples (evidenced by 0 disk access and by file sizes not changing).

asked 04 Aug '15, 01:03

alanr's gravatar image

alanr
1111
accept rate: 0%


Before starting the reinfer process, you need to add the rule-set by executing following SPARQL update query:

e.g.: PREFIX sys: http://www.ontotext.com/owlim/system# INSERT DATA { :b sys:addRuleset <file: <graph_db_distribution="">/rules/builtin_Rules-horst-optimized.pie> . :b sys:defaultRuleset "RdfsRules-optimized-spb" . }

where the rule-set file (.pie) is located in GraphDB distribution under the rules/ directory. You have several built-in rulesets to choose from.

Once the rule-set has been added, then you should execute the reinfer SPARQL update query:

e.g.: INSERT DATA { [] http://www.ontotext.com/owlim/system#reinfer [] }

link

answered 11 Aug '15, 07:30

Venelin%20Kotsev's gravatar image

Venelin Kotsev
4212
accept rate: 20%

is :b supposed to be a blank node?

What if you want to change to no inference?

link

answered 26 Aug '15, 22:58

alanr's gravatar image

alanr
1111
accept rate: 0%

Correct, :b is a blank node. If you want to turn the inference off you should provide empty string to the INSERT query pasted above e.g.

PREFIX sys: http://www.ontotext.com/owlim/system# INSERT DATA { :b sys:defaultRuleset "RdfsRules-optimized-spb" . }

link

answered 30 Mar '16, 06:18

Venelin%20Kotsev's gravatar image

Venelin Kotsev
4212
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14

Asked: 04 Aug '15, 01:03

Seen: 1,295 times

Last updated: 23 May, 08:01

powered by BitNami OSQA