dbpedia SPARQL查询以查找艺术家属性 [英] dbpedia SPARQL query for finding artist properties

查看:76
本文介绍了dbpedia SPARQL查询以查找艺术家属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图通过DBPedia和SPARQL查询语言来获取关于艺术家的详细信息,但是,就我的理解而言,如何获得某些信息似乎几乎是不可能的。

I'm trying to get details about an artist via DBPedia and the SPARQL query language, however, it seems almost impossible (with my understanding) of how to get certain pieces of information.

我正试图找一位艺术家并获取诸如故乡之类的信息。我猜查询应该类似于以下内容:

I'm trying to get an Artist and pull information such as their Hometown. I'm guessing the query should be something similar to that of:

SELECT ?c WHERE {
  ?b <http://dbpedia.org/property/Artist> <http://dbpedia.org/resource/Arctic_Monkeys>.
  ?b <http://www.w3.org/2002/07/owl#ObjectProperty> <http://dbpedia.org/ontology/hometown>.
  ?b rdfs:label ?c.
}

如果有人可以启发我如何去做,那就太了不起了。

If anyone could enlighten me to how it should be done, that would be amazing.

我一直在尝试以下查询:

I've been trying out the queries at:

http://dbpedia.org/sparql

推荐答案

如果要查找其家乡的标签,请尝试以下操作:

If you want to find the label of their hometown, try this:

SELECT ?hometownLabel WHERE {
  <http://dbpedia.org/resource/Arctic_Monkeys> <http://dbpedia.org/ontology/hometown> ?hometown .
  ?hometown <http://www.w3.org/2000/01/rdf-schema#label> ?hometownLabel .
}

这篇关于dbpedia SPARQL查询以查找艺术家属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆