Hi Angelo,
using TBC-FE (Free Edition), SHACL-JS does work. I have tested your
previous file, fixing the www. in the label of one instance and get this:
I agree debugging JS can be difficult from a Java-based tool that goes
into the JS Nashorn engine. One way to debug things is to run the JS
queries separately. The JavaScript Query view in TBC-FE could be used
potentially:
Basically you could write your JS code there and put them into the .js
file when you are confident they work.
Other than this, feel free to send a minimal and complete example of
where you are stuck, here or on the shacl w3c mailing list.
Holger
On 20/02/2020 04:29, Angelo Frozza wrote:
Hello,
I am developing a case study and I have 3 files:
- DataGraph.ttl - data graph
- ShapeGraph.ttl - shape graph with SHACL-JS
- Functions.js - functions for SHACL-JS
I'm using the SHACL API by command line, but I'm having trouble
debugging the shapefile and the JavaScript function (I don't know
what's being passed to the variables).
Apparently, the function is being accessed, however, it does not find
the object to which the validation is applied (ex:coordinates).
Using TBCFE I tried to import the shapegraph and datagraph files for a
new project (the functions.js file is accessed online), but I was
unable to validate the data graph through the Model -> Refresh and
show problems (constraints) menu.
Can TBCFE be used with SHAC-JS?
If yes, can someone help me with a step by step?
I believe that I may have several errors in the shapefile or in the
Javascript function. My biggest difficulty is in debugging these codes.
Best regards,
Angelo
--
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 [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/33b1fe62-6984-4725-8183-1fc7efe2906d%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/33b1fe62-6984-4725-8183-1fc7efe2906d%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/6d7682b3-1b84-3a5a-0af3-b962fa84c1a9%40topquadrant.com.