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.
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
I want to ask is it possible to know the total rows if I use list query? For example, I want to know how many editor are there, before making this kind of request: api.php?action=query&list=allusers&augroup=editor and repeatly using param query-continue aufrom later.
And is it possible to sort the query result. For example by userid or registration time?
A quick question on the wiki search:
I see you can search for a term and operate a query search with wildcard on
Apparently lucene does not support it...did you maybe installed a module to
Skype contact: oggigigi
The new api parameters (already live) uses action=mobileview: offset &
On Tue, Jun 25, 2013 at 2:03 PM, Dan Foy <dfoy(a)wikimedia.org> wrote:
> - Adding Yuri
> Yuri just made a change to support a request from OpenPath to be able to
> limit the amount of data loaded at any one time.
> Yuri, can you provide the specific action that OpenPath is using?
> On Tue, Jun 25, 2013 at 9:35 AM, Tomasz Finc <tfinc(a)wikimedia.org> wrote:
>> On Tue, Jun 25, 2013 at 3:00 AM, Max Semenik <maxsem.wiki(a)gmail.com>
>> >> Max, do you know if the Wikipedia J2ME app depends on WML output from
>> >> the API? If so then we'll need to plan a transition plan for them.
>> > AFAIK, they use action=mobileview (HTML-only) which allows much more
>> > in what gets returned and how much of it.
>> Dan, can you confirm how the J2ME app is pulling content?
> Dan Foy
> Technical Manager, Mobile Partnerships
> Wikimedia Foundation
Starting on July, 2 we will drop support for action=parse returning
WML content. WAP is a rotting corpse for many years already.
Note that we're retaining support for mobileformat=html however it
will eventually become a no-op as we're planning to deprecate as many
HTML transformations for mobile as possible.
Max Semenik ([[User:MaxSem]])
so, I'd like to:
1) set up a search system backend alike wikipedia
2) use the result of wiki search api but redirect them to our db
We set up a system in Solr, wiki is in Lucene.
I would like the results to be shown while typing are the same of wikipedia:
I guess wikipedia search criteria is to search for exact matches of words
Is it correct?
Or does it search also on free text?
What happen if I have a title which is different from title page ?
but title of page is "Claudio Chiappucci" )
Basically I want to have the same results as in the wiki search fields
(which priorities the searches,
e.g. "C" result for "Canada, "Countries of the world", etc.)
Any criteria guideline on how to achieve this in Solr, and to obtain
responsive results as in wiki?
The second option would be to redirect the search of wiki to our db, but i
personally don't like this cause it sound convoluted.
thank you very very much.
Skype contact: oggigigi