Re: [SMW-devel] Status SMW, release plans for 1.5.0

2010-03-28 Thread Andreas Hubel
We fixed the problem with following patch:

Index: extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
===
--- extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php 
(revision 64288)
+++ extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php 
(working copy)
@@ -345,7 +345,7 @@
$result = '';
 
if ( $this->m_editquery ) {
-   $spectitle = Title::makeTitle( NS_SPECIAL, 'Ask' );
+   $spectitle = $this->getTitleFor('Ask');
$result .= '' . "\n" .
   '';
 

Additional an bugreport was summited to the mediawiki bugtracker:
https://bugzilla.wikimedia.org/show_bug.cgi?id=22989

Greets,
Andi
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Status SMW, release plans for 1.5.0

2010-03-28 Thread Andreas Hubel
Hi,
>>> Another oddity is that when using Spezial:Semantische Suche 
>> (is that  
>>> Special:Ask? I never used it before...) it always prepends 
>> the Query 
>>> part  with "broadtable20" after clicking the "Finde 
>> Ergebnisse" Button 
>>> - and  this is even independent of asking for a Category or 
>> a single page.
>> 
>> This is strange and could hint at a URL encoding problem. Can 
>> you reproduce the problem on sandbox.semantic-mediawiki.org? 
>> The code for Special_Ask was recently extended by Yaron, so 
>> maybe he has an idea if this could be related.
> 
> Yep, there seems to be a problem with the URL encoding of the p[]-array
> and, no, I cannot reproduce it in the Sandbox:
> [...]
> Seems to me that the p[]-array indices are missing.

I digged the problem down to the localisation redirection. 
The action of the Ask Form points to Special:Ask, this gets redirected to 
"Spezial:Semantische Suche" and during that redirection process the indices get 
lost.
Does anybody of you know where this redirections is done? 
Another workaround would be to change the form action to the localised form.

Greets,
Andi




--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Status SMW, release plans for 1.5.0

2010-02-12 Thread Harwarth, Stefan (Bundeswehr)
> > Another oddity is that when using Spezial:Semantische Suche 
> (is that  
> > Special:Ask? I never used it before...) it always prepends 
> the Query 
> > part  with "broadtable20" after clicking the "Finde 
> Ergebnisse" Button 
> > - and  this is even independent of asking for a Category or 
> a single page.
> 
> This is strange and could hint at a URL encoding problem. Can 
> you reproduce the problem on sandbox.semantic-mediawiki.org? 
> The code for Special_Ask was recently extended by Yaron, so 
> maybe he has an idea if this could be related.

Yep, there seems to be a problem with the URL encoding of the p[]-array
and, no, I cannot reproduce it in the Sandbox:

Sandbox URL: 
http://sandbox.semantic-mediawiki.org/wiki/Special:Ask?title=Special%3AA
sk&q=[[Category%3ASMW+unit+tests]]&po=&sort_num=&order_num=ASC&eq=yes&p[
format]=broadtable&p[limit]=20&p[headers]=&p[mainlabel]=&p[link]=&p[intr
o]=&p[outro]=&p[default]=&eq=yes#

My MW 1.15 with SMW 1.5 with Firefox:
http://suzwiki.man.m.dasa.de/smwtest/index.php?title=Spezial:Semantische
_Suche&q=[[Kategorie%3AProdukt]]&order_num=ASC&eq=yes&p[]=broadtable&p[]
=20&p[]=&p[]=&p[]=&p[]=&p[]=&p[]=

My MW 1.15 with SMW 1.5 with IE 6:
http://tor.suzwiki.man.m.dasa.de/torw/index.php?title=Spezial:Semantisch
e_Suche&q=%5B%5BKategorie%3AProdukt%5D%5D&sc=0&eq=yes&p=format%3Dul

My MW 1.15 with SMW 1.4.3:
http://tor.suzwiki.man.m.dasa.de/torw/index.php?title=Spezial:Semantisch
e_Suche&q=%5B%5BKategorie%3AProdukt%5D%5D&sc=0&eq=yes&p=format%3Dul

Seems to me that the p[]-array indices are missing.


> > Whenever I put an #ask-query on a page that queries for all 
> pages in a  
> > category, then all I get is an empty page (not even the 
> output around 
> > the  query is printed any more).
> 
> This is usually seen when some memory issue occurs, e.g. due 
> to more source code being loaded now. You can try to increase 
> the PHP memory limit in LocalSettings.php (where requirements 
> above 50M are unusual even if you use normal-sized queries; I 
> found it needed on some wikis that create very long/broad 
> result tables but basic operation should usually work with 20M).

Not so much more information on that issue, I traced the results of SMW
back to doAsk() and they are ok. 

At the moment I think it might be more of an issue with the character
set in my DB and Mediawiki .. maybe that is even the source for the
first problem


Regards, Stefan

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Status SMW, release plans for 1.5.0

2010-02-10 Thread zehetner
Upps silly me, somehow I must have misread that installations with SMWSQLStore2
do the update automatically.

Sorry,
Gu

Quoting Markus Krötzsch :

> On Mittwoch, 10. Februar 2010, zehet...@molgen.mpg.de wrote:
> > Hi,
> > 
> > I'm not sure if I see this correctly but it looks to me that SMW 1.5 does
> >  some modifications to the MySQL database (like creating new tables) which
> >  are necessary for its 'internal part changes'.
> > 
> > What exactly does trigger those modifications?
> 
> The install/update button on Special:SMWAdmin. It is also possible to trigger
> 
> the update from the command line (like when upgrading MediaWiki). See INSTALL
> 
> for details on how to upgrade SMW.
> 
> I hope that this fixes your problem.
> 
> -- Markus
> 
> > 
> > When I simply replace the SMW 1.4 extension folder with a new SMW 1.5
> >  folder and try to go to a page (even a non-existing one) I get an
> >  MediaWiki internal error because in function SMW:getSemanticData a SQL
> >  query is executed which uses a table smw_subp2 which doesn't exist (yet).
> > 
> > Original exception: exception 'DBQueryError' with message 'A database
> error
> >  has occurred
> > Query: SELECT DISTINCT o_id AS id0,o0.smw_title AS v0,o0.smw_namespace AS
> > v1,o0.smw_iw AS v2,o0.smw_sortkey AS v3 FROM `cmw_smw_subp2` INNER JOIN
> > `cmw_smw_ids` AS o0 ON o_id=o0.smw_id WHERE s_id='542'
> > Function: SMW::getSemanticData
> > Error: 1146 Table 'cancerdb.cmw_smw_subp2' doesn't exist
> >  (localhost:mysql5.sock)
> > 
> > I guess that's one of the newly created tables but how do I force that
> > update/modification to create it?
> > 
> > The stack trace suggests that the SMW query, even on a non-existing page,
> >  is triggered by SemanticForms
> > 
> > SFFormEditTab::displayTab(Object(SkinMonoBook),Array)
> > SFLinkUtils::getFormsThatPagePointsTo('Non-Kinase', 14, '_SF_DF',
> > '_SF_DF_BACKUP', 1)
> > SMWSQLStore2->getPropertyValues(Object(Title), Object(SMWPropertyValue))
> > 
> > 
> > If I disable the inclusion of SF_Settings.php (btw. the latest SVN
> version)
> >  the error disappears.
> > 
> > Thanks,
> > Gu
> > 
> > Quoting Markus Krötzsch :
> > > And another copy for devel list. My first email went to the list owners
> > > only:
> > >
> > > email address autocompletion is a dangerous thing. -- Markus
> > >
> > > On Montag, 8. Februar 2010, Markus Krötzsch wrote:
> > > > Dear SMW users,
> > > >
> > > > this is just to let you know that the main changes to the SVN version
> > > > of SMW have been completed, and that the release of SMW 1.5.0 is
> > > > planned for February now. Since there have been major changes in some
> > > > internal parts, it would be good to get some testing going.
> Especially,
> > > > extension developers should check that there are no compatibility
> > > > problems with the new version -- little has changed in the officially
> > > > documented
> > >
> > > interfaces,
> > >
> > > >  but you never know.
> > > >
> > > > The main changes in SMW 1.5.0 are internal, cleaning up the rather
> > > > complex piece of code use for database access in SMW, and should not
> be
> > > > visible to the user unless something went wrong. On the user level, a
> > > > different declaration of n-ary (multi-valued) properties, and an
> > > > extended UI for Special:Ask are the most noticeable changes.
> > > >
> > > > We have heard that some users have reported problems/bugs with the SVN
> > > >  version on IRC recently, but we do not know what exactly the problems
> > > >  were. There are no logs of the IRC (and in any case single messages
> > > > are easy to overlook). So please, if you find any problems in SMW, be
> > > > sure to report them on bugzilla.mediawiki.org, or at least send some
> > > > email to one of the lists where it is on archive. Otherwise, your
> > > > problem reports have a high chance of going unnoticed.
> > > >
> > > > Cheers,
> > > >
> > > > Markus
> > 
> 
> 
> -- 
> Markus Krötzsch  
> * Personal page: http://korrekt.org
> * Semantic MediaWiki: http://semantic-mediawiki.org
> * Semantic Web textbook: http://semantic-web-book.org
> --
> 





--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Status SMW, release plans for 1.5.0

2010-02-10 Thread Markus Krötzsch
On Mittwoch, 10. Februar 2010, zehet...@molgen.mpg.de wrote:
> Hi,
> 
> I'm not sure if I see this correctly but it looks to me that SMW 1.5 does
>  some modifications to the MySQL database (like creating new tables) which
>  are necessary for its 'internal part changes'.
> 
> What exactly does trigger those modifications?

The install/update button on Special:SMWAdmin. It is also possible to trigger 
the update from the command line (like when upgrading MediaWiki). See INSTALL 
for details on how to upgrade SMW.

I hope that this fixes your problem.

-- Markus

> 
> When I simply replace the SMW 1.4 extension folder with a new SMW 1.5
>  folder and try to go to a page (even a non-existing one) I get an
>  MediaWiki internal error because in function SMW:getSemanticData a SQL
>  query is executed which uses a table smw_subp2 which doesn't exist (yet).
> 
> Original exception: exception 'DBQueryError' with message 'A database error
>  has occurred
> Query: SELECT DISTINCT o_id AS id0,o0.smw_title AS v0,o0.smw_namespace AS
> v1,o0.smw_iw AS v2,o0.smw_sortkey AS v3 FROM `cmw_smw_subp2` INNER JOIN
> `cmw_smw_ids` AS o0 ON o_id=o0.smw_id WHERE s_id='542'
> Function: SMW::getSemanticData
> Error: 1146 Table 'cancerdb.cmw_smw_subp2' doesn't exist
>  (localhost:mysql5.sock)
> 
> I guess that's one of the newly created tables but how do I force that
> update/modification to create it?
> 
> The stack trace suggests that the SMW query, even on a non-existing page,
>  is triggered by SemanticForms
> 
> SFFormEditTab::displayTab(Object(SkinMonoBook),Array)
> SFLinkUtils::getFormsThatPagePointsTo('Non-Kinase', 14, '_SF_DF',
> '_SF_DF_BACKUP', 1)
> SMWSQLStore2->getPropertyValues(Object(Title), Object(SMWPropertyValue))
> 
> 
> If I disable the inclusion of SF_Settings.php (btw. the latest SVN version)
>  the error disappears.
> 
> Thanks,
> Gu
> 
> Quoting Markus Krötzsch :
> > And another copy for devel list. My first email went to the list owners
> > only:
> >
> > email address autocompletion is a dangerous thing. -- Markus
> >
> > On Montag, 8. Februar 2010, Markus Krötzsch wrote:
> > > Dear SMW users,
> > >
> > > this is just to let you know that the main changes to the SVN version
> > > of SMW have been completed, and that the release of SMW 1.5.0 is
> > > planned for February now. Since there have been major changes in some
> > > internal parts, it would be good to get some testing going. Especially,
> > > extension developers should check that there are no compatibility
> > > problems with the new version -- little has changed in the officially
> > > documented
> >
> > interfaces,
> >
> > >  but you never know.
> > >
> > > The main changes in SMW 1.5.0 are internal, cleaning up the rather
> > > complex piece of code use for database access in SMW, and should not be
> > > visible to the user unless something went wrong. On the user level, a
> > > different declaration of n-ary (multi-valued) properties, and an
> > > extended UI for Special:Ask are the most noticeable changes.
> > >
> > > We have heard that some users have reported problems/bugs with the SVN
> > >  version on IRC recently, but we do not know what exactly the problems
> > >  were. There are no logs of the IRC (and in any case single messages
> > > are easy to overlook). So please, if you find any problems in SMW, be
> > > sure to report them on bugzilla.mediawiki.org, or at least send some
> > > email to one of the lists where it is on archive. Otherwise, your
> > > problem reports have a high chance of going unnoticed.
> > >
> > > Cheers,
> > >
> > > Markus
> 


-- 
Markus Krötzsch  
* Personal page: http://korrekt.org
* Semantic MediaWiki: http://semantic-mediawiki.org
* Semantic Web textbook: http://semantic-web-book.org
--


signature.asc
Description: This is a digitally signed message part.
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Status SMW, release plans for 1.5.0

2010-02-10 Thread zehetner
Hi,

I'm not sure if I see this correctly but it looks to me that SMW 1.5 does some
modifications to the MySQL database (like creating new tables) which are
necessary for its 'internal part changes'.

What exactly does trigger those modifications?

When I simply replace the SMW 1.4 extension folder with a new SMW 1.5 folder and
try to go to a page (even a non-existing one) I get an MediaWiki internal error
because in function SMW:getSemanticData a SQL query is executed which uses a
table smw_subp2 which doesn't exist (yet).

Original exception: exception 'DBQueryError' with message 'A database error has
occurred
Query: SELECT DISTINCT o_id AS id0,o0.smw_title AS v0,o0.smw_namespace AS
v1,o0.smw_iw AS v2,o0.smw_sortkey AS v3 FROM `cmw_smw_subp2` INNER JOIN
`cmw_smw_ids` AS o0 ON o_id=o0.smw_id WHERE s_id='542'
Function: SMW::getSemanticData
Error: 1146 Table 'cancerdb.cmw_smw_subp2' doesn't exist (localhost:mysql5.sock)

I guess that's one of the newly created tables but how do I force that
update/modification to create it?

The stack trace suggests that the SMW query, even on a non-existing page, is
triggered by SemanticForms 
:
SFFormEditTab::displayTab(Object(SkinMonoBook),Array)
SFLinkUtils::getFormsThatPagePointsTo('Non-Kinase', 14, '_SF_DF',
'_SF_DF_BACKUP', 1)
SMWSQLStore2->getPropertyValues(Object(Title), Object(SMWPropertyValue))
:

If I disable the inclusion of SF_Settings.php (btw. the latest SVN version) the
error disappears.

Thanks,
Gu   


Quoting Markus Krötzsch :

> And another copy for devel list. My first email went to the list owners only:
> 
> email address autocompletion is a dangerous thing. -- Markus
> 
> On Montag, 8. Februar 2010, Markus Krötzsch wrote:
> > Dear SMW users,
> > 
> > this is just to let you know that the main changes to the SVN version of
> >  SMW have been completed, and that the release of SMW 1.5.0 is planned for
> >  February now. Since there have been major changes in some internal parts,
> >  it would be good to get some testing going. Especially, extension
> >  developers should check that there are no compatibility problems with the
> >  new version -- little has changed in the officially documented
> interfaces,
> >  but you never know.
> > 
> > The main changes in SMW 1.5.0 are internal, cleaning up the rather complex
> > piece of code use for database access in SMW, and should not be visible to
> >  the user unless something went wrong. On the user level, a different
> >  declaration of n-ary (multi-valued) properties, and an extended UI for
> >  Special:Ask are the most noticeable changes.
> > 
> > We have heard that some users have reported problems/bugs with the SVN
> >  version on IRC recently, but we do not know what exactly the problems
> >  were. There are no logs of the IRC (and in any case single messages are
> >  easy to overlook). So please, if you find any problems in SMW, be sure to
> >  report them on bugzilla.mediawiki.org, or at least send some email to one
> >  of the lists where it is on archive. Otherwise, your problem reports have
> >  a high chance of going unnoticed.
> > 
> > Cheers,
> > 
> > Markus
> > 
> 
> 
> -- 
> Markus Krötzsch  
> * Personal page: http://korrekt.org
> * Semantic MediaWiki: http://semantic-mediawiki.org
> * Semantic Web textbook: http://semantic-web-book.org
> --
> 





--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Status SMW, release plans for 1.5.0

2010-02-08 Thread Markus Krötzsch
And another copy for devel list. My first email went to the list owners only: 
email address autocompletion is a dangerous thing. -- Markus

On Montag, 8. Februar 2010, Markus Krötzsch wrote:
> Dear SMW users,
> 
> this is just to let you know that the main changes to the SVN version of
>  SMW have been completed, and that the release of SMW 1.5.0 is planned for
>  February now. Since there have been major changes in some internal parts,
>  it would be good to get some testing going. Especially, extension
>  developers should check that there are no compatibility problems with the
>  new version -- little has changed in the officially documented interfaces,
>  but you never know.
> 
> The main changes in SMW 1.5.0 are internal, cleaning up the rather complex
> piece of code use for database access in SMW, and should not be visible to
>  the user unless something went wrong. On the user level, a different
>  declaration of n-ary (multi-valued) properties, and an extended UI for
>  Special:Ask are the most noticeable changes.
> 
> We have heard that some users have reported problems/bugs with the SVN
>  version on IRC recently, but we do not know what exactly the problems
>  were. There are no logs of the IRC (and in any case single messages are
>  easy to overlook). So please, if you find any problems in SMW, be sure to
>  report them on bugzilla.mediawiki.org, or at least send some email to one
>  of the lists where it is on archive. Otherwise, your problem reports have
>  a high chance of going unnoticed.
> 
> Cheers,
> 
> Markus
> 


-- 
Markus Krötzsch  
* Personal page: http://korrekt.org
* Semantic MediaWiki: http://semantic-mediawiki.org
* Semantic Web textbook: http://semantic-web-book.org
--


signature.asc
Description: This is a digitally signed message part.
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel