Actually, that works.  Once I figured out how to iterate through the
results and get what I needed out I was good to go.

On Aug 6, 7:57 am, rdbkr99999 <[email protected]> wrote:
> Hi,
>
> I'm very new to TopBraid and I'm working on a custom component in
> Flex.  I'm trying to figure out how to get from a node to the
> information stored in the node.  Here is an example:
>
>                 public function updateResource(...args) : void
>                 {
>                         displayedResource = Node(args[0]);
>                 }
>
> This is called with "Select Node in Viz."
>
> Here is the set function
>
>                 public function set displayedResource(value:Node):void
>                 {
>                         if (!value){
>                                 contents.lightText.text = "";
>                         } else {
>                                 contents.lightText.text = value.uiLabel;
>                                 this.graph.select(
>                                         "SELECT * " +
>                                         "WHERE { " +
>                                         value + " exteng:fromSource ?source . 
> " +   // this line is the
> problem
>                                         "?source ?rel ?pred . " +
>                                         "}",update);
>                         }
>                 }
>
> How to I pass the selected node into the SPARQL query?
>
> Thanks
> Chris

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion 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

Reply via email to