From 97c6fdadb6d61d24950d8a5beccf10b49370f7ae Mon Sep 17 00:00:00 2001
From: Anatoly Scherbakov
+ TODO: Implementations for Extended Internal Representation.
+ YamlLdErrorCode
Implementations
- TODO
+ Convert Extended YAML-LD to Basic YAML-LD and back
@@ -2422,6 +2431,25 @@ extended_to_basic(extended_document: YAML-LD) → YAML-LD
+
basic_to_extended(basic_document: JSON-LD | YAML-LD) → YAML-LD
basic_to_extended(basic_document: YAML-LD) → YAML-LD
+
Convert Extended YAML-LD to Basic YAML-LD and back
cases.
Generally, these two equalities do not hold:
+ +extended_to_basic(basic_to_extended(document)) = document
basic_to_extended(extended_to_basic(document)) = document
+ When the extended → basic conversion resolves YAML tags
+ we no longer know where the original document used tags and where
+ it used @type
calls. Thus, information is lost.
+
+ Both of these functions lose information about anchors and + references because they're resolved by the YAML processor + underlying the implementation. +
+