Hi Tim,

documentation was a bit sparse :) Anyway, these are all *control elements*, which means that they are not called as SPARQL functions but as SWP elements similar to ui:group and HTML elements. I have added a chapter to the SWP online documentation, with examples:

    http://uispin.org/ui.html#debugging

Like with any SWP element, you can also start typing, e.g.

<ui:dumpGraph * />

and then place the cursor where the * is and press CTRL-Space to get a suggestion of available arguments for that element.

HTH
Holger


On 18/03/2017 1:40, Tim Smith wrote:
Hi,

I need to use the debug functions in SWPs. However, I cannot find documentation of the syntax for these functions. They are mentioned in the TBC SPARQL Web Pages help but the syntax is not defined.

  * *ui:debug* can be used to surround code blocks that shall only be
    executed if the system is in debug mode. This can be useful to
    leave debug code in the source code without negative performance
    impact.
  * *ui:dumpGraph* can be used to save a given graph to a file in the
    workspace, so that it can be opened, queried and shared via TBC.
  * *ui:dumpResultSet* can be used to print a tabular view of a SPARQL
    result set. In TBC, if a file is open, this opens a new Window
    that can be sorted etc. In all other modes, this prints an item to
    the log, which is visible as Error Log view in TBC or from a
    server log file.
  * *ui:dumpScope* can be used to print all currently visible variable
    bindings. In TBC, if a file is open, this opens a new Window that
    can be sorted etc. In all other modes, this prints an item to the
    log, which is visible as Error Log view in TBC or from a server
    log file.

Can you tell me where to find the syntax?

Thanks,

Tim


--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [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] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Group "TopBraid 
Suite Users", the topics of which include the TopBraid Suite family of products and 
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [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.

Reply via email to