dbpedia

Number of incoming link fo each DBpedia resource

蓝咒 提交于 2019-12-06 10:01:16
I have the SPARQL DBpedia Query below: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX vrank:<http://purl.org/voc/vrank#> PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> SELECT distinct ?Nom ?resource ?url (count( (?o) as ?nb)) WHERE{ ?resource rdfs:label ?Nom. ?resource foaf:isPrimaryTopicOf ?url. ?resource dbpedia-owl:wikiPageWikiLink ?o ?Nom <bif:contains> "Apple". FILTER ( langMatches( lang(?Nom), "EN" )). MINUS {?resource dbo:wikiPageRedirects|dbo:wikiPageDisambiguates ?dis} } Group By ?Nom ?resource ?url I want to get the number of

Given a list of company names, how to fetch company names, website url, year established, number of employees etc

家住魔仙堡 提交于 2019-12-06 07:04:09
问题 I have a list of company names such as Microsoft Corp, Kimberly Clark Corporation etc, and for each company, I would like to retrieve fields such as: Its company logo Georgraphic identifier for google maps Website url Year established Stock exchange and stock exchange ticker symbol A way to get the stock prices over the last few days About / abstract from wikipedia A list of subsidiaries and parent companies. For instance, for Boeing it would be Jeppessen and Availl, Inc etc. I have looked

DBpedia Query: SnorQL VS SparQL VS QueryBuilder?

99封情书 提交于 2019-12-06 05:13:57
What are http://dbpedia.org/snorql/ and http://dbpedia.org/sparql/ and http://querybuilder.dbpedia.org/ ? Both SnorQL VS SparQL seems to run the following code similarly : SELECT ?resource ?value WHERE { ?resource a <http://dbpedia.org/class/yago/CitiesAndTownsInDenmark> . ?resource <http://dbpedia.org/property/populationTotal> ?value . FILTER (?value > 100000) } ORDER BY ?resource ?value They are (different) user interfaces that let you build and execute SPARQL queries on the DBpedia SPARQL endpoint http://dbpedia.org/sparql/ . The results should be the same in all three environments, because

How to get abstract and thumbnail of a Wikipedia article from article DBPedia?

半城伤御伤魂 提交于 2019-12-06 05:04:54
问题 I am new to SPARQL. With this query, I can get the birthName of Ernest Hemingway: select distinct ?birthName where { ?person a dbpedia-owl:Person . ?person dbpprop:birthName ?birthName . FILTER (regex(?birthName, "Ernest Miller Hemingway")) } LIMIT 1 Is there a way I can get the wikipedia abstract/introduction and thumbnail of Ernest Hemingway with DBPedia? 回答1: In general, the best way to start querying DBpedia if you already have an idea what you're looking for is to look at the page for

How to find cities with more than X population in a certain country

混江龙づ霸主 提交于 2019-12-06 04:26:49
问题 I'm trying to find cities in Denmark with more than 100 000 in population. I can find all the cities in Denmark with this code: SELECT ?s ?o WHERE { ?s a <http://dbpedia.org/class/yago/CitiesAndTownsInDenmark> } And with this code I can find cities with more than 100 000 in population: SELECT ?resource ?value WHERE { ?resource <http://dbpedia.org/property/populationTotal> ?value FILTER (?value > 100000) } ORDER BY ?resource ?value I would appreciate help about how to combine these queries.

dbpedia SPARQL query to get certain value's for a given city

落花浮王杯 提交于 2019-12-06 03:48:05
I am sure what I want to do is very easy, yet I cannot seem to get the query right. I have records in dataset which have values such as city name e.g. 'New York' and it's corresponding country code e.g 'US'. I also have access to the full country name and country ISO codes. I would like to get the population and abstract value's for these cities off dbpedia, by using a where clause such as: Get population where name = "New York" and isoCountryCode = "US" I've searched for help on this to no avail. so far I have been kindly helped by @rohk with this query, which does not fully work for all

Query dbpedia sparql endpoint using dotnetRDF - RDFParseException

ぃ、小莉子 提交于 2019-12-06 01:06:16
When I execute the following query on http://dbpedia.org/sparql using (dotnetRDF) VDS.RDF.Query.SparqlRemoteEndpoint.QueryWithResultSet() everything works fine. SELECT ?film ?p ?o WHERE { ?film <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Japanese_films> . ?film ?p ?o } limit 500 But when I try this query using SparqlRemoteEndpoint.QueryWithResultGraph() CONSTRUCT { ?film ?p ?o} WHERE { ?film <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Japanese_films> . ?film ?p ?o } limit 500 I've got RdfParseException with message "[Line 456 Column 29]

How to import dbpedia into neo4j? [closed]

荒凉一梦 提交于 2019-12-06 00:35:00
Closed . This question needs to be more focused . It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 4 months ago . I need to import dbpedia into neo4j. I download the dbpedia from here: http://wiki.dbpedia.org/Downloads37 Any idea? I am currently doing the same thing. I found that the biggest problem for this is the indexing so the best solution is to write a java program that extracts the statements with md5 hashes into a triple file like follows: subjectHash \t predicateHash \t objectHash

Optimization of SPARQL query. [ Estimated execution time exceeds the limit of 1500 (sec) ]

两盒软妹~` 提交于 2019-12-05 22:49:34
I am trying to run this query on http://dbpedia.org/sparql but I get an error that my query is too expensive. When I run the query trough http://dbpedia.org/snorql/ I get: The estimated execution time 25012730 (sec) exceeds the limit of 1500 (sec) ... When running the query through my python script using SPARQLWrapper I simply get an HTTP 500. I figure I need to do something to optimize my SPARQL query. I need the data for iterating over educational institutions and importing it in to a local database, maybe I am using SPARQL wrong and should do this in a fundamentally different way. Hope

DISTINCT only on one value with SPARQL

点点圈 提交于 2019-12-05 20:35:51
问题 I want to retrieve with SPARQL the list of the italian cities with more than 100k of population and I'm using the following query: PREFIX dbo: <http://dbpedia.org/ontology/> SELECT ?city ?name ?pop WHERE { ?city a dbo:Settlement . ?city foaf:name ?name . ?city dbo:populationTotal ?pop . ?city dbo:country ?country . ?city dbo:country dbpedia:Italy . FILTER (?pop > 100000) } In the results I get for example in two different lines (which represent the same entity, but with different names): http