The validation results vocabulary is indeed what TopBraid's SHACL engine
produces and what every other validation engine will also produce. So it
will be interoperable. Each validation result instance usually carries
an sh:message as described here
http://w3c.github.io/data-shapes/shacl/#results-message
BTW I mixed up the names of the SM module. sml:CheckConstraints version
bundled with 5.1 uses the SPIN violations report format. In order to
maintain backward compatibility for existing scripts, 5.2 introduces
sml:ValidateGraph, which produces the SHACL results format. Anyway,
you'll need to wait for the beta releases to try this out.
Holger
On 3/08/2016 2:19, Jack Hodges wrote:
Holger,
I will look at sml:CheckConstraints for pointers. The documentation
suggests that there is a Validation Result set that can accessed for
whatever purpose. Here is the quote: "SHACL includes an RDF vocabulary
to represent validation results
<https://www.w3.org/TR/shacl/#dfn-validation-results> together with
structural information that may provide guidance on how to identify or
fix a violation."This information is followed by an example that
includes various aspects associated with the ConstraintViolation
(e.g., sh:subject, sh:predicate, sh:object, sh:message, etc.). In
fact, all I am interested in right now, are the sh:message values from
the ConstraintViolation and I want to display them in a web page as a
result of a REST call. Is there an instance of ConstraintViolation
created by the validator that organizes the various sh: properties? I
am looking at the sh: prefix related classes and find something called
sh:SPARQLConstraint whose instances appear to be the unevaluated
sh:messages associated with sh:constraints defined on classes. But
this is not what I am looking for. I am looking for the actual
violations based on the instances. There is nothing in the vocabulary
associated with these classes, nor would I expect to find any, but
perhaps there is a separate graph that organizes constraint violations?
The point is that SHACL constraints are introduced [at least partly]
for the purpose of tracking violations but I am not seeing the
mechanism that provides access to these constraint violations outside
of Topbraid Composer and they are only going to provide general value
if they [also] work outside of the TBC ecosystem.
Jack
On Monday, August 1, 2016 at 4:14:26 PM UTC-7, Holger Knublauch wrote:
Inside of TopBraid products, SHACL (and SPIN) validation results
can be produced with the SPARQLMotion module sml:CheckConstraints.
The complexity of the results - a graph with a variety of
information - means that no single SPARQL function or magic
property could do this job.
Programmatically, the SHACL API provides the class
ModelConstraintValidator.
What would you like to do with the validation results, and which
feature do you think is missing?
Holger
On 2/08/2016 8:08, Jack Hodges wrote:
I need to run a SHACL validation report outside of TBCME. I
recall seeing in one of the various forms of documentation that
you can do this (maybe a SPIN function that returns all the
Validation Result entries?) but I can no longer find it. Surely
that is what is happening within TBC to get the validation
report, but what is the call? Please direct me to the
documentation and I'll figure it out from there, but the answer
would also be appreciated. Thank you!
--
You received this message because you are subscribed to the
Google Group "TopBraid Suite Users", the topics of which include
the TopBraid Suite family of products and its base technologies
such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbrai...@googlegroups.com
<javascript:>
---
You received this message because you are subscribed to the
Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to topbraid-user...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include the TopBraid
Suite family of products and its base technologies such as
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.com
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to topbraid-users+unsubscr...@googlegroups.com
<mailto:topbraid-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Group "TopBraid
Suite Users", the topics of which include the TopBraid Suite family of products and
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.