Giter VIP home page Giter VIP logo

Comments (4)

ignazio1977 avatar ignazio1977 commented on July 22, 2024

SWRLRule in Manchester Syntax use ?x for variables now

from owlapi.

matthewhorridge avatar matthewhorridge commented on July 22, 2024

I think they are IRIs in the original SWRL "spec".

from owlapi.

ignazio1977 avatar ignazio1977 commented on July 22, 2024

I've added the workaround that Protege uses in the parser so that ?x is equivalent to ?urn:swrl#x.
For Protege, as far as I understand it, a rule in Manchester syntax should always have variables of the form ?foo, and in the object model they always look like urn:swrl#foo.
I've changed the manchester syntax renderer to output ?foo rather than ?<whatevernamespace#foo>, but I'm now wondering if this should always be the case or if there should be a parameter, e.g., in the format, to control this behaviour.

from owlapi.

ignazio1977 avatar ignazio1977 commented on July 22, 2024

Changed this to a more conservative approach. If there is a namespace different from urn:swrl#, use the old full IRI rendering, otherwise use the simplified form. The reverse for parsing.
This allows for simple syntax for those rules where the namespace is irrelevant, and keeps the namespace in other cases (if there is any other case, or not). Ontologies with rules roundtrip correctly with either format.

It's a pity that the SWRLVariable name implies SWRL is involved, since the interface does not have anything tying it specifically to SWRL. Might introduce a Variable interface in version 4

from owlapi.

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.