Hi Scott,
Yes, this is occurring in one of my sparql motion scripts not in a specific
module though. I was trying to build up a query to test it and the error was
thrown.
It looks like my regex syntax is incorrect:
Select ?convertedColumnName
WHERE {
LET (?convertedColumnName := smf:lowerCamelCase("avg.FlowingTemp(F)")) .
LET (?convertedColumnName := smf:regex(?convertedColumnName, "#", "",
?convertedColumnName)) .
LET (?convertedColumnName := smf:regex(?convertedColumnName, " ", "",
?convertedColumnName)) .
#LET (?convertedColumnName := smf:regex(?convertedColumnName, ")", "",
?convertedColumnName)) .
#LET (?convertedColumnName := smf:regex(?convertedColumnName, "(", "",
?convertedColumnName)) .
#LET (?convertedColumnName := smf:regex(?convertedColumnName, ".", "",
?convertedColumnName)) .
}
Uncommenting one of the first two lines throws the error. The last line
returns no results.
Gerrick
On Tue, Apr 13, 2010 at 7:49 PM, Scott Henninger <[email protected]
> wrote:
> Gerrick; The code for converting column names is not available. Are
> you doing this via a script? I.e. ConvertSpreadsheetToRDF?
>
> Also, can you provide examples of smf:regex errors you are getting?
>
> -- Scott
>
> On Apr 13, 5:48 pm, gbiv <[email protected]> wrote:
> > Just a quick question, is the algorithm that is used for converting
> > spreadsheet column headers into property names available or do I need
> > to roll my own?
> > For instance, we're running across column names such as:
> > Avg. Temp (F) and TBC converts it to avgTempF.
> >
> > Similar things happen with a heading like:
> > Identification # which TBC converts to identification.
> >
> > I've tried to use smf:regex but it throws an error on characters like
> > "(",")" and "." .
> > Gerrick
>
> --
> You received this message because you are subscribed to the Google
> Group "TopBraid Suite Users", the topics of which include TopBraid
> Composer,
> TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]<topbraid-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/topbraid-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion 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