WikiApiary:Collect Semantic MediaWiki usage setup

WikiApiary collects basic Semantic MediaWiki information using the Semantic MediaWiki SMWInfo API method which provides a count of properties and other basic information. This page describes how to enable WikiApiary to collect information on how Semantic MediaWiki queries are used on the site and how widely it is deployed. Enabling Semantic usage collection adds a much deeper set of data for Semantic MediaWiki websites.

You can see examples of this data being used on WikiApiary, see the graphs for query count, pages with queries, query sizes and query formats.

Setup
There are two steps to enabling semantic usage collection from a wiki:


 * 1) Add the Project:SMWExtInfo wiki page to the wiki being collected from.
 * 2) Enable Collect semantic usage for the website on WikiApiary.

SMWExtInfo is a regular wiki page with a number of  queries in it. The page outputs JSON formatted data which is pulled via the MediaWiki API using the  method. The queries in this page depend on the data that is created by Semantic MediaWiki 1.8 and later. If you do not have Semantic MediaWiki 1.8 you must upgrade in order to use this functionality.

After verifying you have Semantic MediaWiki 1.8 or greater, create a page in the project namespace called SMWExtInfo. Create Project:SMWExtInfo and place the following wikitext into the page. Note that you have to use the localised version of the wikitext according to you wiki instance's default language for the languages provided below. All other languages use the "en" version. (You can also get the wiki text from the raw output of WikiApiary's SMWExtInfo.)

= en (default) =

= ca =

= de =

= el =

= es =

= fr =

= nl =

Here is the URL for WikiApiary, replace with the path to your API endpoint.

https://wikiapiary.com/w/api.php?action=parse&page=Project:SMWExtInfo&prop=text&disablelimitreport=1&format=json

After creating this page then enable Semantic usage and data will start being retrieved.

Questions

 * I have feedback and improvements on how this function works. How do I share that with you?
 * Use the |talk page.