Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 13951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>