Skip to content
Snippets Groups Projects
Commit f76ef55e authored by alvaro's avatar alvaro
Browse files

Better explanation in lodspk.sh

added listing namespaces
parent ff21b5ce
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
<?php
require_once('namespaces.php');
require_once('settings.inc.php');
foreach ($conf['ns'] as $k => $v){
echo "$k: $v\n";
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment