This documentation includes examples on the following subjects: 1) creating named graphs and working with the conjunction of all the graphs; 2) registering new mappings between literal datatypes and Python objects; 3) adding custom evaluation functions to handle certain SPARQL Algebra elements; 4) overloading Python operators on URIRefs to allow for creating path operators directly in Python; 5) binding variables,; 6) processing RDFa data from the Web. These examples all live in ./examples in the source-distribution of RDFLib.
Keywords: Python, SPARQL, RDFa
Time required: P30M
Educational use: instruction
Educational audience: student
Interactivity type: expositive
- Programatically infers triples using custom functions or methods.
- Uses RDF programming libraries to extract RDF data from CSV files, databases, or web pages.
- Understands how components of the RDF data model (datasets, graphs, statements, and various types of node) are expressed in the RDF library of a given programming language by constructs such as object
- Uses utilities and convenience functions the provide shortcuts for frequently used patterns, such as matching the multiple label properties used in real data.