Using ctext.org RDF in Python

Resource Description Framework (RDF) support in ctext.org is very new and not well documented. The RDF graph produced by the ctext.org Data Wiki consists of all the entities contained in that system – representing historical people, places, written works, dynasties, eras, etc. – and connections between them in machine-readable format. The user interface allows searching the data directly in various ways, however much more flexibility is available by downloading the complete RDF graph and querying or processing it locally. Below is a simple example of how to get started with this approach in Python using the ctext.org data. To get started with the code below:
  • Download a copy of the demonstration notebook (contents displayed below).
  • Download a copy of the RDF from the Linked Open Data page on ctext.org, unzip the file, and place the extracted file in the same folder as the Jupyter notebook.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply