]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/ctm-xtm-mergemap.lisp
perf(tmdm): index association normalization merge candidates
[topic-maps.git] / tests / ctm-xtm-mergemap.lisp
index ff07714b3f80060e0fe297e15a8c6d04d0e09856..2c47b3d0500b0fa1a14b413b8a5ac88dfb1e65eb 100644 (file)
       (list "bad-version" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.1'/>") 'topic-maps.xtm:xtm-rejection :invalid-version)
       (list "bad-namespace" (bytes "<topicMap version='2.0'/>") 'topic-maps.xtm:xtm-rejection :invalid-namespace)
       (list "bad-id" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><topic id='2bad'/></topicMap>") 'topic-maps.xtm:xtm-rejection :invalid-id)
       (list "bad-version" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.1'/>") 'topic-maps.xtm:xtm-rejection :invalid-version)
       (list "bad-namespace" (bytes "<topicMap version='2.0'/>") 'topic-maps.xtm:xtm-rejection :invalid-namespace)
       (list "bad-id" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><topic id='2bad'/></topicMap>") 'topic-maps.xtm:xtm-rejection :invalid-id)
-      (list "unsupported-XTM-mergeMap" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><mergeMap href='other.xtm'/></topicMap>") 'topic-maps.xtm:xtm-unsupported :unsupported-construct)
-      (list "unsupported-reification" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0' reifier='#r'/>") 'topic-maps.xtm:xtm-unsupported :reification)
-      (list "unsupported-name-variant-resourceData-datatype" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><topic id='t'><name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyURI'>urn:excluded</resourceData></variant></name></topic></topicMap>") 'topic-maps.xtm:xtm-unsupported :resource-data-datatype)))
+      (list "unsupported-XTM-mergeMap" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><mergeMap href='other.xtm'/></topicMap>") 'topic-maps.xtm:xtm-unsupported :resource-resolver-required)
+      (list "unsupported-occurrence-reification" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><mergeMap href='urn:22s:requires-explicit-resolver'/><topic id='a'><occurrence reifier='#r'><type><topicRef href='#t'/></type><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>O</resourceData></occurrence></topic></topicMap>") 'topic-maps.xtm:xtm-unsupported :resource-resolver-required)
+      (list "unsupported-name-variant-resourceData-datatype" (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><mergeMap href='urn:22s:requires-explicit-resolver'/><topic id='t'><name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>42</resourceData></variant></name></topic></topicMap>") 'topic-maps.xtm:xtm-unsupported :resource-resolver-required)))
       (destructuring-bind (label raw cause code) spec
         (multiple-value-bind (resolver calls) (resources (list (list *child* raw "bad:child-source")))
           (let* ((c (failure label text (if (eq cause 'topic-maps.xtm:xtm-unsupported) 'topic-maps.ctm:mergemap-source-unsupported 'topic-maps.ctm:mergemap-source-error)
       (destructuring-bind (label raw cause code) spec
         (multiple-value-bind (resolver calls) (resources (list (list *child* raw "bad:child-source")))
           (let* ((c (failure label text (if (eq cause 'topic-maps.xtm:xtm-unsupported) 'topic-maps.ctm:mergemap-source-unsupported 'topic-maps.ctm:mergemap-source-error)