Skip to content

Instantly share code, notes, and snippets.

@dmccreary
Created July 14, 2017 20:12
Show Gist options
  • Save dmccreary/247bd5b115f70fc9e1177a319308f427 to your computer and use it in GitHub Desktop.
Save dmccreary/247bd5b115f70fc9e1177a319308f427 to your computer and use it in GitHub Desktop.
List all the SPARQL prefixes
import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy";
declare namespace map="http://marklogic.com/xdmp/map";
let $prefixes-map := <map>{sem:prefixes("skosxl: http://www.w3.org/2008/05/skos-xl#")}</map>
return $prefixes-map/map:map/map:entry/map:value/text()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment