Sparql 结果不包含指定的 属性 包含在结果中

Sparql result not containing specified property included in results

我有这个问题

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbpedia: <http://dbpedia.org/>
PREFIX dbpedia_property: <http://dbpedia.org/property/>
PREFIX dbpedia_ontology: <http://dbpedia.org/ontology/>
PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX schema: <http://schema.org/>

SELECT * WHERE
{
    {
        SELECT ?school
        WHERE
        {
            ?school rdf:type yago:EducationalInstitution108276342 .
            FILTER ( contains(str(?school), "Australia") )
        }
        ORDER BY ?school
    }
}

不要介意额外的括号,因为这是更大查询的一部分。 我想知道的是为什么 http://dbpedia.org/page/Academic_structure_of_the_Australian_National_University is included in the results since I specify rdf:type yago:EducationalInstitution108276342. This property is not included in the resource page. I'm using this endpoint: http://dbpedia.org/sparql

看起来像是 Pubby Web 界面或用于获取将要显示的数据的查询中的错误。

查询

SELECT * WHERE{
<http://dbpedia.org/resource/Academic_Structure_of_the_Australian_National_University> ?p ?o
}

returns 必要的 rdf:type 语句。

另一件奇怪的事情是,即使是 SPARQL DESCRIBE 查询也不会 return rdd:type 三元组:

DESCRIBE <http://dbpedia.org/resource/Academic_Structure_of_the_Australian_National_University>

尽管规范中并未真正定义 DESCIBE,但用户肯定会期望这些三元组。也许这种查询用于检索资源网页的数据。