dbpedia

Extend DBpedia entity in Protege ontology

删除回忆录丶 提交于 2019-12-24 04:00:16
问题 I'm using Protege to develop an ontology that will include some things that are already described in DBpedia. Let's say I want to include a class 'Cities' and have 'Berlin' as an individual. My Berlin will have some properties the DBpedia Berlin doesn't but otherwise I'd like to 'reuse' DBpedia's Berlin. Do I need to define my own Berlin and then use rdf:seeAlso or can I somehow import DBpedia's Berlin and add some properties? 回答1: Just use the DBpedia IRI, If it's sufficient to simply talk

“Timeout/query hangs” while executing SPARQL query to DBpedia from Jena

狂风中的少年 提交于 2019-12-24 01:14:28
问题 I am having trouble executing SPARQL queries against dbpedia.org using Jena. The queries are of the form: PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX p: <http://dbpedia.org/property/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?album ?name ?dateofrelease WHERE { ?album p:artist <http://dbpedia.org/resource/SomeArtist> . ?album rdf:type <http://dbpedia.org/ontology/Album> . ?album rdf:type <http://schema.org/MusicAlbum> . ?album p:name ?name . ?album <http:/

Filtering SPARQL results by day and month

只谈情不闲聊 提交于 2019-12-24 00:29:47
问题 I'm currently using the http://dbpedia.org/snorql website to launch some basic request like the one below: PREFIX dbpedia0: <http://dbpedia.org/ontology/> SELECT ?body ?value WHERE { ?body a dbpedia0:Person. ?body dbpedia0:birthDate ?value. } ORDER BY ?value I would like to find a way of filtering the results so that only people born on day X month Y are being selected (no matter the birth year). I have been trying to do so with many approaches like: 1) Basic filtering: FILTER(xsd:date(?value

How to get the terminal leaves of a Wikipedia root category

风流意气都作罢 提交于 2019-12-23 19:30:43
问题 I want to get only the leaves a wikipedia category but not sure how. I can get all the leaves by SELECT ?subcat WHERE { ?subcat skos:broader* category:Buildings_and_structures_in_France_by_city . } This gives me all intermediate leaves (such as Category:Buildings_and_structures_in_Antibes) but I want to get just the last/bottom leaves of the tree. Leaves that can not be split anymore. How can I do this? 回答1: You should be able to simply filter out the values of ?subcat that are not terminal

DBpedia SPARQL search similar to DBpedia lookup facility

被刻印的时光 ゝ 提交于 2019-12-23 17:23:50
问题 DBpedia offers a look up facility like http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?QueryString=panda that returns a result set. Can the same result set be obtained by using SPARQL to query DBpedia 来源: https://stackoverflow.com/questions/15667133/dbpedia-sparql-search-similar-to-dbpedia-lookup-facility

How to validate datetime object in SPARQL? (Virtuoso 22007 Error DT006)

荒凉一梦 提交于 2019-12-23 12:36:28
问题 I get the following error. Virtuoso 22007 Error DT006: Cannot convert -0359 to datetime : Incorrect month field length SPARQL query: define sql:big-data-const 0 #output-format:text/html define sql:signal-void-variables 1 select ?item bif:year(xsd:dateTime( str(?dob))) as ?m{ ?item <h://f.cm/ns/common/topic/notable_types> <h://f.cm/ns/people/person> . ?item <h://f.cm/ns/people/person/date_of_birth> ?dob } limit 675 If I change the limit to 674 , it works. What I suspected was that some

Number of incoming link fo each DBpedia resource

谁说胖子不能爱 提交于 2019-12-22 19:16:05
问题 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

Number of incoming link fo each DBpedia resource

左心房为你撑大大i 提交于 2019-12-22 19:15:23
问题 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

DBpedia SPARQL Query US Universities

邮差的信 提交于 2019-12-22 08:50:37
问题 I created a SPARQL query that I'm running on the DBpedia SNORQL SPARQL endpoint. The purpose of the query is to get a list of universities or colleges in the United States, including their longitude, latitude, and endowment. The query seems to be working but seems to be missing some records and/or attributes. So, for example, Harvard University doesn't show up in the result, even though its DBpedia record exists and the attributes should match my query. I'm not sure why that record doesn't

using dbpedia spotlight in java or scala

岁酱吖の 提交于 2019-12-21 12:22:15
问题 Does anyone know where to find a little how to on using dbpedia spotlight in java or scala? Or could anyone explain how it's done? I can't find any information on this... 回答1: The DBpedia Spotlight wiki pages would be a good place to start. And I believe the installation page has listed the most popular ways (using a jar, or set up a web service) to use the application. It includes instructions on using the Java/Scala API with your own installation, or calling the Web Service. There are some