Knowledge Graphs

Exercise 2.8 - Getting Started

Exercise 2.8. Perform the following tasks using two open-source systems for creating and querying RDF and property graph databases. For RDF, you may use the rdflib Python library. For property graphs, you may use the pypropgraph Python library.
(a) Use rdflib to create an RDF knowledge graph using the data that was conisered in the Section 2 of this chapter. Pose the SPARQL queries considered in the same section. Sample Solution
(b) Use pypropgraph to create the property graph knowledge graph considered in the Section 3 of this chapter. Pose the Cypher queries considered in teh same section. Sample Solution