Skip to main content
100%

Oxford Dictionary API, Part III

✓ Published0🌍 Public
CCliffordAnderson
Last edited Feb 3, 2017
Created on Feb 3, 2017

This example demonstrates how to query the Oxford Dictionary API using XQuery, first retrieving definitions for a specified word and then fetching a list of rare art-related terms. The code uses the `http:send-request` function with custom `http:request` and `http:header` elements to authenticate and call the API endpoints. It relies on XQuery 3.1 features, including local functions and the `fn:data()` function to extract definition text, numbering each result sequentially. The data source is the live Oxford Dictionaries API, accessed via its REST endpoints.

AI-generated description

Similar vizzes