W3C home > Mailing lists > Public > public-data-shapes-wg@w3.org > March 2015

Re: Human-readable error messages in an R2RML validator

From: Holger Knublauch <holger@topquadrant.com>
Date: Mon, 23 Mar 2015 11:36:31 +1000
Message-ID: <550F6E1F.50101@topquadrant.com>
CC: "public-data-shapes-wg@w3.org" <public-data-shapes-wg@w3.org>
On 3/20/2015 22:01, Richard Cyganiak wrote:
> An advantage of using templates for the validation messages, rather than producing a string message through a SPARQL expression, is that we can format the nodes nicely or make things interactive. For example, the {object} placeholder in the R2RML validator will intelligently pretty-print the node in Turtle style as a prefixed name, full URI, literal, or blank node, using the prefix mapping of the file under validation. And in a hypothetical graphical environment, URI nodes in the rendered message could be rendered using its rdfs:label, and still be made clickable.

Absolutely. Indeed we use SPIN label templates for the same purpose in 
various TopBraid user interfaces.

> Not having thought about it too much, my intuition is that instead of 
> conditional insertion, I’d prefer the option of having multiple 
> template strings on a single constraint. Only those where all 
> placeholders have bound values in the validation data structure would 
> produce a message. 

This sounds like a good idea!

I will add some TODO item to the sh:message to make sure we revisit this 
topic once there is time for such details.

Received on Monday, 23 March 2015 01:37:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:30:18 UTC