Thank you Boris for the hint. 

Inferences going into the datagraph makes sense indeed. However attached 
example does not give the wanted result.
I will check this in the weekend again.

btw I am running on Windows10 using RDFlib 5.0.0

Kind regards,
Richard

On Thursday, May 20, 2021 at 7:50:17 PM UTC+2 Boris Pelakh wrote:

> 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 [email protected] <
> [email protected]> 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 [email protected].
>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/aea94025-d71c-4e08-b92e-4815eea22c37n%40googlegroups.com.

<<attachment: testpyshacl.zip>>

Reply via email to