Hi,
You can now create blank node with RDFlib, however, you need to create the blank node with the new BNode() method of the graph object, as in the following example:
import rdflib
graph = default_world.as_rdflib_graph()
bn = graph.BNode()
with onto:
graph.add((bn, rdflib.URIRef("
http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), rdflib.URIRef("
http://www.w3.org/2002/07/owl#Class")))
Jiba