Running SPARQLMultiFunction against external database

30 views
Skip to first unread message

Alex Ryu

unread,
Feb 11, 2022, 2:17:04 PM2/11/22
to TopBraid Suite Users
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 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

Message has been deleted
Message has been deleted

Holger Knublauch

unread,
Feb 11, 2022, 4:14:26 PM2/11/22
to topbrai...@googlegroups.com
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:


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


--
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-user...@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.

Reply all
Reply to author
Forward
0 new messages