识别概念的 DBPedia SPARQL 查询的含义?
Meaning of DBPedia SPARQL query that identifies concepts?
我不理解以下 SPARQL 查询生成的输出:
select distinct ?Concept
where {
<http://dbpedia.org/resource/Blink-182> a ?Concept
}
LIMIT 100
谁能解释一下 "concepts" 在 DBPedia 中是什么意思,这个查询的结果是什么意思?跟rdf:type有关系吗?
Does it has any connection with rdf:type
?
是 - 在 SPARQL 中,三重模式中的 a
是 rdf:type
的快捷方式,或者更准确地说,<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
.
因此,上面的查询 returns 100 个用作谓词的三元组中的对象的 IRIs,其谓词是 rdf:type
- 可以说,100 "types",或 "concepts".
您问题中的查询是
select distinct ?Concept
where {
<http://dbpedia.org/resource/Blink-182> a ?Concept
}
LIMIT 100
这个returns所有类型的<http://dbpedia.org/resource/Blink-182>
,即所有链接到<http://dbpedia.org/resource/Blink-182>
和当前DBpedia数据集中rdf:type
属性的IRI。具体来说,这些是:
<http://www.w3.org/2002/07/owl#Thing>
<http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent>
<http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson>
<http://www.wikidata.org/entity/Q215380>
<http://www.wikidata.org/entity/Q43229>
<http://dbpedia.org/ontology/Agent>
<http://dbpedia.org/ontology/Band>
<http://dbpedia.org/ontology/Group>
<http://dbpedia.org/ontology/Organisation>
<http://schema.org/MusicGroup>
<http://schema.org/Organization>
<http://umbel.org/umbel/rc/Band_MusicGroup>
<http://umbel.org/umbel/rc/Organization>
以前两个结果为例,这意味着在 DBpedia 数据集的某处,三元组
S: <http://dbpedia.org/resource/Blink-182>
P: <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
O: <http://www.w3.org/2002/07/owl#Thing>
和
S: <http://dbpedia.org/resource/Blink-182>
P: <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
O: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent>
存在。其他产生的 IRI 也是如此。
我不理解以下 SPARQL 查询生成的输出:
select distinct ?Concept
where {
<http://dbpedia.org/resource/Blink-182> a ?Concept
}
LIMIT 100
谁能解释一下 "concepts" 在 DBPedia 中是什么意思,这个查询的结果是什么意思?跟rdf:type有关系吗?
Does it has any connection with
rdf:type
?
是 - 在 SPARQL 中,三重模式中的 a
是 rdf:type
的快捷方式,或者更准确地说,<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
.
因此,上面的查询 returns 100 个用作谓词的三元组中的对象的 IRIs,其谓词是 rdf:type
- 可以说,100 "types",或 "concepts".
您问题中的查询是
select distinct ?Concept
where {
<http://dbpedia.org/resource/Blink-182> a ?Concept
}
LIMIT 100
这个returns所有类型的<http://dbpedia.org/resource/Blink-182>
,即所有链接到<http://dbpedia.org/resource/Blink-182>
和当前DBpedia数据集中rdf:type
属性的IRI。具体来说,这些是:
<http://www.w3.org/2002/07/owl#Thing>
<http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent>
<http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson>
<http://www.wikidata.org/entity/Q215380>
<http://www.wikidata.org/entity/Q43229>
<http://dbpedia.org/ontology/Agent>
<http://dbpedia.org/ontology/Band>
<http://dbpedia.org/ontology/Group>
<http://dbpedia.org/ontology/Organisation>
<http://schema.org/MusicGroup>
<http://schema.org/Organization>
<http://umbel.org/umbel/rc/Band_MusicGroup>
<http://umbel.org/umbel/rc/Organization>
以前两个结果为例,这意味着在 DBpedia 数据集的某处,三元组
S: <http://dbpedia.org/resource/Blink-182>
P: <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
O: <http://www.w3.org/2002/07/owl#Thing>
和
S: <http://dbpedia.org/resource/Blink-182>
P: <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
O: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent>
存在。其他产生的 IRI 也是如此。