Answer the question
In order to leave comments, you need to log in
SPARQL - ASK query and FILTER, COUNT, help-help!?
Save - help! I've been fighting for a very long time, Google did not help. Task - "Is it true that there are 60 countries without access to the sea?" . I use dbpedia, ASK query, but how to use COUNT in it? I do not understand.
ASK WHERE
{
?ca dbpedia-owl:Country;
a yago:LandlockedCountries.
}
In this form, of course, the answer is True. I tried both the filter and the nested SELECT - it swears at a syntax error. That is, you need something like this:
ASK WHERE
{
?ca dbpedia-owl:Country;
a yago:LandlockedCountries.
FILTER( count(?c) > 50 )
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question