Extension talk:Wiki Object Model

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
'Download snapshot' gives a subversion error110:19, 1 March 2012
Does this use the MW parser internally?222:05, 5 February 2012
'Special Charaters' when querying template fields016:46, 30 November 2011
Is SMW really a dep?108:14, 15 November 2011

'Download snapshot' gives a subversion error

Subversion encountered an error: svn: Working copy '/mnt/upload6/private/ExtensionDistributor/mw-snapshot/trunk/extensions' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

17:03, 25 October 2011

I had same with PrivatePageProtection extension. Got around it by downloading using SVN from command line:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/PrivatePageProtection
Marco Crispini10:19, 1 March 2012
 

Does this use the MW parser internally?

Or is it a totally new parser built independently of the MW parser? I'm curious for sustainability reasons. I've done something similar (less extensive) in Perl, and I'm wondering weather to abandon my work and switch to WOM.

Cheers,

Dan Bolser00:13, 9 November 2011

Sorry, this extension do not use MW parser.

WOM is targeting to parse wiki objects of wiki pages 'before rendering'.

  • it is designed to have an open development framework, to make wiki objects' parser/model easy to upgrade

Hope this can help.

Thanks,

Ning08:10, 15 November 2011

Cheers, it does.

Dan Bolser22:05, 5 February 2012
 
 

'Special Charaters' when querying template fields

Hi,

I query a template field as follows:

api.php?action=womget&title=Alexander_Gesinn&xpath=//template[@name="Person_01_00"]/template_field[@key="Username"]

Template:

{{Person_01_00
|Username=Alex
}}

As a result I get:

<?xml version="1.0"?>
<api>
  <womget result="Success">
    <return>
      <id15 xml:space="preserve">Username=Alex
|</id15>
    </return>
  </womget>
</api>

Why do I get a \n| at the end of the returned value? When I remove the CRLF in the template I still get the Pipe symbol. Is this a bug?

MW 1.16.x, WOM r104210

Planetenxin16:46, 30 November 2011

Is SMW really a dep?

How come it can't work with or without SMW? Is listing SMW as a dep really correct? Cheers,

Dan Bolser00:11, 9 November 2011

SMW is optional.

  • WOM will test the wiki instance.
  • If SMW extension is deployed, 'Property' object model will thus be parsed, otherwise, the 'property object' parser will cancel its work.

Thanks,

Ning08:14, 15 November 2011
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox