Links and attributes not displaying between classes and their instances

Hi @Laura_Firey!!

This was brilliant! This is now solved!

Process

1. I created a database test

2. I created a model example

3. I copied and pasted this code

@prefix ex: <http://www.example.com/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix so: <https://schema.org/> .
@prefix stardog: <tag:stardog:api:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://api.stardog.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

foaf:Person a owl:Class .

foaf:gender a owl:DatatypeProperty .

<http://www.example.com/> a owl:Ontology .

ex:Man a owl:Class ;
    rdfs:subClassOf foaf:Person ;
    owl:equivalentClass [
        a owl:Class ;
        owl:intersectionOf ( foaf:Person [
            a owl:Restriction ;
            owl:hasValue "man" ;
            owl:onProperty foaf:gender
        ] )
    ] .

ex:Citizen a owl:Class ;
    rdfs:subClassOf foaf:Person .

ex:ManCitizen a owl:Class ;
    owl:equivalentClass [
        a owl:Class ;
        owl:intersectionOf ( ex:Citizen ex:Man )
    ] .

4. I performed this SPARQL query:

prefix ex: <http://www.example.com/>
INSERT DATA {
    GRAPH <http://www.example.com/data#> {
        ex:Dan a ex:ManCitizen , owl:NamedIndividual .
    } 
}

5. I opened explorer. This was the initial view

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.



7. I expanded all of ex:Dan's relationships, and voila!

Final Result

Conclusion

Thank you so much @Anvitha_Anumolu, @Laura_Firey and @Paul_Ambro!

Hope this is helpful for everyone!

2 Likes