RiC-O entities

Optional module

  • Install: included in pip install cvcdocdb (no extra dependencies).

  • Import: from cvcdocdb.rico_entities import Thing, Agent, RecordResource, ... — import cvcdocdb does not import this module.

cvcdocdb.rico_entities holds the entity classes generated from the RiC-O ontology (Records in Contexts, the ICA ontology for archival description) with RDF / OWL ontology conversion and Schema-based class generation: 677 Node/WeakNode/ Relation/WeakRelation subclasses. Thing is the single strong (root) node, and every other entity is a WeakNode.

The loader cvcdocdb.exemples.load_ric_o_naf.load_ric_o_naf() fills a graph (any backend) with RiC-O data from the French National Archives.

Tutorials

The same RiC-O model and loader on each backend:

Backend

Tutorial

Neo4jGraph

RiC-O — Graph Model Demo

NetworkXGraph

RiC-O — In-Memory Demo (NetworkX)

API

The classes are generated and have no methods of their own beyond their constructors, so they aren’t listed one by one here. See the module source or regenerate it as shown in RDF / OWL ontology conversion.

Auto-generated entity classes from schema.