Phil, the "BBB CCC..." string will need to be parsed an individually turned into URIs. See the String Functions in the SPARQLMotion Functions Reference in the Help files.
-- Scott On May 21, 7:56 am, [email protected] wrote: > I have a sparql motion script that iterates over a series of xml files > (1 drug per file), converts the XML into RDF, and creates instances of > the classes/properties from an ontology. One of the elements within > the xml is a series space-separated values that I need to parse into > individual triples of a given property. Here is a simple example: > > <?xml version="1.0" encoding="UTF-8" ?> > <Drug ID="AAA"> > <DrugName> > <![CDATA[ dummy ]]> > </DrugName> > <RelatedDrug> > <![CDATA[ BBB CCC DDD EEE FFF GGG ]]> > </RelatedDrug> > </Drug> > > I need to generate triples like the following: > > :AAA a :Drug . > :AAA :hasName "dummy" . > :AAA :isRelatedTo :BBB . > :AAA :isRelatedTo :CCC . > :AAA :isRelatedTo :DDD . > :AAA :isRelatedTo :EEE . > :AAA :isRelatedTo :FFF . > :AAA :isRelatedTo :GGG . > > The number of related drugs will differ from drug to drug (i.e. file > to file). The files are being processed via an IterateOverSelect > module where the body of that module is a series of construct modules > that produce the individual triples you see above. However, what I am > getting now is: > > :AAA a :Drug . > :AAA :hasName "dummy" . > :AAA :isRelatedTo :BBB_CCC_DDD_EEE_FFF_GGG . > > How can I split that last element up into individual triples? > > Phil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
