propi / rdfrules

RDFRules: Analytical Tool for Rule Mining from RDF Knowledge Graphs
GNU General Public License v3.0
28 stars 2 forks source link

Possible inconsistency in respecting max rule length setting #70

Open kliegr opened 3 years ago

kliegr commented 3 years ago

tasks_and_rules.zip Task 1: Max rule length is set to 5, but the task returns only rules of length 4.

The antecedent contains three predicate patterns and the "Exact" option is off. One of the antecedent patterns is

 ( ?a <category> Any ).  

In all five discovered rules, there is a corresponding atom with the object position replaced by a constant:

( ?a <category> <Drug> )
( ?a <category> <Drug> )
( ?a <category> <NamedThing> )
( ?a <category> <ChemicalSubstance> )
( ?a <category> <Gene> )

Task 2: The setting is the same as Task 1, only the pattern

  ( ?a <category> Any )

is replaced by

  ( ?a <category> <Drug> )

in an attempt to obtain only drugs on the output.

Task 2 returns 10.000 rules mostly of length 5.

It looks like the inconsistency is in Task 1 as it returns only rules of length 4 despite the max rule length of 5.