[英]Get properties of a given DBpedia category
I'm trying to get skos:broader
of a given DBpedia category, but it gives me a null
result. 我正在尝试获取给定DBpedia类别的
skos:broader
broader,但结果为null
。
This is my SPARQL request: 这是我的SPARQL请求:
select ?value where {
<http://dbpedia.org/page/Category:Watches> skos:broader ?value
}
The URI for DBpedia resources is http://dbpedia.org/resource/<title>
, it's not http://dbpedia.org/page/<title>
, that's the URL of the DBpedia page describing the resource. DBpedia资源的URI是
http://dbpedia.org/resource/<title>
,而不是http://dbpedia.org/page/<title>
,它是描述资源的DBpedia页面的URL。
So, your query should be: 因此,您的查询应为:
select ?value where {
<http://dbpedia.org/resource/Category:Watches> skos:broader ?value
}
Or shorter: 或更短:
select ?value where {
dbc:Watches skos:broader ?value
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.