eye icon indicating copy to clipboard operation
eye copied to clipboard

Unexpected behaviour from backward chaining rules, for blank nodes and query variables

Open renyuneyun opened this issue 5 months ago • 5 comments

Observation 1

Backward chaining rules whose conclusion contains new query variables (that do not exist in premise) result in reasoner error: ** ERROR ** gre ** error(permission_error(modify,static_procedure,(,)/2),context(system:assertz/1,_210)).

Example:

@prefix : <http://example.org/ns/>.

:Alice a :Human.

{
	?m a :World;
		:has ?h.
} <= {
	?h a :Human.
}.

Observation 2

Backward chaining rules whose conclusion contains blank nodes seems to do nothing.

Example:

@prefix : <http://example.org/ns/>.

:Alice a :Human.

{
	_:m :has ?h.
} <= {
	?h a :Human.
}.

{ 
	?a :has ?b.
} => {
	?a :has ?b.
}.

The example in #35 also does not work.

renyuneyun avatar Aug 31 '24 21:08 renyuneyun