I open the SPARQL Query tab in Protege but the result is this:
How can I write my query?
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.
Dataset: Friend of a Friend (FOAF) @prefix card: <http://www.w3.org/People/Berners-Lee/card#> .
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.
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):
Source: https://github.com/protegeproject/sparql-query-plugin/issues/10.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With