Giter Site home page Giter Site logo

consistency ignoring rule about openllet HOT 6 CLOSED

galigator avatar galigator commented on May 23, 2024
consistency ignoring rule

from openllet.

Comments (6)

Galigator avatar Galigator commented on May 23, 2024

Hello, I don't know this "eval" builtin function.
It doesn't look standard :

https://www.w3.org/Submission/SWRL/#8
http://dior.ics.muni.cz/~makub/owl/#swrlpredicates

Where does it come from ?

You can find some example of swrl with openllet here :

with standards builtin :
https://github.com/Galigator/openllet/blob/integration/module-owlapi/src/test/java/openllet/pellet/owlapi/test/TestBasic.java#L463
https://github.com/Galigator/openllet/blob/integration/module-owlapi/src/test/java/openllet/pellet/owlapi/test/TestBasic.java#L506

with user define builtin :
https://github.com/Galigator/openllet/blob/integration/module-owlapi/src/test/java/openllet/pellet/owlapi/test/TestBasic.java#L583

You can also take a look here for a complete list of already implemented builtins.
https://github.com/Galigator/openllet/blob/integration/tests/src/test/java/openllet/test/rules/SWRLBuiltIns.java (but there is no 'eval' function to be implemented).
Files in the same directory may enlighten you.

Also be careful with Jena, it is only 'OWL1', you may have surprises.

from openllet.

Galigator avatar Galigator commented on May 23, 2024

My bad, you are using : https://github.com/protegeproject/swrlapi/wiki/SQWRL not SWRL.
SQWRL isn't support by Openllet. Maybe we could implement a bridge to SQWRL using the user define SWRL in Openllet. Also It would kill the the 'explenation' feature, that allow user to understand what's going on when inconsistency appear.

from openllet.

shadialian avatar shadialian commented on May 23, 2024

no, I am using swrl to define the rules.
this is the link to the builtins https://github.com/protegeproject/swrlapi/wiki/MathematicalBuiltInLibrary

from openllet.

Galigator avatar Galigator commented on May 23, 2024

swrlm:eval(?r, "(57 * x) / y)", ?x, ?y)" is an SQWRL construct not an SWRL construct.

By reading https://github.com/protegeproject/swrlapi/wiki/SQWRL, I understand that binding SQWRL to Openllet could be an interesting 3 years phd research project.

from openllet.

shadialian avatar shadialian commented on May 23, 2024

Thanks for the clarification. is there any guides for creating custom built-ins for openllet. And for the Jena that it only support OWL1. do you have any alternatives that I can use? I am currently using the Fuseki server to query my ontology over HTTP using sparql from mobile apps.

from openllet.

Galigator avatar Galigator commented on May 23, 2024

There is no guides for creating custom built-ins for openllet, but there is one example :
https://github.com/Galigator/openllet/blob/integration/module-owlapi/src/test/java/openllet/pellet/owlapi/test/TestBasic.java#L744

A replacement for Jena, could be the OWL-API, but it doesn't come with fuseki like tool, instead it use RIO/rdf4j like tools.

from openllet.

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.