I am able to display instances from expanding a class. The instances are from virtual graph. The class is from a model in the DB.
What I would like to see is an edge from the class to the instance indicating a "type" relationship (equivalent to an owl NamedIndividual) like this (Excuse the poor drawing):
Also, when I select the instance and choose to "See details", why am I not seeing the attributes for the instance? Like thus:
I declared main:Dan as both an instance of main:Man and main:Citizen.
The main issue is, the explorer is not showing the rdf:type relation between main:Dan and the main:Man and main:Citizen classes, even though if I click to see the details of main:Man or I right-click and navigate to expand node by instances, the knowledge graph is aware that main:Dan is indeed a main:Man and a main:Citizen.
There's another issue related to an rdfs:subClassOf OWL EL reasoning axiom not being displayed as well, but I've created another issue on that one.
Stardog Explorer is written to best support data models and data written to Stardog through Stardog Designer.
In your case, you are adding all of your data model criteria and instance data to the same graph. I suggest creating a schema graph specific to your data model and a data graph for your instance data.
I made this update by creating a new data model in Studio's Model hub and pasting in your data model (removing the declaration of Dan)
6. I expanded ex:Dan from ex:ManCitizen. All of ex:Dan's data is being displayed as expected in the detailed view. Only the rdf:type links are missing.