Hi,

thought first it's a MW 1.11 vs 1.13 issue but I'm using now MediaWiki 1.13.3
(r45906) where I just switch between the 'old XSDValue' SMW and the 'latest
DBkey' SMW version. Nothing else changes so I thought it might be relatet to the
new version. It's not really a problem for me as I can use mTextform instead but
I was just surprised to find that difference. 

if ($object->getTypeID() == '_wpg')                                            
      
   $pft = $object->getTitle()->mPrefixedText;

If I print_r $object->getTitle() I get:

Old SMW: Semantic MediaWiki (Version 1.5a-SVN) (is 1.4 I think but shows in
Special:Version as 1.5a)

Title Object
(
    [mTextform] => Entomological inoculation rates
    [mUrlform] => Entomological_inoculation_rates
    [mDbkeyform] => Entomological_inoculation_rates
    [mUserCaseDBKey] => 
    [mNamespace] => 0
    [mInterwiki] => 
    [mFragment] => 
    [mArticleID] => -1
    [mLatestID] => 
    [mRestrictions] => Array
        (
        )

    [mCascadeRestriction] => 
    [mRestrictionsExpiry] => 
    [mHasCascadingRestrictions] => 
    [mCascadeRestrictionSources] => 
    [mRestrictionsLoaded] => 
    [mPrefixedText] => Entomological inoculation rates
    [mDefaultNamespace] => 0
    [mWatched] => 
    [mLength] => -1
    [mRedirect] => 
    [mOldRestrictions] => 
)


New SMW: Semantic MediaWiki (Version 1.5c-SVN)
Title Object
(
    [mTextform] => Entomological inoculation rates
    [mUrlform] => Entomological_inoculation_rates
    [mDbkeyform] => Entomological_inoculation_rates
    [mUserCaseDBKey] => 
    [mNamespace] => 0
    [mInterwiki] => 
    [mFragment] => 
    [mArticleID] => -1
    [mLatestID] => 
    [mRestrictions] => Array
        (
        )

    [mCascadeRestriction] => 
    [mRestrictionsExpiry] => 
    [mHasCascadingRestrictions] => 
    [mCascadeRestrictionSources] => 
    [mRestrictionsLoaded] => 
    [mPrefixedText] => 
    [mDefaultNamespace] => 0
    [mWatched] => 
    [mLength] => -1
    [mRedirect] => 
    [mOldRestrictions] => 
)

Cheers,
Gu

Quoting Markus Krötzsch <mar...@semantic-mediawiki.org>:

> On Montag, 19. Januar 2009, zehet...@molgen.mpg.de wrote:
> > Hi,
> >
> > it seems that the field 'mPrefixedText' in a Title object is now empty
> with
> > the new SVN version while previously it contained a value. Is this
> > intentionally?
> 
> I don't quite understand. The class Title is part of MediaWiki and SMW is not
> 
> changing it at all. To access the prefixed text of some title, use 
> getPrefixedText(). This should work in all version of MediaWiki. In any case,
> 
> SMW is not responsible if it fails, I hope ;-)
> 
> Cheers,
> 
> Markus
> 
> >
> > Thanks,
> > Gu
> >
> > Quoting Markus Krötzsch <mar...@semantic-mediawiki.org>:
> > > Update:
> > >
> > > I have tested the current SVN version successfully in combination with
> > > SemanticForms and SemanticResultFormats, and we now run it on a number
> of
> > > SMW
> > >
> > > sites. We might have an intermediate release with this update soon --
> > > those who cannot wait may wish to give the current SVN version a try (it
> > > can be installed on top of SMW 1.4.* by simply replacing the files).
> > >
> > > Upgrade is strongly recommended for everybody who experiences "blank
> > > pages" (typical for PHP out-of-memory issues) on certain SMW-related
> > > operations. The
> > >
> > > changes can also speed up page display significantly under certain
> > > circumstances, especially if inline queries with many results and
> > > printouts are used.
> > >
> > > Cheers,
> > >
> > > Markus
> > >
> > > On Freitag, 16. Januar 2009, Markus Krötzsch wrote:
> > > > Hi all,
> > > >
> > > > I have done some debugging of SMW's memory requirements during parsing
> > > > and query answering, and I identified a number of issues that lead to
> > >
> > > increased
> > >
> > > > memory usage. To fix this, I have modified some parts of the internal
> > > > architecture, which I will check into SVN soon.
> > > >
> > > > In effect, SMW (SVN) is faster and requires less memory, but I also
> > > > assume that the changed architecture may still have some bugs. Also,
> > > > there might theoretically be minor incompatibilities with SMW
> > > > extensions, though I do not expect many such issues since the old
> > > > interfaces have been kept unchanged. Yet, SVN users are hereby warned
> > > > that some problems might still appear in places. Of course, feedback
> is
> > > > welcome.
> > > >
> > > > There will be another mail to the developers' list with details.
> > > >
> > > > Cheers,
> > > >
> > > > Markus
> > >
> > > --
> > > Markus Krötzsch
> > > Semantic MediaWiki    http://semantic-mediawiki.org
> > > http://korrekt.org    mar...@semantic-mediawiki.org
> 
> 
> -- 
> Markus Krötzsch
> Semantic MediaWiki    http://semantic-mediawiki.org
> http://korrekt.org    mar...@semantic-mediawiki.org
> 
> 





------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to