code: def _get_triplet_value(self, graph, identity, rdf_type):
          
          value = graph.value(subject=identity, predicate=rdf_type)
          return value.toPython() if value is not None else value
docs: Get a value from an RDF triple