API for Wikipedia in Objective C? - iphone

Does anybody know if there is an implementation of the wikipedia api in objective c?
which can be used to access and display the information a bit nicer then with the plain website.
I'm thinking of something like the wikipanion app but not so sophisticated.
Thanks
Joerg

I know the question is very old. But just for other ppl who are dealing with the same issue. I wrote a very small library which provides basic access to the Wikipedia API.
You can get it on github:
https://github.com/prine/WikiApiObjectiveC

You can use the MediaWiki API to download the markup text.
Also, why not look at http://en.m.wikipedia.org/ ?

Related

Nice Core-Plot implementations OSX

I am using Core Plot for a little App I am programming at the moment and I was wondering if there are any good looking examples or resources. With good looking I don't mean the google docs Example App ;)
Core Plot includes a number of example apps that demonstrate various features. There is also wiki page on the Core Plot site with links to many apps that use it.
I am not sure that what are you looking for as you have not cleared your question. But i am telling you this link: http://www.johnwordsworth.com/2011/10/adding-charts-to-your-iphone-ipad-app-using-core-plot/ which certainly will help you.

Wikipedia as part of my iOS app

I would like to download information from wikipedia to my iOS app. Firstly, I created simple RSS reader, but I can't download date from wiki. Now, I think that I should create parser for wiki.
What do you think about this? Any ideas?
Thanks,
Tomek
In my opinion, parsing a website is never a good idea. Only the smallest change in the design of the website can break your application and make it unusable. I'd try to get to your data in an alternative way. ;-)
Sandro Meier
Scrapping a web site directly from your app is never a good idea. If you are ever going to do that it is suggested that you do it on a server and provide the data to your app in a well known format, so that site changes can be quickly managed by your server, and as a result, never breaking your app.
Although wikipedia does not have a formal API, it provides some other ways of extracting data from its servers. You should check this link:
http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot#APIs%5Ffor%5Fbots
I know this question is quite old. But I've dealt with the same problem and wrote this very small library. I am using the mediawiki api (Mentioned in the post from Felipe) to get the needed information.
https://github.com/prine/WikiApiObjectiveC

What's the best way to implement facebook on my app?

I've got just one simple silly question:
What's the best way to implement Facebook on my application?
Add an easy UIWebView connecting to the Url of the Faceboook page I want to show;
Implement the API I found in several answer all of you already gave in this forum.
Thank you for your help
Luigi
The answer is "it depends," but IMHO you're asking the wrong question.
A better question would be "which method of integrating with FB would result in a better experience for my users?" That is, would your users be best served by "framing" the standard FB web interface in a UIWebView? Or maybe they'd be happier with just a small piece of FB functionality embedded in your app, like the "upload to FB" function in iMovie. Once you decide exactly what you want to do, how to do it tends to be fairly obvious.
Which way to go depends on what your app does, and how your users will want to do it - and you know that part far better than the rest of us do! :-)
I've answered something similar here:
ShareKit iOS - different content for different platforms
Basically, I used ShareKit which is very popular and indeed was a breeze to add. You can see how easy the code is, in the question above.
Cheers,
Oded.

CHATBOT: Programming a chatbot with Perl

I'm studing Perl language. I think programming a chatbot would be a funny way of studing that language and learn it.
The description of the chatbot I am interested in can be found here.
Does anyone know any manual or website especially focused on programming chatbot in Perl language?
Thank you!
See http://poe.perl.org/?POE_Cookbook - simple bot is described here: http://poe.perl.org/?POE_Cookbook/IRC_Bots
Documentation for Bot::BasicBot, which is a wrapper around POE::Component::IRC. http://www.drdobbs.com/web-development/184416221
Source of famous bot GumbyBrain, which of course uses POE::Component::IRC and Megahal library. Megahal library uses Markov chains to reply to messages.
Don't use Net::IRC - it is not supported anymore.
You can use Chatbot::Eliza and RiveScript for inspiration.
Openclassifier on github is an opensource and has AI implementations, but its in Java though.
Still you can refer it to understand the implementations for chatbot. The reason I am referring this is, that it is a very simplified implementation, without any complex algorithms or datastructures.
You simply copypaste your data and the chatbot is operational with that knowledge. You can refer to my blog over this on below link:
http://miracleclassifier.blogspot.com/2018/02/artificial-intelligent-chatbot-you-can.html
Hope this helps.

Using Soap Web Services in iPhone with wsdl2objc?

I do realize this is a duplicate question, however the only other question is quite old, so I would like to know if anyone has had any recent experience with the latest version of wsdl2objc.
I am doing an application that will communicate with SOAP Web services exposed by a third party application (it only exposes them this way unfortunately). As far as I understand all wsdl2objc does is convert the WSDL to something useful in objective C code. I have also done the tutorial icodeblog intro to soap
So has anyone used the latest version of wsdl2objc?, what is your experience with it?, did you run into any problems with it?. Please let me know. Also some code sample would be really great.
Any information available on using SOAP Web Services with iPhone would be appreciated. Thank you.
-Oscar
My most recent experiences with wsdl2objc is that it's on the right road, but not really there yet. It's definitely the kind of program you'd want. It just may or may not be able to handle the WSDLs you actually have.
Short answer: try it and see if it works for your WSDLs. If it does, hooray. If it doesn't, you have two options. For reasonably simple WSDLs, write the SOAP by hand. This often is actually the easiest approach. If the WSDL is complex, then use gSOAP to get to C++ and then wrap the C++ in Objective-C++ (or use the -c option to gSOAP and wrap the resulting C, whichever you're more comfortable with).
I think this gives a good example of how to configure your environment (for noobs like me)
http://blog.futurebytez.com/2010/05/calling-web-services-using-wsdl2objc.html
The official wiki for wsdl2objc (linked in the article) has a code snippet which gives you the basics.