Hi Michael,

there is a built-in SPARQL function http://topbraidlive.org/uix#getTBVersion that returns the version number string.

I am not sure what your context is, so here are two options:

1) If you are on an SWP page or a SPARQLMotion script that produces the output, you can simply call this function directly, e.g.

<span class="version">Version {= &lt;http://topbraidlive.org/uix#getTBVersion&gt;() }</span>

2) If you need to execute this as a separate server callback, you can wrap the function into a SPIN template with the following spin:body:

SELECT ?version
WHERE {
    BIND (<http://topbraidlive.org/uix#getTBVersion>() AS ?version) .
}

Then use the tbl/template servlet to call the SPIN template - it will return a SPARQL result set in a format such as JSON.

Let us know if you need further details.

BTW the function is undocumented as we did not anticipate anyone would need this ;)

HTH
Holger


On 10/8/2013 23:11, Michael Klotz wrote:
Hi,

I have been trying to find (in the TopBraid documentation) whether or not it comes with an out-of-the-box solution for retrieving the TB version number. Currently, I am simply hard-coding the value into a script and retrieving it that way, but I would like to get it dynamically from a server property or something like that... Could someone please offer a suggestions on the best way to solve this problem?

Thanks,
Mike
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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/groups/opt_out.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL 
Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
--- 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/groups/opt_out.

Reply via email to