dbpedia

Retrieving dbpedia-owl:type value of resource with dbpedia-owl:wikiPageRedirect value?

匆匆过客 提交于 2020-01-09 05:37:44
问题 Visitng http://dbpedia.org/resource/Cupertino shows the DBpedia RDF information about Cupertino. As you can see, it has, among others, the property and value: dbpedia-owl:type dbpedia:City However, this query on the DBpedia endpoint returns no results: SELECT ?type WHERE { dbpedia:Cupertino dbpedia-owl:type ?type } SPARQL results Why can't I retrieve the value of the dbpedia-owl:type property? 回答1: You've got an interactive webservice in front of you, and one of the most useful things that

Difference between one SPARQL (working) query and another one (not working)

若如初见. 提交于 2020-01-06 08:16:05
问题 I want to get the scorers ( marcatori ) from this page: http://it.dbpedia.org/resource/Modena_Football_Club_1962-1963 using this SPARQL endpoint: http://uriburner.com/sparql/ If I use this query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?team ?club (group_concat(distinct ?scorer;separator=";;;") as ?scorers) WHERE { SERVICE <http://it.dbpedia.org/sparql/> { ?value rdfs:label "Campionato italiano di calcio Serie A"@it . ?year <http://purl.org/dc/terms/subject>

SPARQL query to retrieve countries population from DBpedia

僤鯓⒐⒋嵵緔 提交于 2020-01-04 09:17:14
问题 I have developed the following SPARQL query to get a list of countries with its population from DBpedia. I use the union clauses to identify which resources are current countries because the information is inconsistent between the different countries, for example there are different standards for country codes and some of them don't even have one. Now the problem that I have is that some of the countries have a dbpprop:populationEstimate property but others have dbpprop:populationCensus and I

SPARQL query to retrieve countries population from DBpedia

早过忘川 提交于 2020-01-04 09:17:05
问题 I have developed the following SPARQL query to get a list of countries with its population from DBpedia. I use the union clauses to identify which resources are current countries because the information is inconsistent between the different countries, for example there are different standards for country codes and some of them don't even have one. Now the problem that I have is that some of the countries have a dbpprop:populationEstimate property but others have dbpprop:populationCensus and I

SPARQL query returns different results depending on the order of statements

笑着哭i 提交于 2020-01-04 07:38:07
问题 I have a SPARQL query which returns the most specific common classes of two resources. When I try to run it on https://dbpedia.org/sparql, sometimes it returns nothing, and other times it returns the classes I want. I have noticed it is related to the order of the statements in the query. This is not a desirable behavior because, when I execute the query, I expect it to have the same results regardless of the order in which I input the URIs of the resources. Has anyone experienced this

Getting list of persons using SPARQL dbpedia

廉价感情. 提交于 2020-01-04 02:42:07
问题 I am using live-dbpedia to retrieve the list of persons. I am executing a sparql query on live-dbpedia endpoints to get the result.I have fixed the offset and limit value in the query and getting the records after each 10000 attempt . But when I was trying to execute at 580000 offset value , 504 Gateway Time-out error happens. Not Working SPARQL Query: SELECT DISTINCT ?dbpedia_link str(?name) as ?label str(?label1) as ?label1 ?freebase_link WHERE { ?dbpedia_link rdfs:label ?label1 . ?dbpedia

dbpedia SPARQL query for finding artist properties

房东的猫 提交于 2020-01-03 15:55:22
问题 I'm trying to get details about an artist via DBPedia and the SPARQL query language, however, it seems almost impossible (with my understanding) of how to get certain pieces of information. I'm trying to get an Artist and pull information such as their Hometown. I'm guessing the query should be something similar to that of: SELECT ?c WHERE { ?b <http://dbpedia.org/property/Artist> <http://dbpedia.org/resource/Arctic_Monkeys>. ?b <http://www.w3.org/2002/07/owl#ObjectProperty> <http://dbpedia

DBpedia Sparql by page template

混江龙づ霸主 提交于 2020-01-03 04:42:06
问题 I am trying to run a query on dbpedia using SPARQL syntax, to look for all pages of a certain template. Doesn't seem to be work, I am looking for all pages with dbpprop:wikiPageUsesTemplate. Does anyone know how to correct this to properly look for templates? SELECT ?name ?member_Of ?country ?lat ?lng ?link WHERE { ?x dbpprop:wikiPageUsesTemplate "dbpedia:Template:Infobox_settlement" . ?x a <http://dbpedia.org/ontology/Settlement> . ?x foaf:name ?name . ?x dbpedia-owl:isPartOf ?member_Of. ?x

How to change upper execution time limit for a DBpedia SPARQL query? (Virtuoso 42000 error)

不打扰是莪最后的温柔 提交于 2020-01-02 06:30:22
问题 I am querying DBpedia using SPARQL through Python. I am facing issues with the upper execution time limit. This is the error : Code : sparql = SPARQLWrapper("http://dbpedia.org/sparql") newquery = "DEFINE input:inference "skos-trans" PREFIX dcterms: <http://purl.org/dc/terms/> select distinct ?cat1 ?cat2 ?cat3 ?cat4 where { <http://dbpedia.org/resource/Pulp_Fiction> dcterms:subject ?cat1 . ?cat1 skos:broaderTransitive ?cat2. ?cat2 skos:broaderTransitive ?cat3. ?cat3 skos:broaderTransitive

Counting in SPARQL

冷暖自知 提交于 2020-01-01 08:43:22
问题 Ok so i have this query PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT (COUNT(?instance) AS ?count) WHERE { ?instance a <http://dbpedia.org/ontology/Ambassador> . } and the result is 286. Cool. Now I want to get the number of ambassadors that have http://dbpedia.org/property/name property. But PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT (COUNT(?instance) AS ?count) WHERE { ?instance a <http://dbpedia.org/ontology/Ambassador> . ?instance <http:/