]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-role-reification.lisp
examples: explore project work through native Topic Maps (slice 22U)
[topic-maps.git] / tests / xtm-role-reification.lisp
index d7fd087f85c2de1319e6fbe866d95c61e531b95d..b928440bc83427f8c8a2d1f0ef368d9b30313f1f 100644 (file)
           "readAssociationCounts" (coerce counts 'vector) "normalizationStages" (coerce (mapcar (lambda (s) (coerce s 'vector)) stages) 'vector)
           "oldHandlesCanonicalAndLive" :true) *role-reifier-controls*)) map)))
 (defun rrr-error (label body class code &key map-reifier)
           "readAssociationCounts" (coerce counts 'vector) "normalizationStages" (coerce (mapcar (lambda (s) (coerce s 'vector)) stages) 'vector)
           "oldHandlesCanonicalAndLive" :true) *role-reifier-controls*)) map)))
 (defun rrr-error (label body class code &key map-reifier)
-  (let ((source (if map-reifier (map-reifier-xml map-reifier body) (document body))))
+  (let ((source (ss-unsupported-source (if map-reifier (map-reifier-xml map-reifier body) (document body)) code label)))
     (multiple-value-bind (c frames calls same) (rrr-condition-from (bytes source) label)
       (let ((actual (cond ((typep c 'topic-maps.xtm:xtm-error) (error-code c))
                          ((typep c 'reification-error) (reification-error-code c))
     (multiple-value-bind (c frames calls same) (rrr-condition-from (bytes source) label)
       (let ((actual (cond ((typep c 'topic-maps.xtm:xtm-error) (error-code c))
                          ((typep c 'reification-error) (reification-error-code c))
         (format nil "<topic id='r'><~A href='urn:r'/></topic><topic id='u'><~A href='urn:r'/></topic>" category category)) 'reification-error :reifier-conflict))
   (rrr-error "Role-II-not-Reifier-II" (rrr-xml "urn:same" :role-ids '("urn:same")) 'topic-maps.tmdm::occurrence-identifier-error :duplicate-item-identifier)
   (rrr-error "Role-II-not-Association-II" (rrr-xml "#r" :ids '("urn:same") :role-ids '("urn:same")) 'item-identifier-error :duplicate-item-identifier)
         (format nil "<topic id='r'><~A href='urn:r'/></topic><topic id='u'><~A href='urn:r'/></topic>" category category)) 'reification-error :reifier-conflict))
   (rrr-error "Role-II-not-Reifier-II" (rrr-xml "urn:same" :role-ids '("urn:same")) 'topic-maps.tmdm::occurrence-identifier-error :duplicate-item-identifier)
   (rrr-error "Role-II-not-Association-II" (rrr-xml "#r" :ids '("urn:same") :role-ids '("urn:same")) 'item-identifier-error :duplicate-item-identifier)
-  (rrr-error "anyType-still-Unsupported" (concatenate 'string (rrr-xml "#r") "<topic id='owner'><occurrence><type><topicRef href='#t'/></type><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>V</resourceData></occurrence></topic>") 'xtm-unsupported :resource-data-datatype))
+  (rrr-error "anyType-still-Unsupported" (concatenate 'string (rrr-xml "#r") "<topic id='owner'><occurrence><type><topicRef href='#t'/></type><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>V</resourceData></occurrence></topic>") 'xtm-unsupported :resource-resolver-required))
 (defun rrr-import-test ()
   (let* ((child (mm-child-iri "child.xtm"))
          (raw (bytes (document (concatenate 'string "<topic id='p'><subjectIdentifier href='urn:player'/></topic>"
 (defun rrr-import-test ()
   (let* ((child (mm-child-iri "child.xtm"))
          (raw (bytes (document (concatenate 'string "<topic id='p'><subjectIdentifier href='urn:player'/></topic>"