Re: ValidationResult for missing data?

Hello

2017-11-30 11:40 GMT+01:00 Florian Kleedorfer <florian.kleedorfer@austria.fm
>:

> Hi,
>
> We're looking at using SHACL for checking if a data graph contains the
> data we expect, hoping that the ValidationResults can be reported to a GUI
> that allows users to fill in the missing data or correct wrong data. This
> report is why we like shacl: it tells you what is wrong/missing. When
> valid, the data covered by the shapes graph should be extracted from the
> data graph. We are facing two problems that make us question if SHACL is
> the right tool for this:
>
> 1. If the data graph does not contain any nodes that are identified as
> focus nodes, there are no validation results. That is, the case in which
> the data does not look at all like what we expect is indistinguishable from
> the case in which the data is completely valid.
>
>
I had exactly the same requirement :
https://github.com/TopQuadrant/shacl/issues/6
I think it is a rather common requirement.
I ended up executing queries constructed from the definitions of the target
of each shape to determine whether the shape actually "matched" some data :
look at
https://bitbucket.org/tfrancart/sparna/src/bdbdd12e98f1573a09962cba9383bc01eb44be93/eu.europa.publications/eli/validator/shacl-validator/src/main/java/eu/europa/publications/shacl/validator/ShapeTargetValidator.java?at=shacl&fileviewer=file-view-default

Cheers
Thomas


> 2. There seems to be no way to determine which part of the data graph (ie,
> what triples or what nodes) are covered by the shapes and found valid. If
> the data graph contains additional data not covered by any of the shapes,
> we don't have an easy way of stripping that data.
>


>
> Is there something we are missing? Are these unusual requirements? Are
> there best practices know to deal with these requirements?
>
> Thank you for your support!
>
> Best regards,
> Florian
>
>


-- 

*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin : fr.linkedin.com/in/
thomasfrancart
tel :  +33 (0)6.71.11.25.97 <+33%206%2071%2011%2025%2097>, skype :
francartthomas

Received on Thursday, 30 November 2017 14:40:24 UTC