Hello,
I am writing a Java program to extract the abstract of the wikipedia page
given the title of the wikipedia page. I have done some research and found
out that the abstract with be in rvsection=0
So for example if I want the abstract of 'Eiffel Tower" wiki page then I am
querying using the api in the following way.
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Eiffel…
and parse the XML data which we get and take the wikitext in the tag <rev
xml:space="preserve"> which represents the abstract of the wikipedia page.
But this wiki text also contains the infobox data which I do not need. I
would like to know if there is anyway in which I can remove the infobox data
and get only the wikitext related to the page's abstract Or if there is any
alternative method by which I can get the abstract of the page directly.
Looking forward to your help.
Thanks in Advance
Aditya Uppu
When list=allusers is used with auactiveusers, a property 'recenteditcount'
is returned in the result. In bug 67301[1] it was pointed out that this
property is including various other logged actions, and so should really be
named something like "recentactions".
Gerrit change 130093,[2] merged today, adds the "recentactions" result
property. "recenteditcount" is also returned for backwards compatability,
but will be removed at some point during the MediaWiki 1.25 development
cycle.
Any clients using this property should be updated to use the new property
name. The new property will be available on WMF wikis with 1.24wmf12, see
https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.
[1]: https://bugzilla.wikimedia.org/show_bug.cgi?id=67301
[2]: https://gerrit.wikimedia.org/r/#/c/130093/
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
For performance reasons,[1] when "miser mode" is enabled, as it is on WMF
wikis, queries to list=allpages using apfilterredir=redirects and
apfilterredir=nonredirects may begin returning fewer than the requested
aplimit results before continuation. In extreme cases, zero results may be
returned.
This change[2] has just been made and will be deployed in the next few
hours so Special:AllPages may be re-enabled.
This is not classified as a breaking change since the API has reserved the
right (since 2009[3] if not earlier) to do this sort of thing as it may
become necessary.
[1]: https://phabricator.wikimedia.org/T160916
[2]: https://gerrit.wikimedia.org/r/#/c/343681/
[3]: https://phabricator.wikimedia.org/rSVN46845
--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
Hello, my name is Guillem and I'm a student that I'm working in Liquid
Galaxy project, and now I have some questions and doubts that I would like
to resolve to continue with the project.
I have been working with WIkimedia API, I found some information about it
and I tried diferent actions to get responses and compare. For example, in
my case I want to obtain the most populated cities in the world.
First of all, my query will be:
" https://en.wikipedia.org/w/api.php?action=query&format=xml
&titles=List_of_cities_proper_by_population&prop=revisions&rvprop=content "
(in this page there are a list of most populated cities in the world)
The response is all the Wikipedia page, and the information text is inside
<rev> tag. Then, my task is to parse the text response and obtain the
cities name in the list. I would like to know if ther are some posibility
to obtain only the cities list, and it will be more easy to get it.
Once I have the names of the cities, the next step is to obtain the
coordinates for each one. Here I have two possibilities: a new query with
API (" https://en.wikipedia.org/w/api.php?action=query&format=xm
l&titles=Shanghai&prop=revisions&rvprop=content ") I put the city name in
the parameter "title", and then the response is so extended, but I get only
the Infobox part to obtein the mainly information about the city.
And the second option is to use bdpedia, I find this option searching and
it also can be a posibility, but my doubt is: when I search "
dbpedia.org/data/Tokyo <http://dbpedia.org/resource/Tokyo> " the properties
and values are the same in the wikimedia page for the city? I have
discoverd that I can obtain the response in json or xml format.
In this way, I could get some information about the city, and search for
each tag or property that is well identified.
I haven't found the way to obtain more detailed some information about in
this case a city (I would like to have the mainly information organizated
in tags and then it will be more easy to obtain the results). So, the other
option is to do the proces that I have explained, this requires more work
but also will be valid.
Thanks for you time
your sincerely,
Guillem.