Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SPARQL Query tab in Protege doesn't show anything

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

enter image description here

How can I write my query?

like image 551
Michele Buzzoni Avatar asked Jun 02 '17 11:06

Michele Buzzoni


People also ask

What is Sparql in protege?

SPARQL stands for SPARQL Protocol and RDF Query Language. SPARQL is a semantic query language for databases — able to retrieve and manipulate data stored in Resource Description Framework (RDF) format. SPARQL queries are represented in triple format.

What is FOAF in Sparql?

Dataset: Friend of a Friend (FOAF) @prefix card: <http://www.w3.org/People/Berners-Lee/card#> .


2 Answers

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.

like image 81
Chunhua Liao Avatar answered Nov 12 '22 11:11

Chunhua Liao


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.

like image 34
Stanislav Kralin Avatar answered Nov 12 '22 10:11

Stanislav Kralin