On Freitag, 28. Dezember 2007, Yaron Koren wrote: > How about ~%substring% instead? The "~" is the symbol for pattern matching > in Perl and some UNIX languages, and it might be a clearer indicator of > function than "%". >
I would immediately use that, but IFRC the Halo extension has a similar syntax for a custom editing-distance database function (requires modified MySQL version, and probably also has significant performance issues). So the question is whether we want to overwrite that (assuming that this particular Halo function is not used widely), or is there another idea for doing it? Other imaginable operators on my keyboard would be #, &, ?, @ -- none really as nice as ~ ... Markus > > On Dec 27, 2007 2:16 PM, Markus Krötzsch <[EMAIL PROTECTED]> wrote: > > Thanks. I have applied the patch, and added a way of configuring this > > feature: > > the parameter $smwgQComparators gives a (|-separated) list of supported > > comparators, and can be used to enable or disable any of <, >, !, and %. > > By > > default its value is '<|>|!|%'. > > > > In this way one can also disable ! or even <, > if these are considered > > to be > > problematic. > > > > I wonder whether one should use another character instead of "%" as a > > wildcard > > inside the pattern string, so that no double-% confusion can arise. Would > > * > > be an alternative or would it be too confusing w.r.t. the old <ask> print > > requests? What about +? According examples (preprocessing would in each > > case > > ensure full compatibility with SQL): > > > > - %%substring% > > - %*substring* > > - %+substring+ > > > > Cheers > > > > Markus > > > > On Donnerstag, 20. Dezember 2007, Asheesh Laroia wrote: > > > On Thu, 20 Dec 2007, Thomas Bleher wrote: > > > > Yesterday I needed LIKE queries for properties, so I added it to SMW > > > > (patch attached). It was surprisingly simple. > > > > > > This would be LIKE TOTALLY AWESOME to get in to Semantic MediaWiki. > > > > > > It would be great if later SMW could have Valgol support > > > <http://www.indwes.edu/Faculty/bcupp/things/computer/VALGOL.html>. > > > > > > -- Asheesh. > > > > > > P.S. In all total like seriousness, queries with LIKE support are a > > > good idea.... > > > > > > -- > > > The star of riches is shining upon you. > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Semediawiki-devel mailing list > > > Semediawiki-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > > > > -- > > Markus Krötzsch > > Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe > > phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 > > [EMAIL PROTECTED] www http://korrekt.org > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Semediawiki-devel mailing list > > Semediawiki-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- Markus Krötzsch Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 [EMAIL PROTECTED] www http://korrekt.org
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel