dbpedia

Get a gender of a particular person in SPARQL…?

一世执手 提交于 2019-12-01 11:58:30
I am very new to these topics. I read the sparql documents and I am trying to get a gender of a particular person. Say for example I want Larry_Page gender . I was able to getting all the properties of lary_page (Based on the following page: http://dbpedia.org/resource/Larry_Page ) but it doesn't have any property called Gender. So how can I get the gender of a particular person...??? Can any one tell me the answer please. O. R. Mapper DBpedia is not a particularly complete dataset. It is well possible that for the person you are looking at, there simply is no gender property of any kind

How to form dbPedia iSPARQL query (for wikipedia content)

你。 提交于 2019-12-01 10:41:09
问题 Say I need to fetch content from wikipedia about all mountains. My target is to show initial paragraph, and an image from respective article (eg. Monte Rosa and Vincent Pyramid. I came to know about dbpedia, and with some research got to find that it provides live queries into wiki database directly. I have 2 questions: 1 - I am finding it difficult how could I formulate my queries. I can't play around iSPARQL. I tried following query but it throws error saying invalid xml. SELECT DISTINCT

Get a gender of a particular person in SPARQL…?

被刻印的时光 ゝ 提交于 2019-12-01 09:45:26
问题 I am very new to these topics. I read the sparql documents and I am trying to get a gender of a particular person. Say for example I want Larry_Page gender . I was able to getting all the properties of lary_page (Based on the following page: http://dbpedia.org/resource/Larry_Page) but it doesn't have any property called Gender. So how can I get the gender of a particular person...??? Can any one tell me the answer please. 回答1: DBpedia is not a particularly complete dataset. It is well

dbpedia fetch entitites in language other than english

Deadly 提交于 2019-12-01 09:11:43
I'm trying to extract entity dictionary contains person name etc. from dbpedia using sparql. PREFIX owl: <http://dbpedia.org/ontology/> PREFIX dbpprop: <http://dbpedia.org/property/> SELECT ?name WHERE { ?person a owl:Person . ?person dbpprop:name ?name . FILTER(lang(?name) = "en") } The query above did succeed, but when I change the language name to fr , there is nothing to fetch. How can I fetch names in other languages? Moreover, why can't I filter language using query below? SELECT ?name WHERE { ?person a owl:Person . ?person dbpprop:language "English" ?person dbpprop:name ?name . } //

How to differentiate between a Thing and an inanimate object with SPARQL

僤鯓⒐⒋嵵緔 提交于 2019-12-01 09:03:03
Using SPARQL, I can get all related info about some resource quite easily, but I'm having a hard time figuring out how to actually differentiate between things and things -- in which Thing is the super class of all classes, and things that are inanimate objects, like a cup, spoon, pencil, etc. For example, here are a few innanimate objects in DBPedia: Fork: http://dbpedia.org/page/Fork Jar: http://dbpedia.org/page/Jar Envelope: http://dbpedia.org/page/Envelope Baseball glove: http://dbpedia.org/page/Baseball_glove Screwdriver: http://dbpedia.org/page/Screwdriver Here's the thing -- I know that

dbpedia fetch entitites in language other than english

点点圈 提交于 2019-12-01 07:30:19
问题 I'm trying to extract entity dictionary contains person name etc. from dbpedia using sparql. PREFIX owl: <http://dbpedia.org/ontology/> PREFIX dbpprop: <http://dbpedia.org/property/> SELECT ?name WHERE { ?person a owl:Person . ?person dbpprop:name ?name . FILTER(lang(?name) = "en") } The query above did succeed, but when I change the language name to fr , there is nothing to fetch. How can I fetch names in other languages? Moreover, why can't I filter language using query below? SELECT ?name

How to differentiate between a Thing and an inanimate object with SPARQL

守給你的承諾、 提交于 2019-12-01 06:53:44
问题 Using SPARQL, I can get all related info about some resource quite easily, but I'm having a hard time figuring out how to actually differentiate between things and things -- in which Thing is the super class of all classes, and things that are inanimate objects, like a cup, spoon, pencil, etc. For example, here are a few innanimate objects in DBPedia: Fork: http://dbpedia.org/page/Fork Jar: http://dbpedia.org/page/Jar Envelope: http://dbpedia.org/page/Envelope Baseball glove: http://dbpedia

Jena Sparql and construct

天大地大妈咪最大 提交于 2019-12-01 06:46:16
CONSTRUCT is an alternative SPARQL result clause to SELECT . Instead of returning a table of result values, CONSTRUCT returns an RDF graph. For instance, running this query in the following Java code produces an HttpException: 406 Unacceptable . But if instead of the CONSTRUCT block, I choose SELECT ?x , it's just fine. Does Jena support CONSTRUCT , and if so, how? Both queries are acceptable to the DBpedia endpoint . PREFIX : <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org/ontology/> CONSTRUCT { :France onto:anthem ?x } WHERE { :France onto:anthem ?x . } Query query =

Jena Sparql and construct

南笙酒味 提交于 2019-12-01 04:51:39
问题 CONSTRUCT is an alternative SPARQL result clause to SELECT . Instead of returning a table of result values, CONSTRUCT returns an RDF graph. For instance, running this query in the following Java code produces an HttpException: 406 Unacceptable . But if instead of the CONSTRUCT block, I choose SELECT ?x , it's just fine. Does Jena support CONSTRUCT , and if so, how? Both queries are acceptable to the DBpedia endpoint. PREFIX : <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org

How to concatenate a list of values in sparql?

こ雲淡風輕ζ 提交于 2019-11-30 20:11:03
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#>PREFIX foaf: <http://xmlns.com/foaf/0.1/>PREFIX dbpprop: <http://dbpedia.org/property/> PREFIX dbprop: