Writing Shapes Graph (SHACL-SPARQL) in python using rdflib, pyshacl

157 Views Asked by At

I am trying to validate a data graph against a shapes graph using pyshacl, which is a Python library for working with SHACL. I have the data graph stored as a '.ttl' file in my system, which I have imported for validation. However, I need to develop the shapes graph on my own. Can anyone suggest how to develop a SHACL-SPARQL shapes graph in Python? I went through the documentation of rdflib, but to my understanding, it provides only the capability to add the triples and query them. However, I could not find anything related to creating SHACL-SPARQL shapes graph, which needs a combination of triples as well as SPARQL query.

Thanks.

0

There are 0 best solutions below