Hello Holger,
I was able to validate shapes using the SHACL core in TBCFE.
Now I'm looking for some examples of javascript code that can be executed
in the Javascript query view.
At first, I need to read the value of the $ this variable, then proceed
with the test.
The syntax does not seem to be exactly as it will be in the function.js
file.
I'm relying on this example code that you already know.
====
function validateGermanLabel($this) {
var results = [];
var p = TermFactory.namedNode("http://www.example.org#germanLabel");
var s = $data.find($this, p, null);
for(var t = s.next(); t; t = s.next()) {
var object = t.object;
if(!object.isLiteral() || !object.language.startsWith("de")) {
results.push({
value : object
});
}
}
return results;
}
====
--
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/CANAF59LUbHXEO5yQ%2BdDk90nMw8CT_WN3hu%3DsVsJTb%2Bdu2CFdxg%40mail.gmail.com.