oc_ocdm.prov.prov_set module
- class oc_ocdm.prov.prov_set.ProvSet(prov_subj_graph_set, base_iri, info_dir='', wanted_label=True)[source]
Bases:
oc_ocdm.abstract_set.AbstractSet
Constructor of the
AbstractSet
class.- Parameters
prov_subj_graph_set (GraphSet) –
base_iri (str) –
info_dir (str) –
wanted_label (bool) –
- Return type
None
- labels: ClassVar[Dict[str, str]] = {'se': 'snapshot of entity metadata'}
- get_entity(res)[source]
Method signature for concrete implementations that allow to retrieve a contained entity identified by its URI.
- Parameters
res (URIRef) – The URI that identifies the requested entity
- Returns
The requested entity if found, None otherwise
- Return type
Optional[ProvEntity]
- add_se(prov_subject, res=None)[source]
- Parameters
prov_subject (GraphEntity) –
res (URIRef) –
- Return type
- get_se()[source]
- Return type
Tuple[SnapshotEntity]