Giter Site home page Giter Site logo

Comments (7)

LorenzBuehmann avatar LorenzBuehmann commented on May 24, 2024

I don't think that SPARQL-DL supports SPARQL 1.1 property paths.

from openllet.

greeny277 avatar greeny277 commented on May 24, 2024

Ok. I was just wondering why the SPARQL plugin by Protege can handle this query. Meanwhile i thought about replacing this intersectionOf with a bunch of subclassOf relations. So I guess this is no bug then?

from openllet.

Galigator avatar Galigator commented on May 24, 2024

Anything that end with that kind of Exception should be see as a bug.
The tool should send at least a better error message.

I'm not very awar of how the sparql-query module work and maybe I have done a bad mistake somewhere.

What version are you using ?

from openllet.

greeny277 avatar greeny277 commented on May 24, 2024

I'm currently using version 2.6.2.

from openllet.

LorenzBuehmann avatar LorenzBuehmann commented on May 24, 2024

@greeny277 Which SPARQL plugin do you use? Protege has two SPARQL plugins:

  1. The standard SPARQL query tab doesn't use Pellet and doesn't support DL reasoning. It uses RDF4J as SPARQL API and support property paths.
  2. The Snap SPARQL plugin uses its own parser + SPARQL DL API, but this plugin does not support Property Paths.
<dependency>
            <groupId>edu.stanford.protege</groupId>
            <artifactId>de-derivo-sparqldlapi</artifactId>
            <version>3.0.0</version>
        </dependency>

Pellet is using SPARQL DL which doesn't support property paths.

from openllet.

greeny277 avatar greeny277 commented on May 24, 2024

I'm using the Standard SPARQL Query Plugin in Version 2.0.2.

from openllet.

LorenzBuehmann avatar LorenzBuehmann commented on May 24, 2024

Ok, as I said, this plugin uses RDF4J for SPARQL query processing.
Regarding Pellet, its SPARQL query API was developed before SPARQL 1.1, so that might be the reason for missing support. At least I assume that the parser fails somehow. Maybe it's easy to fix, but somebody would have to dig into the code.

Your current query doesn't look like reasoning is necessary. You can use standard Apache Jena if you don't need OWL DL reasoning. Jena also supports some rule-based reasoning for different language profiles, maybe that would be sufficient just in case you need some light-weight reasoning.

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.