I'd like to second the request... Even if it's just to the console or Error Log, just to notify that a function was not found (maybe only for SparqlMotion function prefixes or names?). Maybe that check could be turned off by the user, for efficiency, after the script has been tested?
Jim "Smith, Tim" <[email protected]> Sent by: [email protected] 05/19/2009 04:41 PM Please respond to [email protected] To "[email protected]" <[email protected]> cc Subject [tbc-users] Re: Unable to Open XML file using sml:IterateOverSelect I think it would be good to highlight it but not let it stop the query from executing. Just a friendly warning that "hey, I don't recognize this" and then the user could choose to ignore or act on it much like compiler warnings or spell check. I make use of CRTL-Space but apparently I don't use it every time. And that makes me think of an enhancement for CRTL-Space. Any chance that CRTL-Space can be enhanced to look across function libraries such that if I enter smf:concat it could suggest fn:concat? This would save me another trip to the help screens. Yeah, I know, that's back to the hand-holding thing... Tim > -----Original Message----- > From: [email protected] [mailto:topbraid- > [email protected]] On Behalf Of Holger Knublauch > Sent: Tuesday, May 19, 2009 4:21 PM > To: [email protected] > Subject: [tbc-users] Re: Unable to Open XML file using > sml:IterateOverSelect > > > This would be nice, and I have recorded such requests already. Looks > like a mode that would highlight all untyped URIs would be sufficient > for this to work. Unfortunately, there will be cases in which this is > not desirable, i.e. the user intentionally wants to reference unknown > URIs as part of the query. > > My suggestion is to always use auto-complete to enter function names, > i.e. enter "conc" and then CTRL-Space. This way you will prevent > invalid names from creeping into your queries. > > Holger > > > On May 19, 2009, at 1:17 PM, Smith, Tim wrote: > > > > > This is a good time to suggest an enhancement request... > > > > It would be very helpful if the SPARQL query editor would recognize > > that smf:concat is an unknown function and at least highlight it. > > > > Depending on how long I am away from SPARQL, I often make the > > mistake of using the wrong prefix to identify a function and thus > > have queries that fail with no warning. > > > > I guess you just have to hold our hands as we write SPARQL :) > > > > > > Tim > > > > > >> -----Original Message----- > >> From: [email protected] [mailto:topbraid- > >> [email protected]] On Behalf Of Holger Knublauch > >> Sent: Tuesday, May 19, 2009 4:12 PM > >> To: [email protected] > >> Subject: [tbc-users] Re: Unable to Open XML file using > >> sml:IterateOverSelect > >> > >> > >>> LET (?sourceFilePath := smf:cast(smf:concat("Data/iddb3/", > ?file), > >>> xsd:string)) . > >> > >> There is no function smf:concat - try fn:concat. Also, in this case, > >> the smf:cast is probably not needed, or could be written as > >> > >> xsd:string(fn:concat("Data/iddb3/", ?file)) > >> > >> In order to track intermediate variable values, you may want to > >> insert > >> a function call smf:trace at appropriate places. This will print > >> variable bindings to the console. > >> > >> Holger > >> > >> > >> > > > > > > > > The following line is added for your protection and will be used for analysis if this message is reported as spam: (Raytheon Analysis: IP=209.85.221.160; e-from=grbounce--o7mwauaaadwl_g2bqlyhjkrnqovtno4=james_a_miller=raytheon....@googlegroups.com; [email protected]; date=May 19, 2009 8:40:46 PM; subject=[tbc-users] Re: Unable to Open XML file using sml:IterateOverSelect) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
