wikipedia - SPARQL in DBpedia return no results -


i try write query in sparql in dbpedia return info high schools in country. run query on snorql here link, returns "no results". cannot find error on query. can help?

select ?school {  ?school owl:school.  ?school owl:location ?city.  ?city owl:ispartof ?state.  ?state owl:country <http://dbpedia.org/resource/united_states>. } 

edit:

  1. http://dbpedia.org/ontology/school
  2. http://dbpedia.org/ontology/location
  3. http://dbpedia.org/ontology/country

you seem mistaken ontologies should using. using various identifiers namespace mapped prefix owl, namely:

  • owl:school
  • owl:location
  • owl:ispartof
  • owl:country

however, not specify custom prefix mapping, default mapping used, according owl mapped http://www.w3.org/2002/07/owl#, owl 2. owl 2 not contain definitions listed identifiers, , dbpedia accordingly not use these identifiers.

dbpedia does use identifiers school, location, ispartof , country namespace http://dbpedia.org/ontology/, mapped prefix dbpedia-owl. therefore, in query, use prefix ontology want use. furthermore, note class dbpedia-owl:school capitalized, dbpedia-owl:school small s property.

select ?school {      ?school dbpedia-owl:school.      ?school dbpedia-owl:location ?city.      ?city dbpedia-owl:ispartof ?state.      ?state dbpedia-owl:country <http://dbpedia.org/resource/united_states>. } 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -