xdmp.nodeUri( node as Node ) as String?
Returns the document-uri property of the parameter or its ancestor.
xdmp.nodeUri(cts.doc('/some/document.json')); => '/some/document.json'