From 370789364c61d2785051c7fe9ea709c183da91c3 Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Thu, 29 Feb 2024 08:34:36 +0100 Subject: [PATCH] RMLTC0002c-{XML,JSON}: remove Key values are optional in XML and JSON. Engines should not fail if a key is not present in an XML or JSON document like they should with tabular data like SQL or CSV. Fixes https://github.com/kg-construct/rml-core/issues/101 --- test-cases/RMLTC0002c-JSON/mapping.ttl | 15 --------------- test-cases/RMLTC0002c-JSON/student.json | 6 ------ test-cases/RMLTC0002c-XML/mapping.ttl | 15 --------------- test-cases/RMLTC0002c-XML/student.xml | 8 -------- 4 files changed, 44 deletions(-) delete mode 100644 test-cases/RMLTC0002c-JSON/mapping.ttl delete mode 100644 test-cases/RMLTC0002c-JSON/student.json delete mode 100644 test-cases/RMLTC0002c-XML/mapping.ttl delete mode 100644 test-cases/RMLTC0002c-XML/student.xml diff --git a/test-cases/RMLTC0002c-JSON/mapping.ttl b/test-cases/RMLTC0002c-JSON/mapping.ttl deleted file mode 100644 index f84e578..0000000 --- a/test-cases/RMLTC0002c-JSON/mapping.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix ex: . -@prefix rml: . - - a rml:TriplesMap ; - rml:logicalSource [ a rml:LogicalSource ; - rml:iterator "$.students[*]" ; - rml:referenceFormulation rml:JSONPath ; - rml:source <_:b545073> ] ; - rml:predicateObjectMap [ rml:objectMap [ rml:reference "IDs" ] ; - rml:predicate ex:id ] ; - rml:subjectMap [ rml:template "http://example.com/{ID}/{Name}" ] . - -<_:b545073> a rml:RelativePathSource ; - rml:path "student.json" . - diff --git a/test-cases/RMLTC0002c-JSON/student.json b/test-cases/RMLTC0002c-JSON/student.json deleted file mode 100644 index 0f6f797..0000000 --- a/test-cases/RMLTC0002c-JSON/student.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "students": [{ - "ID": 10, - "Name":"Venus" - }] -} diff --git a/test-cases/RMLTC0002c-XML/mapping.ttl b/test-cases/RMLTC0002c-XML/mapping.ttl deleted file mode 100644 index 712c7c5..0000000 --- a/test-cases/RMLTC0002c-XML/mapping.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix ex: . -@prefix rml: . - - a rml:TriplesMap ; - rml:logicalSource [ a rml:LogicalSource ; - rml:iterator "/students/student" ; - rml:referenceFormulation rml:XPath ; - rml:source <_:b431561> ] ; - rml:predicateObjectMap [ rml:objectMap [ rml:reference "IDs" ] ; - rml:predicate ex:id ] ; - rml:subjectMap [ rml:template "http://example.com/{ID}/{Name}" ] . - -<_:b431561> a rml:RelativePathSource ; - rml:path "student.xml" . - diff --git a/test-cases/RMLTC0002c-XML/student.xml b/test-cases/RMLTC0002c-XML/student.xml deleted file mode 100644 index b2a6a9a..0000000 --- a/test-cases/RMLTC0002c-XML/student.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - 10 - Venus - -