Holger,
Thanks for the example. My problem is that TBL is being called by a
system that expects to issue SPARQL queries to a SPARQL endpoint. So, for your
example, it might be called like this:
SELECT ?result
WHERE {
BIND (<http://example.org/returnSPARQLTest#Function_1>() AS ?result)
}
…which gives the result I was seeing before – the answer shows up in the TBC
pane, but not returned to the calling routine. Any thoughts?
- Steve
Steven R. Ray, Ph.D.
Distinguished Research Fellow
Carnegie Mellon University
NASA Research Park
Building 23 (MS 23-11)
P.O. Box 1
Moffett Field, CA 94305-0001
Email: [email protected]
Phone: (650) 587-3780
Cell: (202) 316-6481
Skype: steverayconsulting
cid:[email protected]
From: [email protected] [mailto:[email protected]]
On Behalf Of Holger Knublauch
Sent: Wednesday, August 23, 2017 3:40 PM
To: [email protected]
Subject: Re: [topbraid-users] Not clear how to use sml:ReturnSPARQLResults
module
Hi Steve,
it depends on how you invoke this. In order to have it appear in a browser, you
need to wrap the script into a SPARQLMotion function, as shown in the attached
file. Then call it using
http://localhost:8083/tbl/sparqlmotion?id=returnSPARQLTest:Function_1
If you just execute the module from the graph view in TBC, the result will be
displayed in a TBC window.
HTH
Holger
On 24/08/2017 4:45, Steve Ray (CMU) wrote:
Hi,
I have a SPARQLMotion script that runs fine, which ends with
sml:ReturnText. I can invoke it from a browser using the SPARQL endpoint at
localhost and it indeed sends me back the text string that is hard-coded in the
sml:ReturnText module.
I made a very similar script that differs only in that it ends with
sml:ReturnSPARQLResults, where I was hoping/expecting that when invoking it, I
would get a JSON-serialized result of a SELECT query where I am requesting the
value of three variables. When I run it, the three variables show up in a TBC
pane, but I’m not getting the results at the browser. Am I thinking of this
wrong?
- Steve
Steven R. Ray, Ph.D.
Distinguished Research Fellow
Carnegie Mellon University
NASA Research Park
Building 23 (MS 23-11)
P.O. Box 1
Moffett Field, CA 94305-0001
Email: [email protected]
Phone: (650) 587-3780
Cell: (202) 316-6481
Skype: steverayconsulting
cid:[email protected]
--
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].
For more options, visit https://groups.google.com/d/optout.
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Virus-free.
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
www.avg.com
--
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].
For more options, visit https://groups.google.com/d/optout.
--
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].
For more options, visit https://groups.google.com/d/optout.