;; TMDM 4.4/5.6: datatype is a locator, never a Topic or a whitelist.
(unless (absolute-locator-p datatype)
(occurrence-problem :invalid-datatype "Datatype must be a resolved absolute locator."))
;; TMDM 4.4/5.6: datatype is a locator, never a Topic or a whitelist.
(unless (absolute-locator-p datatype)
(occurrence-problem :invalid-datatype "Datatype must be a resolved absolute locator."))
(when (and (string= datatype (iri-datatype)) (not (absolute-locator-p value)))
(occurrence-problem :relative-uri-value "TMDM IRI-valued Occurrences require an absolute locator."))
(let* ((topic (live-topic topic)) (type (live-topic type)) (map (%topic-parent topic)))
(when (and (string= datatype (iri-datatype)) (not (absolute-locator-p value)))
(occurrence-problem :relative-uri-value "TMDM IRI-valued Occurrences require an absolute locator."))
(let* ((topic (live-topic topic)) (type (live-topic type)) (map (%topic-parent topic)))