Port test_inventory to rdflib