Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
f76ef55e
Commit
f76ef55e
authored
12 years ago
by
alvaro
Browse files
Options
Downloads
Patches
Plain Diff
Better explanation in lodspk.sh
added listing namespaces
parent
ff21b5ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/lodspk.sh
+6
-1
6 additions, 1 deletion
utils/lodspk.sh
utils/modules/list-namespaces.php
+8
-0
8 additions, 0 deletions
utils/modules/list-namespaces.php
with
14 additions
and
1 deletion
utils/lodspk.sh
+
6
−
1
View file @
f76ef55e
...
...
@@ -15,7 +15,12 @@ USAGE=$USAGE" Backup current installation:\t\t\t\t$0 backup\n"
USAGE
=
$USAGE
" Restore previous installation:
\t\t\t\t
$0
restore
\n
"
USAGE
=
$USAGE
"
\n
===ENDPOINT MANAGEMENT==
\n
"
USAGE
=
$USAGE
" Add endpoint:
\t\t\t\t\t\t
$0
add endpoint prefix http://example.com/sparql
\n
"
USAGE
=
$USAGE
" Remove endpoint:
\t\t\t\t\t
$0
remove endpoint prefix
\n
"
USAGE
=
$USAGE
" List endpoints:
\t\t\t\t\t
$0
list endpoints
\n
"
USAGE
=
$USAGE
"
\n
===NAMESPACE MANAGEMENT==
\n
"
USAGE
=
$USAGE
" Add namespace:
\t\t\t\t\t\t
$0
add namespace prefix http://example.com/sparql
\n
"
USAGE
=
$USAGE
" Remove namespace:
\t\t\t\t\t
$0
remove namespace prefix
\n
"
USAGE
=
$USAGE
" List namespaces:
\t\t\t\t\t
$0
list namespaces
\n
"
USAGE
=
$USAGE
"
\n
===VERSION==
\n
"
USAGE
=
$USAGE
" Version:
\t\t\t\t\t\t
$0
version
\n
"
USAGEDEBUG
=
"Usage:
$0
debug on|off"
...
...
@@ -241,7 +246,7 @@ fi
## List
if
[[
$currentOperation
==
"list"
]]
;
then
listOperation
=(
endpoints modules components
)
listOperation
=(
endpoints modules components
namespaces
)
if
[[
${
listOperation
[@]
}
=
~
$2
&&
$2
!=
""
]]
then
listOperation
=
$2
...
...
This diff is collapsed.
Click to expand it.
utils/modules/list-namespaces.php
0 → 100644
+
8
−
0
View file @
f76ef55e
<?php
require_once
(
'namespaces.php'
);
require_once
(
'settings.inc.php'
);
foreach
(
$conf
[
'ns'
]
as
$k
=>
$v
){
echo
"
$k
:
$v
\n
"
;
}
?>
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