# Links and attributes not displaying between classes and their instances

**URL:** <https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853>\
**Category:** Stardog Explorer\
**Created:** [July 13, 2022, 8:22pm UTC](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853 "2022-07-13T20:22:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [October 29, 2024, 7:28pm UTC](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853/7 "2024-10-29T19:28:22Z")

</div>

Hi @Laura_Firey!!

This was brilliant! This is now solved!

## Process

### 1. I created a database **`test`**

 ![Captura de pantalla 2024-10-29 a la(s) 1.24.58 p.m.](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/8/8c8f72da637587e6ce7f4f85574904cf0c84fb0c.jpeg)

### 2. I created a model **`example`**

 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/5/525f928ebb74cac69a87661955adf9a5970d05a2.jpeg)

### 3. I copied and pasted this code

```ttl
@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:

```sparql
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

 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/d/d583deffe430d95c75983d08e55afbe9d442759f.jpeg)

### 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.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/5/5ccd945eff558e3056600ede91392c781600109d.jpeg)  
 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/6/6ac2b53977df2fcec3ee9c84e506831e889eec11.jpeg)  
 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/c/ca0607f01538e15b8c39fe9cf96cc63295dfd9f4.jpeg)

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

 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/9/92667eea65e3078ea706c76d41558d43d2d86a90.jpeg)

## Final Result

 ![Captura de pantalla 2024-10-29 a la(s) 1.23.28 p.m.](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/a/a24c39b6719c8f1c8267061c6c55c9cfbf4ad242.jpeg)

### Conclusion

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

Hope this is helpful for everyone!

---

_[View the full topic](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853)._
