dbpedia

How to setup neo4j with dBpedia ontop of ruby-on-rails application?

守給你的承諾、 提交于 2019-12-20 19:57:29
问题 I am trying to use dBpedia with neo4j ontop of ruby on rails . Assuming I have installed neo4j and downloaded one of the dBpedia datasets. How do I import the dbpedia dataset into neo4j ? 回答1: The simplest way to load dbpedia into Neo4j is to use the dbpedia4neo library. This is a Java library, but you don't need to know any Java because all you need to do is run the executable. You could rewrite this in JRuby if you want, but regular Ruby won't work because it relies on Blueprints, a Java

SPARQL query against DBPedia to get all property-value of the item

允我心安 提交于 2019-12-20 07:25:54
问题 I am a novice in Semantic Web and I would like to retrieve all property-value pairs of "apple" from DBPedia using SPARQL query. Below I have written the query in http://dbpedia.org/sparql editor, but it returns no any results.Could you tell me where I make a mistake, please? PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix dbo: <http://dbpedia.org/ontology/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix prov: <http:/

Fetching a list of books adapted into films from dbpedia

我只是一个虾纸丫 提交于 2019-12-19 12:01:27
问题 I am trying to fetch a list of American movies adapted from books from dbpedia. This is what I have so far: PREFIX onto: <http://dbpedia.org/ontology/> PREFIX dcterms: <http://purl.org/dc/terms/> SELECT * WHERE { ?movie dcterms:subject <http://dbpedia.org/resource/Category:American_films> . ?movie dcterms:subject <http://dbpedia.org/resource/Category:Films_based_on_novels> . ?movie onto:basedOn ?book . ?book a onto:Book . } I get only 4 results back. Is there another property I can use to get

DBpedia SPARQL query returns multiple and duplicate records

孤者浪人 提交于 2019-12-19 11:22:18
问题 I am quite new to SPARQL and also becoming confused by the manifold syntax standards existing for it. I am struggling to fetch unique data from DBpedia using the following query: SELECT DISTINCT ?Museum, ?name, ?abstract, ?thumbnail, ?latitude, ?longitude, ?photoCollection, ?website, ?homepage, ?wikilink WHERE { ?Museum a dbpedia-owl:Museum ; dbpprop:name ?name ; dbpedia-owl:abstract ?abstract ; dbpedia-owl:thumbnail ?thumbnail ; geo:lat ?latitude ; geo:long ?longitude ; dbpprop

Getting hyperlinks of a Wikipedia page using DBpedia

耗尽温柔 提交于 2019-12-18 07:17:29
问题 I have two resources in DBPedia: dbr:Diabetes_mellitus and dbr:Hyperglycemia. In Wikipedia, the corresponding pages are wikipedia-en:Diabetes_mellitus and wikipedia-en:Hyperglycemia. In Wikipedia there is a hyperlink from Diabetes_mellitus page to Hyperglycemia page. But when I try to find the link between the 2 resources in DBpedia, I cannot find it. I tried to find the link using the following SPARQL query. SELECT ?prop WHERE { { dbr:Diabetes_mellitus ?prop dbr:Hyperglycemia } UNION { dbr

Work around to query DBpedia for two keywords

一世执手 提交于 2019-12-18 06:58:09
问题 I want to query DBpedia for multiple keywords, apparently I have to search for an exact substring, so if I want the page about Egyptian Pyramids , searching for Egypt Pyramids won't work, but that's exactly what I need.. So I was thinking maybe I can see if the concept "Pyramids" has anything to do with "Egypt", by searching through the relations, but I am finding it difficult to come up with the sparql query needed for that BTW I query through: http://dbpedia.org/sparql 回答1: Trying to

Load DBpedia locally using Jena TDB?

梦想的初衷 提交于 2019-12-18 03:35:35
问题 I need to perform a query against DBpedia: SELECT DISTINCT ?poi ?lat ?long ?photos ?template ?type ?label WHERE { ?poi <http://www.w3.org/2000/01/rdf-schema#label> ?label . ?poi <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat . ?poi <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long . ?poi <http://dbpedia.org/property/hasPhotoCollection> ?photos . OPTIONAL {?poi <http://dbpedia.org/property/wikiPageUsesTemplate> ?template } . OPTIONAL {?poi <http://www.w3.org/1999/02/22-rdf-syntax-ns

Get all properties for a DBpedia class

♀尐吖头ヾ 提交于 2019-12-17 23:38:19
问题 How to get a list of properties for a specific class? Consider the class dbpedia-owl:Person. All instances of the Person class have some properties prefixed with dbpprop: . How can I get all the dbpprop: properties that we may find for all the instance of the Person class? 回答1: The one that works is: select distinct ?property where { ?property <http://www.w3.org/2000/01/rdf-schema#domain> <http://dbpedia.org/ontology/Person> . } In this query you are asking for all the properties that have

Why is dbpedia-owl:wikiPageRedirects not returning the full set of redirect links? (Sparql)

旧时模样 提交于 2019-12-17 06:18:12
问题 I am using the following query : select ?value where { <http://dbpedia.org/resource/Paris> dbpedia-owl:wikiPageRedirects* ?value } in order to retrieve the wikiPageRedirects property of Paris. Based on dbpedia Paris has more than 20 redirect links. Why am I only retrieving the first one? 回答1: Your direction was wrong. select distinct * where { ?x dbpedia-owl:wikiPageRedirects <http://dbpedia.org/resource/Paris> } 回答2: Artemis's answer is right; the "direction" in the query is wrong. It's

Exclude results from DBpedia SPARQL query based on URI prefix

只谈情不闲聊 提交于 2019-12-17 06:16:07
问题 How can I excluding a group of concepts when using the DBpedia SPARQL endpoint? I'm using the following basic query to get a list of concepts: SELECT DISTINCT ?concept WHERE { ?x a ?concept } LIMIT 100 SPARQL Results This gives me a list of 100 concepts. I want to exclude all the concepts that fall into the YAGO class/group (i.e., whose IRIs begin with http://dbpedia.org/class/yago/ ). I can filter out individual concepts like this: SELECT DISTINCT ?concept WHERE { ?x a ?concept FILTER (