From cf3fd22d48c1902bc78c973701b9f8c208eac1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Sun, 18 Oct 2026 18:10:50 +0200 Subject: [PATCH] The resources key skips the content of XML literals An rdf:parseType="Literal" property's content is a value, not RDF (RDF/XML 6), but the key matched *[@rdf:about] anywhere in the document. A host's keys of the same name are merged with this one, so in LinkedDataHub a document whose XML literal held RDF/XML describing the document itself - an assistant turn's stored CONSTRUCT result - got two descriptions back for its own IRI after the host had fixed its own keys, and the page title's ac:label() failed: "Required cardinality of first argument of ac:label() is exactly one; supplied value contains 2 items". Co-Authored-By: Claude Opus 5.5 --- src/translations.xsl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/translations.xsl b/src/translations.xsl index 77df9c3..308c5e6 100644 --- a/src/translations.xsl +++ b/src/translations.xsl @@ -47,8 +47,11 @@ version="3.0"> - + host catalog that names its terms with IRIs resolves through the same lookup. Not the + content of an rdf:parseType="Literal": an XML literal is a value, not RDF (RDF/XML 6), + and a host's keys of the same name are merged with this one - matching a description + inside a literal gave the host two for one IRI --> +