Hi Alex,

MultiFunctions can be called from SPARQL queries using the Jena Property 
Functions (aka magic properties). This link code between the SPARQL engine and 
MultiFunctions is here:

https://github.com/TopQuadrant/shacl/blob/d47c424897a06a22a3f40b19f1a52788c19f953f/src/main/java/org/topbraid/shacl/multifunctions/MultiFunctionPropertyFunction.java#L56
 
<https://github.com/TopQuadrant/shacl/blob/d47c424897a06a22a3f40b19f1a52788c19f953f/src/main/java/org/topbraid/shacl/multifunctions/MultiFunctionPropertyFunction.java#L56>

This will use the current active graph from the surrounding SPARQL query.

You can also invoke the MultiFunctions elsewhere, e.g. in your own Java code. 
We are also exposing some of them as web services in EDG.

Not sure if this answers your question?

Holger


> On 12 Feb 2022, at 5:10 am, Alex Ryu <a...@schemaapp.com> wrote:
> 
> Hi there,
> 
> I was looking into using SPARQLMultiFunction and I just wanted to get a 
> better grasp of how it works. So at line 71 
> <https://github.com/TopQuadrant/shacl/blob/d47c424897a06a22a3f40b19f1a52788c19f953f/src/main/java/org/topbraid/shacl/multifunctions/SPARQLMultiFunction.java#L71>
>  of the execute method, I saw that when activeGraph is null, by default an 
> in-memory graph will be delivered. My goal is to run SPARQLMultiFunction 
> against an external database and not be executed in-memory.
> 
> For the activeGraph and dataset parameters in the execute method, what 
> classes are recommended for this use case? Is there any documentation or 
> examples of SPARQLMultiFunction being used like this that I'd be able to 
> reference?
> I looked around and I wasn't able to find any examples so I might have 
> overlooked a section. Please let me know if there's any other information I 
> can provide that would be helpful or if I should rephrase anything 
> differently.
> 
> Thank you.
> Regards,
> 
> Alex
> 
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/d3142de0-54d2-42e3-8051-abdb072eebc4n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/d3142de0-54d2-42e3-8051-abdb072eebc4n%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 topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/BBD4E94A-47BD-42DB-B86B-58F7E50FDCC1%40topquadrant.com.

Reply via email to