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

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

Reply via email to