Import RDF Data
Version 12 adds support for representing RDF (Resource Description Framework) data and converters for various of its serialization formats. Once imported, the data can be queried using the built-in SPARQL query evaluator.
Import a catalog of genres from the Library of Congress.
The result is an RDFStore object. It displays useful information like the triple count. You can query it using SPARQL. To start, get a list of properties used by the store.
Extract genres and their parent genres.
Now you can make a graph, linking each genre to its parent genre.
Find the "top" genres by looking for genres that do not have a "parent".
Make a word cloud with the function WordCloud.