oc_ocdm.graph.graph_set module
- class oc_ocdm.graph.graph_set.GraphSet(base_iri, info_dir='', supplier_prefix='', wanted_label=True)[source]
Bases:
oc_ocdm.abstract_set.AbstractSet
Constructor of the
AbstractSet
class.- Parameters
base_iri (str) –
info_dir (str) –
supplier_prefix (str) –
wanted_label (bool) –
- Return type
None
- labels: ClassVar[Dict[str, str]] = {'an': 'annotation', 'ar': 'agent role', 'be': 'bibliographic entry', 'br': 'bibliographic resource', 'ci': 'citation', 'de': 'discourse element', 'id': 'identifier', 'pl': 'single location pointer list', 'ra': 'responsible agent', 're': 'resource embodiment', 'rp': 'in-text reference pointer'}
- 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[GraphEntity]
- add_an(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.reference_annotation.ReferenceAnnotation
- add_ar(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
- add_be(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.bibliographic_reference.BibliographicReference
- add_br(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.bibliographic_resource.BibliographicResource
- add_ci(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
- add_de(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.discourse_element.DiscourseElement
- add_id(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
- add_pl(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.pointer_list.PointerList
- add_rp(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.reference_pointer.ReferencePointer
- add_ra(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.responsible_agent.ResponsibleAgent
- add_re(resp_agent, source=None, res=None, preexisting_graph=None)[source]
- Parameters
resp_agent (str) –
source (Optional[str]) –
res (Optional[rdflib.URIRef]) –
preexisting_graph (Optional[rdflib.Graph]) –
- Return type
oc_ocdm.graph.entities.bibliographic.resource_embodiment.ResourceEmbodiment
- get_orphans()[source]
- Return type
List[GraphEntity]
- remove_orphans_from_triplestore(ts_url, resp_agent)[source]
- Parameters
ts_url (str) –
resp_agent (str) –
- Return type
None
- get_an()[source]
- Return type
Tuple[ReferenceAnnotation]
- get_be()[source]
- Return type
Tuple[BibliographicReference]
- get_br()[source]
- Return type
Tuple[BibliographicResource]
- get_de()[source]
- Return type
Tuple[DiscourseElement]
- get_id()[source]
- Return type
Tuple[Identifier]
- get_pl()[source]
- Return type
Tuple[PointerList]
- get_rp()[source]
- Return type
Tuple[ReferencePointer]
- get_ra()[source]
- Return type
Tuple[ResponsibleAgent]
- get_re()[source]
- Return type
Tuple[ResourceEmbodiment]