From 3c3255e2b9b0b66014bba66272e714beb3aba6eb Mon Sep 17 00:00:00 2001 From: matthias Date: Wed, 22 Nov 2023 23:20:57 +0100 Subject: [PATCH] Support namespace declaration on typed elements --- test/RdfXmlParser-test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/RdfXmlParser-test.ts b/test/RdfXmlParser-test.ts index 80a62a1..1b753e6 100644 --- a/test/RdfXmlParser-test.ts +++ b/test/RdfXmlParser-test.ts @@ -982,6 +982,19 @@ abc`)).rejects.toBeTruthy(); ]); }); + + it('declaration of the namespace on a typed resource element', async () => { + return expect(await parse(parser, ` + + + +`)) + .toBeRdfIsomorphic([ + quad('http://example.com', + 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://purl.org/dc/terms/Standard'), + ]); + }); + it('cdata support', async () => { return expect(await parse(parser, `