For clarification, I am currently building this functionality within a 
SPARQL Web Page and have read through http://uispin.org/swon.html and 
http://uispin.org/ui.html.  I tried defining a ui:resultSet property within 
a swon:Object element but that property is not allowed within that element. 
 I know that property is allowed within the ui:forEach element but I am 
only expecting a single JSON object, not an array of JSON objects which 
seems to be the use for the ui:forEach element.  swon:RSObject does most of 
what I want (returning a single JSON object from a result set) but the 
problem here is I can't define a Name-Value pair (a swon:Value element) for 
that element as the names are taken directly from the result set.  Ideally, 
what I am looking for is an element where I can define a result set from a 
SPARQL query that will only return a single JSON object (like the 
swom:RSObject element) and then define Name-Value pairs (akin to the 
swon:Value element) for that result set.  Does such an element exist, what 
is it and where did I miss it?

On Monday, August 18, 2014 5:33:43 PM UTC-4, Dejan Veselinovic wrote:
>
> As the subject states, I want to return only a single JSON object, not an 
> array of JSON objects or a single JSON object where one of the values is 
> another JSON object.  This has to be done from a SINGLE SPARQL query being 
> placed within the ui:JSONServices subclass (from the documentation I read, 
> the place to place the query is within the ui:prototype property) then 
> defining name-value pairs.  An argument is defined; the SPARQL query gets 
> more info on this argument.  I have read online that this can be achieved 
> as follows: <swon:Value arg:name="Name_To_Give" arg:value="{= 
> spl:object(?argument, schema:argumentHasRandomValue) }" />.  THIS IS NOT 
> THE ANSWER I AM LOOKING FOR since I have never seen that in any SPARQL 
> query leading me to believe that it is not something based on standards but 
> something proprietary that might not work with anything but TopBraid 
> Composer AND the same value can be obtained as follows: SELECT ?randomValue 
> WHERE { ?argument schema:argumentHasRandomValue ?randomValue . }, the 
> assumption being that the value only appears once is valid in my case.  I 
> have a feeling this can be achieved by defining a property within the 
> <swon:Object> tag but I haven't found any documentation that tells me what 
> this property is.  Any advice?
>

-- 
-- 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/d/optout.

Reply via email to