protegeproject / sparql-query-plugin

Protege Desktop plug-in that provides support for writing and executing SPARQL queries.
12 stars 11 forks source link

I can't get the query plugin to return any rows. #15

Closed 1Mark closed 7 years ago

1Mark commented 7 years ago

It only returns the names of the columns that are in the select statement and regardless of what I do no rows are returned at all.

csnyulas commented 7 years ago

Are you sure that you try this in the "SPARQL Query" and not the "Snap SPARQL Query" view?

What happens if you execute the sample query provided in the plugin:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?subject ?object
    WHERE { ?subject rdfs:subClassOf ?object }

If you still can't see any results, can you send us the ontology, and the query you are trying to execute, so that we can see what's going on?

1Mark commented 7 years ago

Firstly thanks for the quick response. I can't perform any queries whatsoever. Even the sample query returns nothing. See image, please. ( The same thing happens for me in windows btw) screenshot from 2017-10-24 08-57-14

csnyulas commented 7 years ago

May I ask what was the reason for closing this ticket? Have you found a solution? Can you share it with us? Did you have an ontology with classes and subclasses loaded when you ran the query?

1Mark commented 7 years ago

Did you have an ontology with classes and subclasses loaded when you ran the query?

Initially, I did it didn't work I believe after updating some plugins I forgot to re-open it. So yes indeed that was the issue. Apologies.

Your more than welcome to delete this issue.

csnyulas commented 7 years ago

We don't delete history :)) (I mean, it is fine to keep it. Once it has been closed, it doesn't bother anyone.)