Create function

15 views
Skip to first unread message

MSV

unread,
Oct 20, 2020, 6:05:25 AM10/20/20
to TopBraid Suite Users
Hi,
I want to create a function and use it in sparql.
Function would take an id and verify a geaph nd return a boolean.
How can i do this?

Holger Knublauch

unread,
Oct 20, 2020, 6:40:35 AM10/20/20
to topbrai...@googlegroups.com
Hi,

the syntax of SPARQL functions defined using SHACL is described at

https://w3c.github.io/shacl/shacl-af/#functions-example

I am not sure what you mean with "verify a graph", but I guess you could
try to formulate that condition in the sh:select, or (in your case of
boolean results) using sh:ask?

Holger
Reply all
Reply to author
Forward
0 new messages