From 454cb276dac5536b818cb8a9de15ee497fe49796 Mon Sep 17 00:00:00 2001 From: Damien Goutte-Gattat Date: Fri, 9 Aug 2024 10:15:36 +0100 Subject: [PATCH] Clarify requirements for literal mappings. When describing how to represent literal mappings, use BCP 14 keywords to clarify what exactly is required. --- src/docs/spec-model.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/spec-model.md b/src/docs/spec-model.md index 8887d228..4d12341d 100644 --- a/src/docs/spec-model.md +++ b/src/docs/spec-model.md @@ -100,9 +100,9 @@ The SSSOM model is primarily intended to represent mappings between semantic ent To represent a mapping whose subject (resp. object) is a literal: -* the `subject_type` (resp. `object_type`) slot is set to `rdfs literal`; -* the `subject_label` (resp. `object_label`) slot is set to the literal itself; -* the `subject_id` (resp. `object_id`) slot is left empty. +* the `subject_type` (resp. `object_type`) slot MUST be set to `rdfs literal`; +* the `subject_label` (resp. `object_label`) slot MUST be set to the literal itself; +* the `subject_id` (resp. `object_id`) slot MAY be left empty. The last point is an exception to the normal rules about required slots, which state that a mapping must always have a `subject_id` and an `object_id`. Implementations MUST accept a mapping without a `subject_id` (resp. `object_id`) _if and only if_ the `subject_type` (resp. `object_type`) slot is set to `rdfs literal`.