This blog post goes over three basic tasks for consuming RDF with Python: Fetching the data; Parsing the data returned into a graph; Traversing the graph to display the data. It also includes a detailed breakdown of a piece of functional code that extracts from a virtual graph four sets of values: Name(s) of the Creative Work; Name(s) of the Author(s); Description of the Creative Work;
Name(s) of the Subject(s).
URL: http://www.oclc.org/developer/news/2016/making-sense-of-linked-data-with-python.en.html
Keywords: Python, RDFLib, Query, JSON-LD
Author: Mixter, Jeff
Publisher: OCLC (Online Computer Library Center)
Date created: 2016-06-10 04:00:00.000
Language: http://id.loc.gov/vocabulary/iso639-2/eng
Time required: P20M
Educational use: instruction
Educational audience: student
Interactivity type: expositive
- Uses RDF programming libraries to extract RDF data from CSV files, databases, or web pages.
- Uses RDF-specific programming methods to iterate over components of RDF data.
- Uses utilities and convenience functions the provide shortcuts for frequently used patterns, such as matching the multiple label properties used in real data.