Contents

Overview

"Wikipedia API beta" allows users to access a number of valuable services such as Wikipedia Thesaurus and Wikipedia Ontology (coming soon). WSDL can be accessed from the following URL. Now, English and Japanese are supported.

http://dev.sigwp.org/WikipediaOntologyAPIv4/Service.asmx?WSDL

The WSDL is available on the WWW, thus it lets you embed the power of our Wikipedia Thesaurus in your own applications (both Web-based and non-Web-based) with our XML-Web service.

API list

Getting Started (Visual Studio, C#)

First of all, you should open the WSDL dialogue by selecting 1)Main menu -> 2)Project -> 3)Add a Web service. (We apologize that we cannot provide English screen shots at the moment.)

Image:Getting_vs1.png

Next, type the following URL into the text box and push the "Add the reference" button.

http://dev.sigwp.org/WikipediaOntologyAPIv4/Service.asmx?WSDL

Image:Getting_vs2.png

Now, everything should work well. Easy, isn't it?

The following code example shows the basic code to extract a list of related terms for the query "Microsoft" by using Wikipedia Thesaurus.

org.wikipedia_lab.Service service = new org.wikipedia_lab.Service();
uint iID = service.GetTopCandidateIDFromKeyword("Microsoft", "English");
DataSet ds = service.GetThesaurusDS(0, iID, 0, "English");
MessageBox.Show(ds.GetXml());

If you want to access to Japanese thesaurus, you should replace "English" into "Japanese". The data set can be binded to any data control such as a "GridView" or a "DataList". All you have to do is just to add the following code to the above code.

DataList1.DataSource = ds;
DataList1.DataBind();

Quite simple. Have fun.

Getting Started (Java)

Under construction. Please be patient.

Getting Started (PHP)

Under construction. Please be patient.

Getting Started (Perl)

Under construction. Please be patient.

Navigation

Tool Box

Search