# n10s.inference.getRel

**URL:** <https://community.neo4j.com/t/n10s-inference-getrel/66968>\
**Category:** Graph Data Science / Graph Analytics\
**Created:** [March 21, 2024, 4:37pm UTC](https://community.neo4j.com/t/n10s-inference-getrel/66968 "2024-03-21T16:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marwa.elabri1](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@marwa.elabri1](https://community.neo4j.com/u/marwa.elabri1)\
**Post date:** [March 21, 2024, 4:37pm UTC](https://community.neo4j.com/t/n10s-inference-getrel/66968/1 "2024-03-21T16:37:17Z")

</div>

Hello,

I use neo4j community 5.11 and I installed the plugin neosemantics 5.11 also.  
I want to make some inference queries using OWL and neosemantics or any other inference plugins. Iwant to infer some implicit relationship using the property chains in my ontology  
**fhkb:hasGrandParent a owl:ObjectProperty ;**  
**rdfs:domain fhkb:Person ;**  
**rdfs:range fhkb:Person ;**  
**rdfs:subPropertyOf fhkb:hasAncestor ;**  
**owl:propertyChainAxiom ( fhkb:hasParent fhkb:hasParent )**  
So if I have this rule defined in my ontology and I have some hasparent relations in my data in neo4j I would be able to ask about the grand parents even it is not explicity created in my data instance. In general I want to make transitive on recusive inference. for example I have the hasParent relation and the hasBrother relation so I could conclude the hasUncle relation if I have in my ontology this property chains  
**fhkb:hasUncle a owl:ObjectProperty ;**  
**rdfs:domain fhkb:Man ;**  
**rdfs:range fhkb:Person ;**  
**owl:propertyChainAxiom ( fhkb:hasParent fhkb:HasBrother )**  
Could some one help me please to fix the problem because I already test the n10s.inference.getRel but it gives me only relations defined as **subpropertyof** in the ontology

Thnk you
