def _object_value(self, subject, predicate):
'''
Given a subject and a predicate, returns the value of the object
Both subject and predicate must be rdflib URIRef or BNode objects
If found, the unicode representation is returned, else None
'''
for o in self.g.objects(subject, predicate):
return unicode(o)
return None
评论列表
文章目录