Search code examples
sparqlgraphdb

Visualizing superclass types in GraphDB's visual graph


I have the following graph:

:Bar rdf:type owl:Class .

:Foo rdf:type owl:Class ;
     rdfs:subClassOf :Bar .

:my_foo a :Foo .

When I check the info panel for :my_foo in GraphDB's visual graph, it displays just the badge for the class :Foo and not for the superclass :Bar. Is there a way to have the complete list of types in such a panel?


Solution

  • The sesame:directType predicate is used, when content for this info panel is retrieved.

    Resource I is a direct type of T if:

    1. I is of type T and
    2. There is no class U (not equal to T) such that:
      a. U is a subclass of T, and
      b. I is of type U.

    Source

    In the describeResource.sparql file within the graphdb-framework-graph-explore-8.2.0.jar archive, replace sesame:directType with rdf:type.

    Info panel