Functions to extract metadata from packages and populate, update, or rebuild package metadata files
scanrepo:add-raw-package($raw-package as element()) as item()*
Add a package's metadata to raw-packages
$raw-package | $raw-package |
scanrepo:extract-raw-package($xar-filename as xs:string) as element()
Extract a stored package's raw-package metadata
$xar-filename | $xar-filename |
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
$packages* | $packages* |
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
$xar-filename | $xar-filename |
scanrepo:rebuild-all-package-metadata() as xs:string+
Rebuild all package metadata
scanrepo:rebuild-package-groups() as xs:string
Rebuild the package-groups metadata by merging raw-packages metadata into package-groups
scanrepo:rebuild-raw-packages() as xs:string
Rebuild the raw-packages metadata from all stored packages
scanrepo:update-package-group($raw-package-name as xs:string) as item()*
Update a package group, creating it if necessary
$raw-package-name | $raw-package-name |