Hi James, JavaScript functions in SPINx do not (yet) have means to access the RDF triples in the current model. They only can operate on the arguments that have been declared to go into the function. The mapping is such that:
- URI resources will be mapped to URI strings - blank nodes will be passed in as strings of their IDs - literals are converted based on their data type, e.g. xsd:integer will become Integers in JavaScript (if such typing matters at all) Regards, Holger On Jul 30, 2009, at 3:49 PM, jlapalme wrote: > > Hi, > > I read the documentation on creating a Spin function with java script. > What is still not clear for me is that kind of data type will the > JavaScript "see" when passing > other things then simple types (string, int, etc.) ? > > Basically, my question is how does javaScript interact with RDF data ? > > Cheers, > > James > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. 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-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
