Hello everyone,
We have a problem with reasoning with SWRL rules.
Indeed, we write the following swrl rule :
Person(?x), (not (personHaveAnimal min 1 Cat))(?x) -> personHaveAnimal(?x, SuperCat)
Or
Person(?x), (personHaveAnimal exactly 0 Cat))(?x) -> personHaveAnimal(?x, SuperCat)
We created two individuals for the Person class: Toto and Titi
Titi personHaveAnimal StarCat.
Toto nothing.
In Stardog, when we execute a SPARQL query, we obtain :
K:\Projets\stardog-2.0.1\bin>stardog query "exactly;reasoning=SL" "Select ?x ?y {?x test:personHaveAnimal ?y.}"
+---------------+----------------+
| x | y |
+---------------+----------------+
| test:Titi | test:SuperCat |
| test:Titi | test:StarCat |
| test:Toto | test:SuperCat |
+---------------+----------------+
While, we expect :
+---------------+----------------+
| x | y |
+---------------+----------------+
| test:Titi | test:StarCat |
| test:Toto | test:SuperCat |
+---------------+----------------+
This problem is perhaps a Pellet problem and in this case, I will remove this post for the Pellet Forum.
Thanks in advance for your help.
Sincerely,
PS: Sorry for my bad english
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Sincerely,
Florian
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Person(?x), (personHaveAnimal exactly 0 Cat))(?x) -> personHaveAnimal(?x, SuperCat)
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en