Hi Barb, dynamically setting the CONSTRUCT query of sml:ApplyConstruct is not supported, and I don't hope that this is the only solution to your task. In general, I would avoid messing around with the SPARQL syntax, but instead put relevant information into the model. This of course depends on the complexity of the query pattern, and the number of combinations that your string generation creates. But in many cases you may be able to simple have multiple sml:ApplyConstructs and then have sml:BranchByAsk to select the branch depending on the context. Another approach would be to create additional "temporary" triples which are then used by the CONSTRUCT clause. All that is very hard to say without seeing some details.
Holger On Aug 3, 2009, at 8:18 PM, Barb wrote: > > I have a variable in my SPARQLMotion script which contains a construct > query.This query has been built via calls to multiple custom > functions.The sml:ApplyConstruct module does not "take" a variable. Is > there any type of SPARQLMotion function that would "honor" the > variable and run the query. I would need to ensure that the output > triples only contained the constructed triples. > > Barb > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
