XQuery Function Documentation

Search and Browse

http://exist-db.org/xquery/admin/scanrepo

/db/apps/public-repo/modules/scan.xqm

Functions to extract metadata from packages and populate, update, or rebuild package metadata files

scanrepo:add-raw-package

scanrepo:add-raw-package($raw-package as element()) as item()*

Add a package's metadata to raw-packages

Parameters:
$raw-package $raw-package
Returns:
item()*

scanrepo:extract-raw-package

scanrepo:extract-raw-package($xar-filename as xs:string) as element()

Extract a stored package's raw-package metadata

Parameters:
$xar-filename $xar-filename
Returns:
element()

scanrepo:generate-package-group

scanrepo:generate-package-group($packages as element()*) as item()*

Take a group of packages with the same package name (a URI) and generate a package-group

Parameters:
$packages* $packages*
Returns:
item()*

scanrepo:publish-package

scanrepo:publish-package($xar-filename as xs:string) as item()*

Publish a stored package by adding it to the raw-packages and package-groups metadata

Parameters:
$xar-filename $xar-filename
Returns:
item()*

scanrepo:rebuild-all-package-metadata

scanrepo:rebuild-all-package-metadata() as xs:string+

Rebuild all package metadata

Returns:
xs:string+

scanrepo:rebuild-package-groups

scanrepo:rebuild-package-groups() as xs:string

Rebuild the package-groups metadata by merging raw-packages metadata into package-groups

Returns:
xs:string

scanrepo:rebuild-raw-packages

scanrepo:rebuild-raw-packages() as xs:string

Rebuild the raw-packages metadata from all stored packages

Returns:
xs:string

scanrepo:update-package-group

scanrepo:update-package-group($raw-package-name as xs:string) as item()*

Update a package group, creating it if necessary

Parameters:
$raw-package-name $raw-package-name
Returns:
item()*