Defining Property Chains in rdflib with owl.propertyChainAxiom

48 Views Asked by At

I am having a lot of trouble understanding how to use property chains in RDFLib. Is there a way to do this without a SPARQL Insert statement instead using Graph.add(())?

For instance, the below won't work, I didn't really expect it to.

gg.add((URIRef("http://example.org/propertyB"), owl.propertyChainAxiom, (URIRef("http://example.org/propertyB"), URIRef("http://example.org/propertyC"))))
0

There are 0 best solutions below