oc_ocdm.graph.graph_entity module
- class oc_ocdm.graph.graph_entity.GraphEntity(g, g_set, res=None, res_type=None, resp_agent=None, source=None, count=None, label=None, short_name='', preexisting_graph=None)[source]
Bases:
oc_ocdm.abstract_entity.AbstractEntity
Constructor of the
AbstractEntity
class.- Parameters
g (Graph) –
g_set (GraphSet) –
res (URIRef) –
res_type (URIRef) –
resp_agent (str) –
source (str) –
count (str) –
label (str) –
short_name (str) –
preexisting_graph (Graph) –
- Return type
None
- BIRO: ClassVar[Namespace] = 'http://purl.org/spar/biro/'
- C4O: ClassVar[Namespace] = 'http://purl.org/spar/c4o/'
- CO: ClassVar[Namespace] = 'http://purl.org/co/'
- CITO: ClassVar[Namespace] = 'http://purl.org/spar/cito/'
- DATACITE: ClassVar[Namespace] = 'http://purl.org/spar/datacite/'
- DCTERMS: ClassVar[Namespace] = 'http://purl.org/dc/terms/'
- DEO: ClassVar[Namespace] = 'http://purl.org/spar/deo/'
- DOCO: ClassVar[Namespace] = 'http://purl.org/spar/doco/'
- FABIO: ClassVar[Namespace] = 'http://purl.org/spar/fabio/'
- FOAF: ClassVar[Namespace] = 'http://xmlns.com/foaf/0.1/'
- FR: ClassVar[Namespace] = 'http://purl.org/spar/fr/'
- FRBR: ClassVar[Namespace] = 'http://purl.org/vocab/frbr/core#'
- LITERAL: ClassVar[Namespace] = 'http://www.essepuntato.it/2010/06/literalreification/'
- OA: ClassVar[Namespace] = 'http://www.w3.org/ns/oa#'
- OCO: ClassVar[Namespace] = 'https://w3id.org/oc/ontology/'
- PRISM: ClassVar[Namespace] = 'http://prismstandard.org/namespaces/basic/2.0/'
- PRO: ClassVar[Namespace] = 'http://purl.org/spar/pro/'
- short_name_to_type_iri: ClassVar[Dict[str, URIRef]] = {'an': rdflib.Namespace.Annotation, 'ar': rdflib.Namespace.RoleInTime, 'be': rdflib.Namespace.BibliographicReference, 'br': rdflib.Namespace.Expression, 'ci': rdflib.Namespace.Citation, 'de': rdflib.Namespace.DiscourseElement, 'id': rdflib.Namespace.Identifier, 'pl': rdflib.Namespace.SingleLocationPointerList, 'ra': rdflib.Namespace.Agent, 're': rdflib.Namespace.Manifestation, 'rp': rdflib.Namespace.InTextReferencePointer}
- property to_be_deleted: bool
- property was_merged: bool
- property merge_list: Tuple[GraphEntity]
- merge(other)[source]
WARNING:
GraphEntity
is an abstract class that cannot be instantiated at runtime. As such, it’s only possible to execute this method on entities generated fromGraphEntity
’s subclasses. Please, refer to their documentation of the merge method.- Parameters
other (GraphEntity) – The entity which will be marked as to be deleted and whose properties will be merged into the current entity.
- Raises
TypeError – if the parameter is of the wrong type
- Returns
None
- Return type
None