This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
for $i in collection('/db/apps/temp')/* | |
return | |
xmldb:remove('/db/apps/temp', util:document-name($i)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo:install-and-deploy('http://www.tei-c.org/tei-simple', 'http://demo.exist-db.org/exist/apps/public-repo/modules/find.xql') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file:sync("/db/apps/lgpn", "C:\Users\Magdalena\Documents\GitHub\LGPN", ()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
import module namespace repair="http://exist-db.org/xquery/repo/repair" | |
at "resource:org/exist/xquery/modules/expathrepo/repair.xql"; | |
repair:clean-all(), | |
repair:repair() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sm:create-group('shcusers')), | |
sm:create-group('shcadmins')), | |
sm:create-account('shcuser', 'pa$$wd', 'shcusers', '', 'First Last Name', 'SHC project member'), | |
sm:create-account('tuurma', 'pa$$wd', 'shcusers', '', 'Magdalena Turska', 'SHC project member'), | |
sm:add-group-member('shcadmins', 'tuurma'), | |
sm:remove-account('tuurma') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare namespace col = "http://exist-db.org/collection-config/1.0"; | |
(: retrieve all .xconf documents in /db/apps :) | |
let $dbapps := collection('/db/apps')//col:collection | |
(: retrieve all /db/apps related .xconf documents in /db/system :) | |
let $dbsystemapps := for $doc in collection('/db/system/config/db/apps')//col:collection return document-uri(root($doc)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://localhost:8080/exist/apps/eXide/index.html?open=/db/apps/data/names/Agaios.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
for $i in collection('/db/apps/data/a')/* | |
return | |
xmldb:move('/db/apps/data/a', '/db/apps/data/a/b/', util:document-name($i)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo:undeploy("http://history.state.gov/ns/site/hsg"), | |
repo:remove("http://history.state.gov/ns/site/hsg"), | |
repo:install-and-deploy-from-db("/db/system/repo/hsg-shell-0.2.xar") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare function local:change-user($collection, $user, $group) { | |
if (xmldb:collection-available($collection)) then | |
( | |
for $child in xmldb:get-child-collections($collection) | |
let $path := concat($collection, '/', $child) | |
return | |
xmldb:set-collection-permissions($path, $user, $group, 493) | |
) |
OlderNewer