+ scope forward)
+
+(defstruct (occurrence (:constructor %make-occurrence (value datatype type parent))
+ (:conc-name %occurrence-))
+ (value "" :type string :read-only t) (datatype "" :type string :read-only t)
+ (type nil :type topic) (parent nil :type topic) item-identifiers scope forward)
+
+(defun canonical-occurrence (occurrence)
+ "Resolve a retained Occurrence replaced by TMDM duplicate removal; no compression."
+ (check-type occurrence occurrence)
+ (loop for current = occurrence then (%occurrence-forward current)
+ unless (%occurrence-forward current) return current))
+(defun string-datatype () "http://www.w3.org/2001/XMLSchema#string")
+(defun iri-datatype () "http://www.w3.org/2001/XMLSchema#anyURI")