Serializes disambiguated entities to CSV
✓ Published0🌍 Public
CCliffordAnderson
Last edited Oct 30, 2013
Created on Oct 30, 2013
This example extracts named entities from a web-accessible text and serializes only those with geographic coordinates into a CSV file. It uses the Alchemy API’s `URLGetRankedNamedEntities` endpoint via an HTTP POST request, then filters the returned XML for entities containing a `geo` field. The code constructs a `<csv>` element with each record’s text, longitude, and latitude, and outputs the result using BaseX’s `csv:serialize` function. The data source is a raw text file from GitHub, and the output is a clean CSV suitable for mapping.
AI-generated description