Getting dbpedia-owl: enter a resource value with dbpedia-owl: wikiPageRedirect value?

A visit to http://dbpedia.org/resource/Cupertino shows information on DBpedia RDF about Cupertino. As you can see, it has, among other things, a property and a value:

dbpedia-owl:type  dbpedia:City

However, this query at the DBpedia endpoint does not return results:

SELECT ?type  WHERE {
  dbpedia:Cupertino  dbpedia-owl:type ?type
}

SPARQL Results

Why can't I get the property value dbpedia-owl:type?

+4
source share
1 answer

- , , , - , , , . , , dbpedia:Cupertino.

select ?p ?o where {
  dbpedia:Cupertino ?p ?o 
}

SPARQL

p                                               o
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#Thing
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://dbpedia.org/ontology/Place
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://dbpedia.org/ontology/PopulatedPlace
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://dbpedia.org/ontology/Settlement
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://schema.org/Place
http://dbpedia.org/ontology/wikiPageID          337802
http://dbpedia.org/ontology/wikiPageRevisionID  16202923
http://www.w3.org/2000/01/rdf-schema#label      "Cupertino"@en
http://dbpedia.org/ontology/wikiPageRedirects   http://dbpedia.org/resource/Cupertino,_California
http://xmlns.com/foaf/0.1/isPrimaryTopicOf      http://en.wikipedia.org/wiki/Cupertino
http://www.w3.org/ns/prov#wasDerivedFrom        http://en.wikipedia.org/wiki/Cupertino?oldid=16202923

, dbpedia-owl:wikiPageRedirects. dbpedia:Cupertino URI, http://dbpedia.org/resource/Cupertino, - , . http://dbpedia.org/page/Cupertino,_California, , , , http://dbpedia.org/resource/Cupertino,_California ( , /resource/ /page/, .

dbpedia:Cupertino , . , , :

select ?type where {
  dbpedia:Cupertino dbpedia-owl:wikiPageRedirects*/dbpedia-owl:type ?type
}

SPARQL

+3

Source: https://habr.com/ru/post/1542042/


All Articles