GithubHelp home page GithubHelp logo

Comments (4)

josd avatar josd commented on August 21, 2024

This is indeed what EYE currently does.
The conclusion of a backward rule is never asserted as it could be non ground.
The conclusion of a forward rule is asserted when it fails and the premis succeeds.

from eye.

blackwint3r avatar blackwint3r commented on August 21, 2024

Because the conclusion of second rule is succeeds already so it would not assert again. Thank you ! I got it.
But this is a bit counterintuitive, since by {?x :type :animal} => {?x :type :animal}, I told EYE make the conclusion not only succeed but also asserted ...

from eye.

josd avatar josd commented on August 21, 2024

A query would do what you want

$ cat example.n3
PREFIX : <http://example.org/test#>

:Alice :type :human.
{?x :type :animal} <= {?x :type :human}.

$ cat query.n3
PREFIX : <http://example.org/test#>

{?x :type :animal} => {?x :type :animal}.
{?x :type :animal} => {?x :type2 :animal}.

$ eye --quiet --nope example.n3 --query query.n3 2>/dev/null
PREFIX : <http://example.org/test#>

:Alice :type :animal.
:Alice :type2 :animal.

This is because query rules don't assert their conclusions but give them as answers.

from eye.

blackwint3r avatar blackwint3r commented on August 21, 2024

Thank you!

from eye.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.