There is a site on metawiki about the json format which is not up to date (phase 2). Maybe this is what you are looking for: https://meta.wikimedia.org/wiki/Wikidata/Data_model_in_JSON

Severin Wünsch

On Mon, Mar 4, 2013 at 6:25 PM, Jeroen De Dauw <jeroendedauw@gmail.com> wrote:
Hey,

> There are some ids like "dewiki", "enwiki" etc, which I guess can be
> interpreted to corresponding languages "de", "en" respectively. But is there
> a reliable map from these *wiki to the language code? And some are even
> using 3-letter prefix, e.g. gotwiki, xmfwiki.

You cannot infer the language from the site identifier. "enwiki" is a site identifier. The software allows having multiple sites for the same language. For instance you could have an entity that is also described on the English Wikitionary. Or an entity described on a third party website as well, such as a movie on imdb. Unfortunately it looks like we are not yet providing an actual API for accessing this information.


> Are the APIs above ("action=query&prop=revisions" and "actioon=query&list=recentchanges") the supported way to retrieve wikidata.org in realtime?

I suspect this is your best bet for now. We have a mechanism for change propagation to mirrors, though right now the only implementation on top of this that we have is WMF specific. Volunteers and third parties can however create their own implementation suitable for non-WMF use.

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--

_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l




--
Severin Wünsch