Class 未在 GraphDB 中显示

Class not displayed in GraphDB

我有以下 class:

:Foo rdf:type owl:Class ;
           rdfs:subClassOf [ rdf:type owl:Restriction ;
                             owl:onProperty :hasId ;
                             owl:someValuesFrom rdfs:Literal
                           ] .

奇怪的是,它没有出现在 Ontotext 的 GraphDB 的 Class 层次结构选项卡中。

有什么具体原因吗?

Is there any specific reason?

来自graphdb-framework-graph-explore-8.7.0.jar/dataviz-queries/getRdfClassHierarchy.sparql

PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX sesame: <http://www.openrdf.org/schema/sesame#>

SELECT ?parent ?class ?count  {
    ?class sesame:directSubClassOf ?parent .
    FILTER (isURI(?parent) && isURI(?class)
        && !strstarts(str(?parent), "http://www.w3.org/2002/07/owl#")
        && !strstarts(str(?parent), "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
        && !strstarts(str(?parent), "http://www.w3.org/2000/01/rdf-schema#")
    ).
    {
        SELECT ?class (COUNT(*) as ?count) {
            ?s a ?class
        } GROUP BY ?class
    }
} ORDER BY DESC (?count)

注意isURI(?parent),而[…] is a空白节点。