]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-map-reification.lisp
Document qualified disposition of remaining XTM corpus cases
[topic-maps.git] / tests / xtm-map-reification.lisp
index 12e08abbbe8758fe8102102644493cd63df260cb..ca5bf1e3a25409dc7703f0d012caa870c250f9da 100644 (file)
     (map-reifier-error-control (first row) (second row) 'xtm-rejection (third row)))
   (dolist (row '(("name-with-variant-excluded-datatype" "<topic id='a'><name><value>N</value><variant reifier='#r'><scope><topicRef href='#v'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>42</resourceData></variant></name></topic>" :resource-data-datatype)
     ("variant-reifier-excluded-datatype" "<topic id='a'><name><value>N</value><variant reifier='#v'><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>42</resourceData></variant></name></topic>" :resource-data-datatype)
     (map-reifier-error-control (first row) (second row) 'xtm-rejection (third row)))
   (dolist (row '(("name-with-variant-excluded-datatype" "<topic id='a'><name><value>N</value><variant reifier='#r'><scope><topicRef href='#v'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>42</resourceData></variant></name></topic>" :resource-data-datatype)
     ("variant-reifier-excluded-datatype" "<topic id='a'><name><value>N</value><variant reifier='#v'><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>42</resourceData></variant></name></topic>" :resource-data-datatype)
-    ("occurrence-reification" "<topic id='a'><occurrence reifier='#o'><type><topicRef href='#t'/></type><resourceData>O</resourceData></occurrence></topic>" :unsupported-construct)
-    ("association-role-reification" "<association reifier='#a'><type><topicRef href='#t'/></type><role reifier='#r'><type><topicRef href='#rt'/></type><topicRef href='#p'/></role></association>" :unsupported-construct)
-    ("mergeMap" "<mergeMap href='other.xtm'/>" :unsupported-construct)))
-    (map-reifier-error-control (first row) (map-reifier-xml "#map-r" (second row)) 'xtm-unsupported (third row)))
+    ("occurrence-reification" "<topic id='a'><occurrence reifier='#o'><type><topicRef href='#t'/></type><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>O</resourceData></occurrence></topic>" :resource-data-datatype)
+    ("association-role-reification" "<association reifier='#a'><type><topicRef href='#t'/></type><role reifier='#r%GG'><type><topicRef href='#rt'/></type><topicRef href='#p'/></role></association>" :invalid-percent-escape)
+    ("mergeMap" "<mergeMap href='other.xtm'/>" :resource-resolver-required)))
+    (map-reifier-error-control (first row) (map-reifier-xml "#map-r" (second row))
+      (if (equal (first row) "association-role-reification") 'xtm-rejection 'xtm-unsupported) (third row)))
   (map-reifier-error-control "map-ii-reifier-ii-collision" (map-reifier-xml "#r" "<itemIdentity href='#r'/>")
     'item-identifier-error :duplicate-item-identifier)
   (let* ((map (deserialize-octets (bytes (map-reifier-xml "#r" "<topic id='owner'><name><value>N</value></name></topic>")) :document-iri *document*))
   (map-reifier-error-control "map-ii-reifier-ii-collision" (map-reifier-xml "#r" "<itemIdentity href='#r'/>")
     'item-identifier-error :duplicate-item-identifier)
   (let* ((map (deserialize-octets (bytes (map-reifier-xml "#r" "<topic id='owner'><name><value>N</value></name></topic>")) :document-iri *document*))