dbpedia

SPARQL - get properties by label

强颜欢笑 提交于 2021-02-08 08:13:20
问题 For my current project I need to extract information from dbpedia. The only information I have is the label of the resource. To give you an example: I have the resource "car". Now I would like to get e.g. the abstract. Is there a way to solve this with SPARQL? 回答1: That other answer doesn't get you results from DBpedia, which is what you said you wanted. It's also not clear whether you want results for resources which label includes your known string, or is your known string. A couple of

how to programmatically get all available information from a Wikidata entity?

怎甘沉沦 提交于 2021-02-08 06:52:22
问题 I'm really new to wikidata. I just figured that wikidata uses a lot of reification. Suppose we want to get all information available for Obama. If we are going to do it from DBpedia, we would just use a simple query: select * where {<http://dbpedia.org/resource/Barack_Obama> ?p ?o .} This would return all the properties and values with Obama being the subject. Essentially the result is the same as this page: http://dbpedia.org/page/Barack_Obama while the query result is in a format I needed.

how to programmatically get all available information from a Wikidata entity?

*爱你&永不变心* 提交于 2021-02-08 06:51:39
问题 I'm really new to wikidata. I just figured that wikidata uses a lot of reification. Suppose we want to get all information available for Obama. If we are going to do it from DBpedia, we would just use a simple query: select * where {<http://dbpedia.org/resource/Barack_Obama> ?p ?o .} This would return all the properties and values with Obama being the subject. Essentially the result is the same as this page: http://dbpedia.org/page/Barack_Obama while the query result is in a format I needed.

how to programmatically get all available information from a Wikidata entity?

此生再无相见时 提交于 2021-02-08 06:50:17
问题 I'm really new to wikidata. I just figured that wikidata uses a lot of reification. Suppose we want to get all information available for Obama. If we are going to do it from DBpedia, we would just use a simple query: select * where {<http://dbpedia.org/resource/Barack_Obama> ?p ?o .} This would return all the properties and values with Obama being the subject. Essentially the result is the same as this page: http://dbpedia.org/page/Barack_Obama while the query result is in a format I needed.

How to use DBpedia properties to build a topic hierarchy?

佐手、 提交于 2021-02-07 08:19:59
问题 I am trying to build a topic hierarchy by following the below mentioned two DBpedia properties. skos:broader property dcterms:subject property My intention is to given the word identify the topic of it. For example, given the word; 'suport vector machine', I want to identify topics from it such as classification algorithm, machine learning etc. However, sometimes I am bit confused as how to build a topic hierarchy as I am getting more than 5 URIs for subject and many URIs for broader

How to get Dbpedia Spotlight annotations and candidates with filter sparql in python?

眉间皱痕 提交于 2021-02-05 09:36:04
问题 I have this sql in Sparql. SELECT DISTINCT ?issue WHERE { VALUES ?issue { <http://dbpedia.org/resource/Deforestation> <http://dbpedia.org/resource/Pollution> <http://dbpedia.org/resource/Wast> } ?issue ?a ?b} I encode the query on this website https://urldecode.org/ and it looks like this %20%20%20%20SELECT%20DISTINCT%20%3Fissue%20WHERE%20%7B%20%20%20%20%20VALUES%20%3Fissue%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FDeforestation

How to get Dbpedia Spotlight annotations and candidates with filter sparql in python?

倾然丶 夕夏残阳落幕 提交于 2021-02-05 09:35:20
问题 I have this sql in Sparql. SELECT DISTINCT ?issue WHERE { VALUES ?issue { <http://dbpedia.org/resource/Deforestation> <http://dbpedia.org/resource/Pollution> <http://dbpedia.org/resource/Wast> } ?issue ?a ?b} I encode the query on this website https://urldecode.org/ and it looks like this %20%20%20%20SELECT%20DISTINCT%20%3Fissue%20WHERE%20%7B%20%20%20%20%20VALUES%20%3Fissue%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FDeforestation