About ICA Records in Contexts Ontology (RiC-O)

An information website about Records in Contexts Ontology (RiC-O).

View the Project on GitHub ICA-EGAD/RiC-O

Migrating data from RiC-O 0.2 to RiC-O 1.0

Last updated on February 6th, 2024

Though the following information and recommendations do not for now pretend to be exhaustive, we hope that they can help the teams which have already produced datasets conforming to RiC-O (thus to RiC-0 0.2) to make them compliant with RiC-O 1.0.

RiC-O 1.0, which is the first stable and complete version of RiC ontology, and thus a major milestone in the development of the standard, introduces some new components; it also brings some changes on the specifications of the v0.2 components: the qualified names, definitions, domains or ranges of some have changed. Besides, some components have been removed. In other words, RiC-O 1.0 is not, as a whole, compatible with RiC-O 0.2. This is why, if you have been using RiC-O 0.2 and want to move to the first official version of the RiC ontology (which we would recommend), you may need to modify your data.

We will mainly focus on the most significant changes made to RiC-O 0.2 components, starting with the ones that concern the core of RiC-O (i.e. everything but the Relation classes and their properties). We will also emphasize some additions that may be very useful in some projects.

Before modifying your data, in order to get a more precise understanding of what has to be done in your dataset, you should, in addition to reading this text:

In the following lines, we use the rico prefix only for RiC-O 1.0 components.

Changes affecting the core of RiC-O

A new model for Dates

Though this is the main change, it will affect your data only if you have instantiated the Date classes. In many projects, dates are expressed using RiC-O datatype properties, where almost nothing has changed.

The three v0.2 subclasses of the rico:Date class (DateSet, DateRange and SingleDate) have been removed. As a consequence, any instance of these classes should be modified and declared as being of type rico:Date.

In addition to these changes:

Changes made to other ‘core’ classes

A rico:MandateType class was created, as a subclass of rico:RuleType, along with the two object properties needed to connect instances of this class to instances of rico:Mandate.

Changes made to the ‘core’ datatype properties

In addition to the datatype properties whose domain is rico:Date and which are quoted above, you should pay attention to the following changes:

A new rico:length property was created, subproperty of rico:measure, with domain rico:Thing.

A new rico:destructionDate property was created, subproperty of rico:endDate, with domain rico:Thing.

Changes made to the ‘core’ object properties

The following changes have been made:

In addition to these changes, many object properties have been added, which may help to produce more precise data, or data which would be easier to process. The inverse properties were also created, though we are not mentioning them below.

Last but not least, object properties have been created under the following existing properties, in order to distinguish past and present relations, and, as concerns present relations, to get transitive properties:

For example, rico:directlyIncludes can now be used to connect a Record Set and its direct present members, and rico:includesTransitive can be inferred from this, or created, to connect a Record Set and its present, direct or indirect, members (e.g. a fonds and an item in this fonds). This can be applied when you want to generate data from a tree of EAD c elements. Rico:included can be used to connect a Record Set and a former member of this Record Set.

The image below shows the hierarchy of properties under rico:includesOrIncluded, as displayed by Protégé Desktop.

images/hasOrPart_hierarchyOfProperties.png

Rico:directlyFollowsInSequence can now be used to connect a Record Resource and its direct following sibling in a sequence of Record Resources. Rico:followsInSequenceTransitive can be inferred from this property, or created, to connect a Record Resource and any of its following siblings in a sequence. This can be applied when you want to generate data from a sequence of EAD c elements. On this topic see also issue 41, and issue 97.

Changes made to the system of Relation classes

The AgentOriginationRelation was replaced with rico:OrganicProvenanceRelation, subclass of a new rico:OrganicOrFunctionalProvenanceRelation class.

The source datatype property was replaced with rico:relationSource datatype property, with domain rico:Relation. Same for the certainty datatype property, which was replaced with rico:relationCertainty.

As already said above, the hasSource object property, whose domain included rico:Relation and whose range was the union of rico:Agent and rico:RecordResource, was replaced with a rico:isEvidencedBy object property, with domain rico:Relation only and range rico:RecordResource. Same for the inverse property, isSourceOf, which became rico:evidences.

The Relation classes have been rolified, for the reasons, and following the method and pattern, explained here.

As a consequence:

Again, you can read much more details about this on the page related to issue 67.

Here is an example of what has changed, for a rico:LeadershipRelation.

Figure 1 shows how this relation is expressed using RiC-O 0.2.

images/a-complex-relation-and-its-shortcut_inRiC-O_0.2.png

Figure 2 shows how the same relation is now expressed using RiC-O 1.0.

images/a-complex-relation-and-its-shortcut_inRiC-O_1.0.png

The image below shows the RDF/XML data that corresponds to Figure 2.

images/rico_LeadershipRelation.png

The rico:LeadershipRelation itself is now defined as follows in RiC-O 1.0 (see the ontology file or HTML page to get the full specification):

images/rico_LeadershipRelation.png

Warning

Suppose you want to be able, in your dataset, to use the property path quoted in the caption of Figure 2 above (rico:thingIsSourceOfRelation/rico:leadershipRelation_role/rico:relationHasTarget), and any similar property path involving some *_role property, directly in SPARQL queries, in order to traverse the relations you have instantiated.

Most of graph databases do not support for now the OWL 2 owl:hasSelf declaration that is included in the definition or the Relation classes. So they cannot infer the triple that uses the *_role property and connects the instance of the Relation class to itself, from the assertion that the instance is a Relation (for example, if you assert that an entity is a rico:LeadershipRelation, the graph database you use will most probably not be able to infer the triple that connects this instance of the rico:LeadershipRelation to itself using rico:leadershipRelation_role).

So, in order to be able to use such property paths, you should, as said in a comment of the RDF/XML example above, either also generate the triple that connects each instance of a Relation to itself in your RiC-O 1-0 dataset, before importing it into the graph database, or add it to the dataset, once imported, using for example SPARQL Update.

Also, note that, once such property paths exist in your dataset, the shortcut triples like the two ones shown in the RDF/XML example above will be inferred automatically from the property chain axioms declared in RiC-O 1.0 by a OWL-RL reasoner. However, if your graph database is not configured to use such a reasoner and if you wish to use the shortcuts to query the data, you should also generate at least one of these two shortcut triples, either before or after importing the data in your graph base.