Monday, February 25, 2013

LINQToWiki (yes, even Wikipedia)

Wikipedia - User:Svick/LinqToWiki

LinqToWiki is a library for accessing MediaWiki wikis (including Wikipedia) through the API from .Net languages like C# and VB.NET.

It can be used to do almost anything that can be done from the web interface and more, including things like editing articles, listing articles in categories, listing all kinds of links on a page and much more. Querying the various lists available can be done using LINQ queries, which then get translated into efficient API requests.

The library is strongly-typed, which means it should be hard to make invalid requests and it also makes it easy to discover available methods and properties though IntelliSense

SNAGHTMLa9c940cSNAGHTMLa9d3b52

LinqToWiki

LinqToWiki is a library for accessing sites running MediaWiki (including Wikipedia) through the MediaWiki API from .Net languages like C# and VB.NET.

It can be used to do almost anything that can be done from the web interface and more, including things like editing articles, listing articles in categories, listing all kinds of links on a page and much more. Querying the various lists available can be done using LINQ queries, which then get translated into efficient API requests.

The library is strongly-typed, which means it should be hard to make invalid requests and it also makes it easy to discover available methods and properties though IntelliSense.

Because the API can vary from wiki to wiki, it's necessary to configure the library thorough an automatically generated assembly.

...

SNAGHTMLa9b6f4d

The best part is the source for the library is available too. That's officailly cool... :)

SNAGHTMLa9ee4ba

 

(via reddit - LinqToWiki: A strongly typed library for accessing the Wikipedia API)

No comments: