dbpedia

Getting DBPedia Infobox categories

岁酱吖の 提交于 2019-11-30 13:53:39
I'm currently looking for a way to query DBPedia's Infobox Onyology database via the SPARQL endpoint to get a list of the classes, the subclasses of a selected class, and the properties of a given class. As far as I've been able to find, you either need to know the property that you are looking for or search for something specific - all the examples I've found seem predicated on the idea that you would want to search for something specific (like populations of cities above a certain elevation, etc), whereas I'd like to build something where I can effectively "browse" the categories. For

Get all Wikipedia Infobox Templates and all Pages using them

旧巷老猫 提交于 2019-11-30 12:43:22
Given a Wikipedia page like Wikipedia: Stack Overflow there are often Infoboxes (mostly on the right hand at the top of the page). Example screenshot: DBPedia lists all these attributes as RDF triples. You can see the example at DBPedia: Stack Overflow . There you see the property dbpprop:wikiPageUsesTemplate with the value dbpedia:Template:Infobox_website which is interesting. I want to know which Wikipedia pages use this template. How can i do that and list all pages which use the Infobox_website template? Preferably with a SPARQL query but i am open to other easy solutions. Next thing is a

How get DBpedia data in a specific language?

限于喜欢 提交于 2019-11-30 12:18:50
i tried this request http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?QueryClass=film&QueryString=transformers&MaxHits=1 but if i want to retrieve info in italian language? it there another service (similar this) that can? You could use dbpedia SPARQL endpoint to run query. For example: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?film ?description ?film_name WHERE { ?film rdf:type <http://dbpedia.org/ontology/Film>. ?film foaf:name ?film_name. ?film rdfs:comment

How to concatenate a list of values in sparql?

两盒软妹~` 提交于 2019-11-30 03:29:42
问题 Suppose I have a uri http://dbpedia.org/page/Manmohan_Singh now he has a list of years in his tag dbpprop:years. When I write a query like PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dbpedia: <http://dbpedia.org/resource/>PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>PREFIX category: <http://dbpedia.org/resource/Category:> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#

Getting DBPedia Infobox categories

谁都会走 提交于 2019-11-29 19:35:16
问题 I'm currently looking for a way to query DBPedia's Infobox Onyology database via the SPARQL endpoint to get a list of the classes, the subclasses of a selected class, and the properties of a given class. As far as I've been able to find, you either need to know the property that you are looking for or search for something specific - all the examples I've found seem predicated on the idea that you would want to search for something specific (like populations of cities above a certain elevation

Get all Wikipedia Infobox Templates and all Pages using them

纵然是瞬间 提交于 2019-11-29 18:19:00
问题 Given a Wikipedia page like Wikipedia: Stack Overflow there are often Infoboxes (mostly on the right hand at the top of the page). Example screenshot: DBPedia lists all these attributes as RDF triples. You can see the example at DBPedia: Stack Overflow. There you see the property dbpprop:wikiPageUsesTemplate with the value dbpedia:Template:Infobox_website which is interesting. I want to know which Wikipedia pages use this template. How can i do that and list all pages which use the Infobox

Getting hyperlinks of a Wikipedia page using DBpedia

安稳与你 提交于 2019-11-29 12:51:19
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:Hyperglycemia ?prop dbr:Diabetes_mellitus } } But the answer is null. I get nothing as an answer. Is

Nested queries in sparql with limits

人走茶凉 提交于 2019-11-29 11:18:51
I currently trying to create a sample of the dbpedia data for a use case i have to present. My main goal is to ask for 5 five paintings per european artist (and i want to present only two artists per country at the beginning). The query without the limits is as follows. PREFIX dbpedia-owl:<http://dbpedia.org/ontology/> PREFIX category: <http://dbpedia.org/resource/Category:> PREFIX dcterms:<http://purl.org/dc/terms/> PREFIX prop:<http://dbpedia.org/property/> PREFIX geonames:<http://sws.geonames.org/> PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> PREFIX dbpedia:<http://dbpedia.org

Why there is differences in the number of links connected to the same property?

半城伤御伤魂 提交于 2019-11-29 08:41:34
I have noticed that there are a different number of triples using the same property (e.g., isbn ) about a Book, but coming from different sources. For instance, Total http://dbpedia.org/property/isbn links are 20885 while Total http://dbpedia.org/ontology/isbn links are 21132. Why do these numbers differ? I want to know which is suitable for good information gain. Joshua Taylor Although they have similar names, and represent roughly the same information, the properties are not the same. One is “http&colon;//dbpedia.org/ property /isbn” and the other is “http&colon;//dbpedia.org/ ontology /isbn

To use iSPARQL to compare values using similarity measures

≯℡__Kan透↙ 提交于 2019-11-29 08:04:56
I have a question for you. I would like to write a query that retrieves the values ​​that are similar (given a function of similarity, such as Lev) to a given string "Londn" to make the comparison with the predicate "RDFS:label" of DBPedia. In Output, for example, I would like to get the value of "London". I have read that a usable approach might be to use iSPARQL ("Imprecise SPARQL") although it is not very widely used in the literature. Can I use iSPARQL or is there some SPARQL approach to perform the same operations? Short Version — You can do some of this in pure SPARQL You can use a query