Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intermediate-format
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bibliothek-der-neologie
intermediate-format
Commits
e4af0aa5
Commit
e4af0aa5
authored
7 years ago
by
uwe
Browse files
Options
Downloads
Patches
Plain Diff
added helper functions
parent
51087516
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/ifutils.xqm
+20
-1
20 additions, 1 deletion
modules/ifutils.xqm
with
20 additions
and
1 deletion
modules/ifutils.xqm
+
20
−
1
View file @
e4af0aa5
...
...
@@ -8,7 +8,7 @@ xquery version "3.1";
: @status developing
: @author Uwe Sikora
:)
module
namespace
ifutils
=
"http://bdn
.
edition.de/intermediate_format/utils"
;
module
namespace
ifutils
=
"http://bdn
-
edition.de/intermediate_format/utils"
;
import
module
namespace
http
=
"http://expath.org/ns/http-client"
;
(:############################# Modules Variables #############################:)
...
...
@@ -60,6 +60,25 @@ declare function ifutils:get-resource
};
(:~
: ifutils:ls()
: This function lists all documents from a collection
:
: @param $collection the path of a collection
: @return all document-base-uris from the collection
:
: @version 1.0 (2018-03-23)
: @status developing
: @author Uwe Sikora
:)
declare
function
ifutils:ls
(
$collection
as
xs:string
)
{
for
$doc
in
collection
(
$collection
)
return
base-uri
(
$doc
)
};
(:~
: ifutils:request()
: This http wrapper function models a request
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment