HI Scott I finally got around to implementing the Iterate over select as described below.
It all works... Thanks. One issue though. If you just use a convertdatatype module normally in a workflow, you get the triple out with the value changed correctly. But if you use this iterateover select method and pass it to the change datatype you get two triples out of the Iterateoverselect. The converted one with the correct datatype and the old triple with the original datatype. Whilst I can now filter for things which do not have the correct datatype based on the range described in the ontology, it is a hassle particularly where I have lots of data types to manipulate I am finding doing some of what I would call the simple stuff is still a messy business. Cheers Phil > Phil; sml:ConvertDatatype will take variables - just name it ? > predicate. For example, if you have an IterateOverSelect module with > the query:SELECT ?predicate > WHERE { > ?predicate a owl:DatatypeProperty . > LET (?name := afn:localname(?predicate)) . > FILTER regex(?name, "^a[0-9]", "i") . > } > > ...and a sml:ConvertDatatype in the body, with sml:predicate empty, > the script will iterate over the result set and bind ?predicate to > sml:predicate. In this example, all resources with a datatype > properties starting with "a" and a digit will be passed to > sml:ConvertDatatype and the property's type will be converted to > whatever is defined in sml:datatype. > -------------------------------------------------------- UCB Celltech is the UK branch of UCB Pharma S.A., a company registered in Belgium with registered offices at Allee de la Recherche 60, 1070 Brussels, Belgium, KBO/BCE nr. 0403.096.168, RPR/RPM Brussels. UCB Celltech's UK branch registration number is BR009137 and its UK representative office is at 208 Bath Road, Slough, Berkshire SL1 3WE. -------------------------------------------------------- Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. (Ref: #*CUK0308) -------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. To post to this group, send email to topbraid-composer-us...@googlegroups.com. To unsubscribe from this group, send email to topbraid-composer-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/topbraid-composer-users?hl=en.