예제 #1
0
 def collection(self):
     collection_uri = self.rels_ext.content.value(
         subject=self.uriref, predicate=rdfns.relsext.isMemberOfCollection)
     if collection_uri:
         return CollectionObject(
             self.api,
             str(collection_uri).replace('info:fedora/', ''))
예제 #2
0
 def setUp(self):
     # use an in-ingested collection object with a mock API for now (until we need more)
     self.coll = CollectionObject(Mock())