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. -- Scott On Nov 23, 5:33 pm, PhilA <philip.ashwo...@ucb.com> wrote: > After working for a couple of weeks reading in delimited text files, > and then manipulating this to create the classes with appropriate > properties ,e.g. like extract class in TBC, I think I have found a > fairly efficient way of working. > The biggest issue still remaining is how to convert the datatypes to > those specified in an ontology. > At present the only way I have managed it, is to have lots and lots of > convert datatypes modules in the script. > I've tried an iterate over select and then passing the variables to > the convertdatatype module, but this module doesn't seem to accept > variables as arguments. > The other way I have tried to do it is to have multiple predicates > listed in the convertdatatype module, but it only processes the first > one listed. > > Since changing datatypes is a must do operation, from the imported > string type, would it be possible to have an enhanced convertdatatype > module? > > Cheers > 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 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=.