Holger, thank you for your respon, I will use the link that you give to more help about semantic. but my problem is more spesific about using spin / swp. I'm interested when you say that "it's possible to combine PHP and SWP ", unfortunately I cannot find a sample or literature in google about how to do that :(.
In simple way i want to make a dynamic SPARQL. The SPARQL syntax depend on result of processing parameters passed via the form. I made the following simple overview of the application ( of course it cannot run :( ), I use javascript for a sample. <!-- Navigate to http://localhost:8083/tbl/coba/test.swp?test=Mate in a web browser --> <ui:setContext xmlns:kennedys="http://topbraid.org/examples/kennedys#" ui:queryGraph="<http://topbraid.org/examples/kennedys>" let:param="{= ui:param('param', xsd:string)}" > <script> *// I hope can use PHP here...* cParam = "{= ?param }"; if (cParam == "person") { cSPARQL = "{# SELECT ?x WHERE { ?x a kennedys:Person . } ORDER BY ui:label(?x) }"; } else { cSPARQL = "{# SELECT ?x WHERE { ?x a kennedys:College . } ORDER BY ui:label(?x) }"; } </script> <ul> <ui:forEach ui:resultSet=" * Can I use cSPARQL variable here?* "> <li>{= ui:label(?x) }</li> </ui:forEach> </ul> </ui:setContext> Is it possible to do that ? Rgrds, Cosmas -- -- 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 Ensemble, 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
