[SMW-devel] Feature request: easily show if a page belongs to a category in a table view

2006-09-14 Thread Thomas Bleher
I just sent the same text to the SourceForge feature request tracker (https://sourceforge.net/tracker/index.php?func=detail&aid=1558499&group_id=147937&atid=770004) and then read on the wiki that feature requests should be sent to this mailing list. So my apologies if you receive this posting twice

[SMW-devel] Idea: Export page properties like time of last edit as attributes

2006-10-08 Thread Thomas Bleher
I think it would be cool if SMW exported wiki page properties as attributes and relations. I'm thinking of the following: Attributes: Last edit at Created at Edit count Page size Relations: Created by Edited by Last edit by (I'm no native speaker, so maybe the names should be changed

Re: [SMW-devel] Idea: Export page properties like time of last edit as attributes

2006-10-10 Thread Thomas Bleher
(Because S Page refered to this: I'm not interested at all in exporting this data outside of the wiki.) On 10/8/06, Christopher Baker <[EMAIL PROTECTED]> wrote: > >On 10/8/06, S Page <[EMAIL PROTECTED]> wrote: >> >> Enhancing inline queries this way is worthwhile, but I imagine it will >> be hella

Re: [SMW-devel] Boolean Attribute type

2006-10-16 Thread Thomas Bleher
* S Page <[EMAIL PROTECTED]> [2006-10-13 11:30]: > Markus Krötzsch wrote: > > I still have to be convinced that we need a Boolean type. > > > The reason is that instead of a Boolean type, you could simply use a > > Category. > > I.e. instead of [[HotOrNot:=true]] you would write [[Category:Hot]]

Re: [SMW-devel] some commits to SVN

2006-12-07 Thread Thomas Bleher
* S Page <[EMAIL PROTECTED]> [2006-12-05 12:36]: > revision 18179: Support formatting booleans in inline queries. > > The last one is similar to specifying a format in inline queries for > date/time. E.g.: > > [[HotOrNot:=+]] > [[HotOrNot:=*√,x]] > > will show either a "checkmark" (actua

[SMW-devel] Quick hack: support category negations in queries

2006-12-18 Thread Thomas Bleher
Greetings! Today I was in need of category negations in queries, so I hacked something up. Using this patch, you can now say: [[Category:!Not this one]] [[Category:!Neither this||Nor that]] [[Some Attribute:=>!3]] It should work with relations too (haven't tested as I don't use those on my wiki;

[SMW-devel] [RFC PATCH] Bug 7955: Properly support < and > in attributes

2007-02-13 Thread Thomas Bleher
I finally tracked down bug 7955 (http://bugzilla.wikimedia.org/show_bug.cgi?id=7955). The problem is as follows: * When smwfParserHook() is called, the parser has already substituted < and > with < and >, respectively. * For the factbox, this is OK, as MW will just leave alone these entities.

[SMW-devel] Add some profile hooks to SMW_InlineQueries.php

2007-03-06 Thread Thomas Bleher
While profiling MediaWiki I noticed that SMW doesn't use any of the profile functions. I added some to the functions I was interested in. Surely more could be added, but it's a start. Thomas --- SMW_InlineQueries.php.orig 2007-03-06 09:52:23.0 +0100 +++ SMW_InlineQueries.php 2007-03

[SMW-devel] Allow queries like (known_value or empty)?

2007-11-13 Thread Thomas Bleher
Hi! First I'd like to thank you for the great software that SMW is! SMW1.0 seem to be in pretty good form, too! I tried to upgrade my server (which has some custom modifications to SMW) and hit a limitation, which I'm not quite sure how to overcome. Maybe you have some suggestions. I'd like to q

[SMW-devel] [broken patch] First stab at support for negated queries

2007-11-15 Thread Thomas Bleher
* Thomas Bleher <[EMAIL PROTECTED]> [2007-11-14 08:48]: > 1) Implement negations in queries - then I could ask "(NOT maxTeilnehmer <= >9) AND (NOT minTeilnehmer >= 11)". I used this solution with SMW 0.7 >(patch below), but looking at the 1.0RC2 code,

Re: [SMW-devel] [patch] 2nd try: support for negated queries

2007-11-20 Thread Thomas Bleher
* Thomas Bleher <[EMAIL PROTECTED]> [2007-11-15 20:36]: > * Thomas Bleher <[EMAIL PROTECTED]> [2007-11-14 08:48]: > > 1) Implement negations in queries - then I could ask "(NOT maxTeilnehmer <= > >9) AND (NOT minTeilnehmer >= 11)". I used this solu

[SMW-devel] Small Bug: Page saves fail when SMW is loaded but tables are missing

2007-11-23 Thread Thomas Bleher
When SMW is loaded via require_once() and enableSemantics(), but the necessary database tables are not there, saving a wiki page can fail. This hit me today: I had installed SMW for a client I work for, but Special:SMWAdmin did not have the necessary rights to create the tables. I left SMW there s

[SMW-devel] Another small issue: decimal separator is locale dependent

2007-11-26 Thread Thomas Bleher
I just discovered another small issue: I tried to adapt http://ontoworld.org/wiki/Type:Time to my wiki (see http://spiele.j-crew.de/wiki/Datentyp:Zeitdauer). First I copied the page verbatim, which lead to various strange errors (division by zero, numbers being sometimes shown in a strange way, ...

Re: [SMW-devel] [patch] 2nd try: support for negated queries

2007-11-26 Thread Thomas Bleher
yms = $wgParser->mFunctionSynonyms; while ( $row = $res->getNext() ) { $wikitext = ''; $firstcol = true; It copies the parser functions from the main parser, so they can be used in the templates given to . Maybe this can

[SMW-devel] Minor issues with inline errors

2007-12-02 Thread Thomas Bleher
Hi! Stumbled across another issue today: If an annotation is incorrect an error text is added, even if $smwgNamespacesWithSemanticLinks is set to false for this particular namespace. Example: http://www.ppoe.at/leiter/wiwo/wiki/index.php/MediaWiki:Neuemethode-grundgeruest (This page is read by a

Re: [SMW-devel] ask query format=template

2007-12-03 Thread Thomas Bleher
* cnit <[EMAIL PROTECTED]> [2007-12-03 16:24]: > May I suggest another kind of ask format? Sometimes it's desirable to > get only a simple count of rows instead of the query result rows. So, > if there's a 5 rows in the query result, ask format="count" would > return a number 5. It may be useful to

Re: [SMW-devel] Minor issues with inline errors

2007-12-14 Thread Thomas Bleher
* Markus Krötzsch <[EMAIL PROTECTED]> [2007-12-12 21:07]: > On Sonntag, 2. Dezember 2007, Thomas Bleher wrote: > > 67 foreach($properties as $singleprop) { > > 68 $dv = > > SMWFactbox::addProperty($singleprop,$value,$valueCaption); 69 }

[SMW-devel] [PATCH] Support LIKE in queries

2007-12-20 Thread Thomas Bleher
Yesterday I needed LIKE queries for properties, so I added it to SMW (patch attached). It was surprisingly simple. This patch adds a new comparator, %, to the already existing <, > and !. So you can say [[has capital::%A%]] and it will return all pages that have a property "has capital", with a va

Re: [SMW-devel] Minor issues with inline errors

2007-12-20 Thread Thomas Bleher
* Markus Krötzsch <[EMAIL PROTECTED]> [2007-12-18 16:32]: > On Freitag, 14. Dezember 2007, Thomas Bleher wrote: > > * Markus Krötzsch <[EMAIL PROTECTED]> [2007-12-12 21:07]: > > > On Sonntag, 2. Dezember 2007, Thomas Bleher wrote: > > > > 67

Re: [SMW-devel] [PATCH] Support LIKE in queries

2007-12-30 Thread Thomas Bleher
* Markus Krötzsch <[EMAIL PROTECTED]> [2007-12-30 22:10]: > OK, my conclusion now was to support the following syntax: > > [[property% *subs?r*]] > > where ? and * represent _ and % in SQL. I think this is fine generally, but now you cannot query for a literal * or ? anymore, AFAIK. Not a huge

Re: [SMW-devel] [PATCH] Support LIKE in queries

2008-01-02 Thread Thomas Bleher
* Markus Krötzsch <[EMAIL PROTECTED]> [2008-01-02 08:37]: > On Sonntag, 30. Dezember 2007, Thomas Bleher wrote: > > * Markus Krötzsch <[EMAIL PROTECTED]> [2007-12-30 22:10]: > > > OK, my conclusion now was to support the following syntax: > > > > > >

[SMW-devel] [PATCH] Add pages with property errors to a special category

2008-01-02 Thread Thomas Bleher
The following patch changes SMW so that, if $smwgInlineErrors is true, pages with property errors are also added to a special category, so they can be easily found and fixed. The name of the category is given in the message smw_propertyerror_category. Regards, Thomas --- a/extensions/SemanticMed