skos broader and narrow inverse not working

风流意气都作罢 提交于 2021-02-11 14:47:29

问题


I have setup GraphDB SE trial version and trying out inference functionality with OWL2-RL ruleset. I have built a simple SKOS knowledge with a single broader relationship. Some how, when I try to query for narrower relationship am not getting any results. Am I going wrong in the usage ?

Insertion:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

INSERT DATA {  
        ex:mammals rdf:type skos:Concept;
                   skos:prefLabel "mammals"@en;

        ex:animals rdf:type skos:Concept;
                   skos:prefLabel "animals"@en;
                   skos:broader ex:mammals .
}

Query:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

select * where {
    ?s skos:narrower ?o .
}

In the query result I don't see any response. Shouldn't it return below result - ex:mammals skos:narrower ex:animals

来源:https://stackoverflow.com/questions/60751054/skos-broader-and-narrow-inverse-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!