How to get notified of changes to RDF4J.SHACL_SHAPE_GRAPH through ShaclSailConnection #5145
-
Hi, We're trying to get notifications for statements added to the RDF4J.SHACL_SHAPE_GRAPH context, but various listeners are not doing the trick. We're using RDF4J 4.2.1 The code below gives notifications if we do not add anything to RDF4J.SHACL_SHAPE_GRAPH:
Output:
As soon as we touch RDF4J.SHACL_SHAPE_GRAPH the notifications go away:
Output:
Is there a way to get notified of changes to RDF4J_SHACL_SHAPE graph? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It's stored in a separate MemoryStore, which is why you're not receiving notifications. It might be possible to do something to allow you to attach to the MemoryStore, but I don't think there's anything possible right now. What's your use case btw? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. With regards to the use case, we are trying to support ShaclSail on top of our Sail implementation. We found that certain constraints, for example sh:and, are implemented as a multi-step process where all target nodes are first read into memory. This was causing some performance issues, so we wanted to catch the use of such constraints to raise a warning or error to avoid validations that don't finish in a reasonable time. |
Beta Was this translation helpful? Give feedback.
It's stored in a separate MemoryStore, which is why you're not receiving notifications.
It might be possible to do something to allow you to attach to the MemoryStore, but I don't think there's anything possible right now.
What's your use case btw?