xdmp:collection-id( $uri as xs:string ) as xs:unsignedLong
Return the ID of a collection specified by URI.
xdmp:collection-id("http://marklogic.com/xdmp/triggers") => 1434830478882802398