Richard, As per the code, it appears that triples created by inference from sh:rule are added into the data_graph, which makes sense, since you can evaluate the other rules against the inferred content. In SPARQLRule:
data_graph = clone_graph(g, target_graph=data_graph) and in TripleRule: for i in iter(new_triples): data_graph.add(i) I believe this makes the new triples not accessible from the command line at this time, but if you invoke pySHACL from your own main, you should be able to inspect the data graph you passed in after running and determine the new triples introduced. On Thu, May 20, 2021 at 11:55 AM richarddi...@gmail.com < richarddijkstra1...@gmail.com> wrote: > Using shacl-af with pyshacl -a I want to materialize the inferred > triples using shacl-rules. > It is however not clear to me in what result the triples are collected. > Any hint is appreciated. > > kind regards, Richard > > -- > http://github.com/RDFLib > --- > You received this message because you are subscribed to the Google Groups > "rdflib-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rdflib-dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rdflib-dev/6cf11681-7896-472c-8237-7a951548e6d0n%40googlegroups.com > <https://groups.google.com/d/msgid/rdflib-dev/6cf11681-7896-472c-8237-7a951548e6d0n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- http://github.com/RDFLib --- You received this message because you are subscribed to the Google Groups "rdflib-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/CAMNphsqF4kO6jM3xNrYmXHqmM-zVC3f0BLi4JkET2maAvRVw5Q%40mail.gmail.com.