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