Magnus Manske | 7 Jul 2008 14:48
Gravatar

Template parameter output?

I was thinking about a new API function:

For a given Wikitext or article, return a list of all used templates
(direct and nested), together with the used key/value pairs.

Nested templates could be passed in the nested structure, or as a list
with parent id information. (I'd prefer the latter, since it's easier
to parse if you don't need the nesting tree)

Output could offer a format "RDF". Yay cheap semantic web! :-)

Anyone working on something like that? Anyone interested in
writing/using it? (I'm sure there's plenty of applications to use it
with; I have a few myself)

Cheers,
Magnus
Max Semenik | 7 Jul 2008 15:06
Picon
Gravatar

Re: Template parameter output?

On 07.07.2008, 16:48 Magnus wrote:

> I was thinking about a new API function:

> For a given Wikitext or article, return a list of all used templates
> (direct and nested), together with the used key/value pairs.

> Nested templates could be passed in the nested structure, or as a list
> with parent id information. (I'd prefer the latter, since it's easier
> to parse if you don't need the nesting tree)

> Output could offer a format "RDF". Yay cheap semantic web! :-)

> Anyone working on something like that? Anyone interested in
> writing/using it? (I'm sure there's plenty of applications to use it
> with; I have a few myself)

> Cheers,
> Magnus

Having templates and their parameters for my bot is cute, but frankly
much more practical is to modify them. Since the manipulation should
happen inside the bot, this feature isn't really interesting for me.

Though my interests are limited to AWB's style of operations.

--

-- 
Best regards,
  Max Semenik ([[User:MaxSem]])
(Continue reading)

VasilievVV | 7 Jul 2008 16:02
Picon

Re: Template parameter output?

Magnus Manske managed to write:
> I was thinking about a new API function:
>
> For a given Wikitext or article, return a list of all used templates
> (direct and nested), together with the used key/value pairs.
>
> Nested templates could be passed in the nested structure, or as a list
> with parent id information. (I'd prefer the latter, since it's easier
> to parse if you don't need the nesting tree)
>
> Output could offer a format "RDF". Yay cheap semantic web! :-)
>
> Anyone working on something like that? Anyone interested in
> writing/using it? (I'm sure there's plenty of applications to use it
> with; I have a few myself)
>
> Cheers,
> Magnus
You may use parsetree from action=expandtemplates for it.
--VasilievVV
roan.kattouw | 7 Jul 2008 19:43
Picon
Favicon

BREAKING CHANGE: limits for prop= modules

As of r37270 [1], the prop=links, prop=templatelinks, prop=langlinks, prop=extlinks,
prop=categories and prop=images modules have limit and continue parameters, just like the list=
modules do. This means they no longer list all links/templates/whatever on a page (which can be bad for
the database), so you'll have to use the old query-continue song to get them all. Note that this doesn't hurt
backwards compatibility, as pre-r37270 versions of MediaWiki will just give you all results at once,
without a <query-continue>. If you really must know in advance whether these prop= modules are limited,
use action=paraminfo:

api.php?action=paraminfo&querymodules=links

If the limits aren't in effect, the limit and continue parameters won't be listed (if you get an error about
paraminfo being an invalid action, the limits are also not in effect, of course, since the introduction of
these limits predates the introduction of action=paraminfo by a long time).

Roan Kattouw (Catrope)

[1] http://svn.wikimedia.org/viewvc/mediawiki/?view=rev&revision=37270
Trevor DeVore | 10 Jul 2008 00:18

API Roadmap?

Hi,

I'm not a MediaWiki user myself but had a request to support  
publishing of content from our documentation software to MediaWiki. I  
found the API docs and I downloaded version 1.12 today and have been  
experimenting with the API.

I noticed that the API does not yet support editing or creating pages  
or uploading of images in version 1.12. I would like to support  
publishing content to MediaWiki so I'm interested in what the roadmap  
is for the API. I read a post in the archives about edit/create being  
worked on, but didn't see any news about image upload. Any information  
the developers can share about this?

Regards,

--

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com
Siebrand Mazeland | 10 Jul 2008 00:29
Picon
Picon
Favicon
Gravatar

Re: API Roadmap?

Hi Trevor.

MediaWiki 1.13, which is expected to be released within a few weeks, will
contain support for editing in the API.

You can find the draft of the RELEASE NOTES in our SVN repository[1]. Look
for the header "API changes in 1.13".

Cheers! Siebrand 

[1]
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/RELEASE-NOTES?view=ma
rkup

-----Oorspronkelijk bericht-----
Van: mediawiki-api-bounces@...
[mailto:mediawiki-api-bounces@...] Namens
Trevor DeVore
Verzonden: donderdag 10 juli 2008 0:18
Aan: mediawiki-api@...
Onderwerp: [Mediawiki-api] API Roadmap?

Hi,

I'm not a MediaWiki user myself but had a request to support publishing of
content from our documentation software to MediaWiki. I found the API docs
and I downloaded version 1.12 today and have been experimenting with the
API.

I noticed that the API does not yet support editing or creating pages or
(Continue reading)

Trevor DeVore | 10 Jul 2008 04:10

Re: API Roadmap?

On Jul 9, 2008, at 6:29 PM, Siebrand Mazeland wrote:

> Hi Trevor.
>
> MediaWiki 1.13, which is expected to be released within a few weeks,  
> will
> contain support for editing in the API.
>
> You can find the draft of the RELEASE NOTES in our SVN  
> repository[1]. Look
> for the header "API changes in 1.13".

Thanks for the link Siebrand. It looks like 1.13 will have significant  
improvements to the API. I noticed an entry for deleting images but  
didn't see any entries relating to image upload. Are there plans to  
add image upload soon or is that a little lower on the list?

Thanks,

Trevor

Re: API Roadmap?


Hi Trevor, 

Have a look at this branch, the upload image feature has been developed, and will be included in the trunk soon.
http://svn.wikimedia.org/viewvc/mediawiki/branches/ApiEdit_Vodafone/
Cheers, 

Rosana Anglés

-----Mensaje original-----
De: mediawiki-api-bounces@...
[mailto:mediawiki-api-bounces <at> lists.wikimedia.org] En nombre de Trevor DeVore
Enviado el: jueves, 10 de julio de 2008 4:11
Para: MediaWiki API announcements & discussion
Asunto: Re: [Mediawiki-api] API Roadmap?

On Jul 9, 2008, at 6:29 PM, Siebrand Mazeland wrote:

> Hi Trevor.
>
> MediaWiki 1.13, which is expected to be released within a few weeks,  
> will
> contain support for editing in the API.
>
> You can find the draft of the RELEASE NOTES in our SVN  
> repository[1]. Look
> for the header "API changes in 1.13".

Thanks for the link Siebrand. It looks like 1.13 will have significant  
improvements to the API. I noticed an entry for deleting images but  
(Continue reading)

javi bueno | 10 Jul 2008 09:20
Picon
Favicon

Problems getting images wap.

Hi guys! I am trying to use project hawpedia using the mediawiki API. In this way, I can get a page with all images from wikipedia. When I am trying to change the API which I want to use from wikipedia API to a mediawiki API, I cannot see the images. I don't Know if the links to the images are bad, if there is a problem in API mediawiki ... It would be very grateful if someone could tell me something about it.
 
Thanks, Javier.

Sigue los principales acontecimientos deportivos en directo. MSN Motor
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@...
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Jools Smyth | 10 Jul 2008 12:53
Picon
Favicon

Re: API Roadmap?

> Thanks for the link Siebrand. It looks like 1.13 will have significant
> improvements to the API. I noticed an entry for deleting images but
> didn't see any entries relating to image upload. Are there plans to
> add image upload soon or is that a little lower on the list?

You could always use a script which uses the api but also has support for
uploading such as mine (low level api access for perl)

http://search.cpan.org/~exobuzz/MediaWiki-API-0.08/

If you wanted to do it in another language, just look at the very simple
upload function noting that you need to be logged in on wikipedia to
upload (which can be done with the api).

Best Regards

Jools

Gmane