0

I have a query that returns if page with such name exists in Wikidata.

SELECT ?boolean
WHERE{
BIND(EXISTS{?item ?label "Water"} AS ?boolean)
  }

Now I need to run it from Protege tab SPARQL-query. What do I have to add to it to make it work? Maybe some prefixes? When I run it as it is now I always get false :(

2
  • ?label is a variable, why do you think this represents the title or name of the Wikidata entity of Water then? One more time, you have to start with a SPARQL tutorial for sure. May 17, 2021 at 3:03
  • regarding your question, it does not work from Protege. I mean, obviously not, or did you ever specify the URL of the Wikidata SPARQL endpoint in Protege. For sure not. How should Protege know where do look for the data? That's not possible, the data could be hosted anywhere. I think you have to use some other SPARQL tool in your case which allows for querying SPARQL endpoints via HTTP. May 17, 2021 at 3:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.