MCPcopy Create free account
hub / github.com/alephdata/aleph / items

Method items

aleph/model/entityset.py:180–187  ·  view source on GitHub ↗
(self, authz=None, deleted=False)

Source from the content-addressed store, hash-verified

178 return dict(q.all())
179
180 def items(self, authz=None, deleted=False):
181 q = EntitySetItem.all(deleted=deleted)
182 if authz is not None:
183 ids = authz.collections(authz.READ)
184 q = q.filter(EntitySetItem.collection_id.in_(ids))
185 q = q.filter(EntitySetItem.entityset_id == self.id)
186 q = q.order_by(EntitySetItem.created_at.asc())
187 return q
188
189 def profile(self, judgements=None, deleted=False):
190 q = self.items(deleted=deleted)

Callers 15

profileMethod · 0.95
mergeMethod · 0.95
cooccur.pyFile · 0.45
export_entityFunction · 0.45
name_statsFunction · 0.45
__init__Method · 0.45
dump_profilesFunction · 0.45
statusFunction · 0.45
op_indexFunction · 0.45
_usersMethod · 0.45
collectMethod · 0.45
_entitiesMethod · 0.45

Calls 2

collectionsMethod · 0.80
allMethod · 0.45

Tested by 3

_normalize_dataFunction · 0.36
test_decide_xrefMethod · 0.36
assertDictEqualMethod · 0.36