As a user I want to easily reuse data from Wikidata with scripts and applications.
**Problem:** At a Wikidata hackathon (18-19 Oct) the participants couldn't reuse some of the code examples that are provided by the Query UI. Some of these examples are incomplete or have typos.
**Example:** The Java snippet is dirty and contains mistakes which prevent an application from being compiled...
`for (HashMap value : (ArrayList>) rs.get("result").get("rows")) {`
**Acceptance criteria:**
For all the programming languages that are considered:
* The code snippet can be properly executed without requiring any change on it and returns or prints the results of the requested query.
* Tasks of data retrieval are encapsulated in a function/procedure/method and there isn't any data exchange with Wikidata outside that function/procedure/method.
* The code is understandable and consistently formatted (indentation, spaces, line breaks, etc.).
* At least the query and the URL endpoint are easily configurable (e.g., by directly assigning each value to a variable).
* Retrieved data are stored in an iterable or navigable data structure (e.g., an array).
**Open questions:**