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
> >>
> >>
> >>
> >
> > >
> 
> 
> 

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to