def _object(self, subject, predicate):
'''
Helper for returning the first object for this subject and predicate
Both subject and predicate must be rdflib URIRef or BNode objects
Returns an rdflib reference (URIRef or BNode) or None if not found
'''
for _object in self.g.objects(subject, predicate):
return _object
return None
评论列表
文章目录