Re: Starting with SHACL-JS

> Just clarify, SHACL-JS usually refers to https://www.w3.org/TR/shacl-js/

> which is the ability to define and execute constraints in JavaScript.

Yes, that's right!

> SHACL-JS is not about JavaScript-based implementations of a SHACL

> engine, in case these topics get mixed.

Yes, that's right!

I was using Apache JENA to validate shapes with SHACL-SPARQL.
Now I want to make the same shapes, but using SHACL-JS.
It is easier for me to create JavaScript functions than SPARQL.

> SHACL-JS is fully implemented by https://github.com/TopQuadrant/shacl

From the address indicated, I installed the shacl on my mac book.

> There is also a partial implementation of SHACL-JS in JavaScript itself, see
> https://shacl.org/playground/

As I understand it. SHACL Playground does not read JavaScript files?

To test, I copied example 6.1 from the SHACL JavaScript Extensions
website (https://www.w3.org/TR/shacl-js/).
Three files were created (file with JavaScript function; Data graph
and Shape Graph).

The file with the Javascript function I put in a folder under http://localhost/.

And I run the following command line:

sh shaclvalidate.sh -datafile SHACL-JS-W3C-DataGraph.ttl -shapesfile
SHACL-JS-W3C-ShapeGraph.ttl

Apparently, SHACL is running the validation, but in the end, the
report appears without errors.

However, there is an instance of the Data Graph with an error, which
is not reported.

I am not able to identify where the problem may be or if the
JavaScript function is actually being executed.

Hugs,

-----
Prof. Angelo Augusto Frozza, M.Sc.
angelo.frozza@ifc.edu.br <frozza@ifc.edu.br>
Doutorando PPGCC/UFSC

Professor EBTT
IFC - Instituto Federal Catarinense - Campus
Camboriú
http://about.me/tilfrozza

*Sugestões de leitura:*
*NoSQL DAiLY - https://paper.li/TilFrozza/1460718203
<https://paper.li/TilFrozza/1460718203>*
*STARTUP NEWS - http://paper.li/TilFrozza/1392231760
<http://paper.li/TilFrozza/1392231760>*
*A CAVERNA DO MESTRE - http://paper.li/TilFrozza/1392230815
<http://paper.li/TilFrozza/1392230815>*
*RESUMO DA SEMANA - http://paper.li/TilFrozza/1392231274
<http://paper.li/TilFrozza/1392231274>*

Received on Friday, 14 February 2020 16:36:13 UTC