Skip to content

Commit

Permalink
Resolve identifier URIs to MarkLogic URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-dxw committed Dec 6, 2024
1 parent 1052973 commit abad449
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/caselawclient/xquery/resolve_from_identifier.xqy
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
xquery version "1.0-ml";

declare namespace xdmp="http://marklogic.com/xdmp";
declare variable $uri as xs:string external;

xdmp:sql(
"SELECT * from compiled_url_slugs WHERE documents.compiled_url_slugs.identifier_slug = @uri",
"array",
map:new((
map:entry("uri", $uri)
))
)

0 comments on commit abad449

Please sign in to comment.