SPARQL Query tab in Protege doesn't show anything
Asked Answered
H

4

16

I open the SPARQL Query tab in Protege but the result is this:

enter image description here

How can I write my query?

Haller answered 2/6, 2017 at 11:48 Comment(5)
stackoverflow.com/questions/43971310Graven
As Stanislav linked to, update the plugins, e.g. RDF 2.0.3Thitherto
Its working now. Thanks a lot !Haller
Ok, cool. The other thread doesn't contain an accepted answer. Maybe you can provide one here and accept your own answer. This might help others.Thitherto
what I've to do?Haller
G
16

It happens in version 2.0.1 of Protégé SPARQL Plugin, bundled with Protege 5.2, after any ontology is loaded.

 

Update the the "OWLAPI RDF Library" and "Protege SPARQL Plugin" to the latest version with the auto-update mechanism (which appears when starting up Protege or can be activated through the File > Check for plugins… menu):

 

autoupdate

Source: https://github.com/protegeproject/sparql-query-plugin/issues/10.

Graven answered 6/6, 2017 at 7:10 Comment(1)
I checked that the plug-ins are updated and restarted Protégé, and it still doesn't worked. The trick was to write a first SPARQL query (without executing it) before loading the ontology.Iced
W
2

Another way around is downloading the "Snap SPARQL Query" plugin and adding the view on the SPARQL tab.

Whiggism answered 19/1, 2022 at 19:26 Comment(0)
C
1

For Protege 5.5.0, you may also need to add query view from menu:

Window--> View-> Query View-> SPARQL Query

And drop it into the SPARQL Query tab.

Centesimo answered 25/8, 2021 at 4:4 Comment(0)
A
0

try to enlarge the heap size for Protégé. I have had the same problem for SPARQL Query and others. Plugin update never worked for me and each time I just delete the new plugins and Protégé works as If nothing happens.

So the solution I have found till now is to not update plugins but to enlarge heap size.

How to do it?

There is a wiki for Protégé 3 and 4 here: https://protegewiki.stanford.edu/wiki/Setting_Heap_Size but not for Protégé 5 so I was supposed to figure it myself.

Well, you should just open the Protege.l4j.ini file and change the heap size limits from {200,500} to {2000,5000} (I am not sure If your computer will stand that, you must read the wiki above to know more about it).

It should be like this:

    -Xms2000M
    -Xmx5000M
    -Xss16M

Hope this can help someone there. Best regards, AmelieSpark.

Angary answered 9/1, 2020 at 17:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.