From bd5526536b0509e9bc26568ab5c0a40dd24375d0 Mon Sep 17 00:00:00 2001 From: Silvano Cirujano Cuesta Date: Mon, 22 Jul 2024 23:13:40 +0200 Subject: [PATCH] fix: decouple 'curie' uri from 'uri' uri The URIs assigned to the different types identify the types themselves, as a consequence two different types with the same URI would be expected to be synonyms (different names with the same meaning). This is the case for the types CURIE and URIorCURIE: 1. CURIE had the URI 'xsd:anyURI' (the same as for URIs). 2. URIorCURIE had the URI 'xsd:string' (the same as for strings). This patch assign both CURIE and URIorCURIE their own unique URIs to differentiate the different types from each other. Signed-off-by: Silvano Cirujano Cuesta --- linkml_model/model/schema/types.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkml_model/model/schema/types.yaml b/linkml_model/model/schema/types.yaml index 6be79908..30894f32 100644 --- a/linkml_model/model/schema/types.yaml +++ b/linkml_model/model/schema/types.yaml @@ -123,7 +123,7 @@ types: If you are authoring schemas in LinkML YAML, the type is referenced with the lower case "date_or_datetime". uriorcurie: - uri: xsd:anyURI + uri: linkml:UriOrCurie base: URIorCURIE repr: str description: a URI or a CURIE @@ -131,7 +131,7 @@ types: If you are authoring schemas in LinkML YAML, the type is referenced with the lower case "uriorcurie". curie: - uri: xsd:string + uri: linkml:Curie base: Curie repr: str description: a compact URI