There is a small number of SHACL Core constraints that could be handled
in a streaming manner, e.g. sh:datatype, sh:min/max/Ex/Inclusive,
sh:min/maxLength, sh:nodeKind, sh:pattern. But for most others, even
sh:class, the triples would need to be in a certain order and remain
accessible through the Graph to make sense. For example, for sh:class
the system first needs to have all rdfs:subClassOf triples.
Holger
On 10/17/2020 2:28 AM, Martynas Jusevičius wrote:
Hi,
we're moving more and more RDF I/O to streaming implementations, and
that doesn't work well with another important feature -- constraint
validation.
I'm wondering if it is possible, even in theory, to validate streaming
RDF data, e.g. with SPARQL/SPIN/SHACL? My intuition says no, or maybe
with some severe restrictions.
The XSLT 3.0 spec includes some advanced streamability analysis that
is somewhat related: https://www.w3.org/TR/xslt-30/#streamability
But then again, XML trees are not RDF graphs...
Martynas