Re: [SMW-devel] swedish collation error on semantic-mediawiki.org with category query and some pages

2007-12-13 Thread cnit
 Well, not sure ... in general, SMW and MW have rather similar ways of creating
 tables, and normally they just come out having the same settings (it does not
 matter if they use Swedish collation, as long as they use the same).
Collation does matter for string ordering operations (which are used
by MW, for sure). Using Swedish collation with Cyrillic texts surely
would lead to catastrophe, just ask any of Russian mysql developer.
Even with German language I really doubt that Umlauts and so on
have the same codes in different collations.

 I believe that the observed problems stem from having a database where 
 settings
 somehow changed between MW and SMW installation, so that SMW used other
 default collation settings than MW used when making its tables. I assume it
 should be possible to have a script that just changes the collation of all
 text-fields in all tables to whatever value some admin wants.
It may be possible even though probably requires re-indexing.

 Note that the UTF8-DB-encoding option (referring to the one offered during
 install now) is considered experimental for MediaWiki.
Hmm.. AFAIK only UTF8-binary is considered experimental, not
utf8_unicode_ci. And MW surely uses UTF8 throughly it's core - it
doesn't even work without PHP mb_string extension.. How would the
mysql server suppose to store Cyrillic or Chinesse characters
in a table with a database charset that doesn't even have such
character codes defined! And with UTF8 posts you may enter these
characters any time, even if your wiki let's say English, Swedish or
German...

 And choosing it
 currently is a sure way to get these problems in any case. So to all you
 users who read this message later: unless you are comfortable with compiling
 your own DB servers as well, please be careful with such settings ;-) The
 default settings should normally work.
I really wasn't comfortable with comiliing mysql myself, but after
some tough time with MW I've found it's the best way to do. But of
course be warned - configure has lots of options, some should be used,
some disabled, compile time is long, and even make install is not
enough - you have to run few scripts - to setup mysql master tables,
to setup init.d and so on...

Dmitriy


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] {{#ask}}

2007-12-13 Thread Markus Krötzsch
On Donnerstag, 13. Dezember 2007, cnit wrote:
  The reason is that SMW can only sort by properties that are part of the
  core query. Print statements such as ?Date may or may not lead to one
  (or more) outputs per query result, but are not used in the initial SQL
  query (so as not to increase the number of result rows via printouts).

 Ah, I see. They separate which fields should be printed out from the
 query itself.

  So what you need to do is to add Date to the query:
 
  {{#ask: [[Category:News]] [[Date::+]] |
  ...

 Now it works, thank you. But there's still one disappointment (could
 be my misunderstanding, of course) - the further results link of this
 query doesn't sort the results :-(

Indeed. This was fixed now in SVN.

-- Markus


 SMW 0.7 further results are properly sorted.
 Dmitriy



-- 
Markus Krötzsch
Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
phone +49 (0)721 608 7362fax +49 (0)721 608 5998
[EMAIL PROTECTED]www  http://korrekt.org


signature.asc
Description: This is a digitally signed message part.
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel