From 629f302047664dfac8c275193cf5b1cb20c2f97f Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Mon, 8 Apr 2024 11:58:26 +0300 Subject: [PATCH 1/2] Update docs for entity reference --- src/sssom_schema/schema/sssom_schema.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sssom_schema/schema/sssom_schema.yaml b/src/sssom_schema/schema/sssom_schema.yaml index 79c5a1ed..4185ee2d 100644 --- a/src/sssom_schema/schema/sssom_schema.yaml +++ b/src/sssom_schema/schema/sssom_schema.yaml @@ -64,7 +64,10 @@ enums: types: EntityReference: typeof: uriorcurie - description: A reference to a mapped entity. This is represented internally as a string, and as a resource in RDF + description: | + A reference to an entity involved in the mapping. + In the JSON and TSV serialisation, an entity reference MUST be a CURIE. + In the RDF-based serialisations, an entity reference MUST be an IRI/URI. base: str uri: rdfs:Resource From 4a2121a8bae5d3c2a41b0be48e90b30d891130e5 Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Fri, 12 Apr 2024 14:56:51 +0300 Subject: [PATCH 2/2] Add see_also statement to EntityReference Adding a see_also link to the TSV docs in the spec to the data model and removing the serialisation specific comments --- src/sssom_schema/schema/sssom_schema.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sssom_schema/schema/sssom_schema.yaml b/src/sssom_schema/schema/sssom_schema.yaml index 4185ee2d..ca9928bf 100644 --- a/src/sssom_schema/schema/sssom_schema.yaml +++ b/src/sssom_schema/schema/sssom_schema.yaml @@ -66,10 +66,10 @@ types: typeof: uriorcurie description: | A reference to an entity involved in the mapping. - In the JSON and TSV serialisation, an entity reference MUST be a CURIE. - In the RDF-based serialisations, an entity reference MUST be an IRI/URI. base: str uri: rdfs:Resource + see_also: + - https://mapping-commons.github.io/sssom/spec/#tsv slots: mirror_from: