Giter VIP home page Giter VIP logo

Comments (12)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
The parsing of redirects, at least the way implemented above, requires that it 
is the 
first recursive call - see attached file for details.

Original comment by [email protected] on 28 Apr 2010 at 3:09

Attachments:

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024

Original comment by [email protected] on 28 Apr 2010 at 7:04

  • Changed state: Accepted

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Could you please try, if these changes solve the problem:
http://code.google.com/p/gwtwiki/source/detail?r=1107

Original comment by [email protected] on 28 Apr 2010 at 7:05

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Works for me! Thanks.

Original comment by [email protected] on 29 Apr 2010 at 2:11

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024

Original comment by [email protected] on 13 May 2010 at 3:28

  • Changed state: Fixed

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Hi axelclk,
Im new on Bliki, and I have the same problem sfisla is talking about - with the 
redirections... I saw that you amde some changes to the bliki.core library.
can you please explain me how to update me files with your file in order to 
handle the redirection issue.
Im using maven (I didnt succed to activate my project without making it a maven 
project.)

Original comment by [email protected] on 5 Jun 2012 at 6:46

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
This has been fixed some time ago - r1107 noted above. What version of bliki 
api are you using?

Original comment by [email protected] on 5 Jun 2012 at 1:17

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Yes, I checked out the bliki code and saw that these changes have already been 
added to the library.
I followed this tutorial exactly:
http://www.integratingstuff.com/2012/04/06/hook-into-wikipedia-using-java-and-th
e-mediawiki-api/
and still, when I search for "Machester United football club" I don't get 
anything, but when I use the dibugger I notice I have a "#REDIRECT[[Machester 
United F.C.]]", means that it doesn't do the recursive call for redirections.
Can you explain what I have to do in order to pass over all those redirection 
and just get the value of what I search for? (please refer to the tutorial in 
your answer as I am not an expert in bliki...)

Original comment by [email protected] on 5 Jun 2012 at 4:44

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
You have a typo in your article text:
"Machester United football club"

versus

"Manchester United football club"

Original comment by [email protected] on 5 Jun 2012 at 5:18

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Its just a typo in the comment...
When I search for "Machester United Football Club" and use the debugger,
I notice that after doing the next line:
List<Page> listOfPages = user.queryContent(listOfTitleStrings);
I get the next value for listOfPages:
[PageID: 2983919; NS: 0; Title: Manchester United Football Club; 
Image url: 
Content:
#REDIRECT [[Manchester United F.C.]]]

Original comment by [email protected] on 5 Jun 2012 at 5:46

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
OK.
There's a IWikModel#getRedirectLink() method which returns the parsed redircet 
link after parsing the first wiki text.
With this redirect title string you can again use the Wikipedia API.

See the modified HTMLCreatorExample I've commited in r5527.

The Example creates two files.

The first file  
  C:\temp\Manchester_United_Football_Club.html
contains no visible HTML.

The second file
   C:\temp\Manchester_United_F.C..html
contains the rendered redirect title.

Original comment by [email protected] on 5 Jun 2012 at 6:58

from gwtwiki.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Thank You very much!
Now I can handle redirections so thank's:)

Original comment by [email protected] on 6 Jun 2012 at 12:22

from gwtwiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.