Skip to content

Commit

Permalink
Login resource uses super.put() instead of super.post()
Browse files Browse the repository at this point in the history
Removed the `--fragment` param from CLI scripts
  • Loading branch information
namedgraph committed Oct 31, 2023
1 parent 6b237ef commit b3bcfe7
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 136 deletions.
10 changes: 0 additions & 10 deletions scripts/admin/acl/create-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --label LABEL Label of the authorization\n"
printf " --comment COMMENT Description of the authorization (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the authorization (optional)\n"
printf " --agent AGENT_URI URI of the agent (optional)\n"
Expand Down Expand Up @@ -72,11 +71,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -186,7 +180,6 @@ args+=("-t")
args+=("text/turtle") # content type
args+=("${container}${encoded_slug}/")

turtle+="@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .\n"
turtle+="@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .\n"
turtle+="@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n"
turtle+="@prefix acl: <http://www.w3.org/ns/auth/acl#> .\n"
Expand All @@ -203,9 +196,6 @@ turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"
if [ -n "$comment" ] ; then
turtle+="${auth} rdfs:comment \"${comment}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${auth} ldh:fragment \"${fragment}\" .\n"
fi

for agent in "${agents[@]}"
do
Expand Down
10 changes: 0 additions & 10 deletions scripts/admin/acl/create-group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --name NAME Name of the group\n"
printf " --description DESCRIPTION Description of the group (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the group (optional)\n"
printf " --member MEMBER_URI URI of the member agent (optional)\n"
Expand Down Expand Up @@ -64,11 +63,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -130,7 +124,6 @@ args+=("-t")
args+=("text/turtle") # content type
args+=("${container}${encoded_slug}/")

turtle+="@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .\n"
turtle+="@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .\n"
turtle+="@prefix dct: <http://purl.org/dc/terms/> .\n"
turtle+="@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n"
Expand All @@ -145,9 +138,6 @@ turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"
if [ -n "$description" ] ; then
turtle+="${group} dct:description \"${description}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${group} ldh:fragment \"${fragment}\" .\n"
fi

for member in "${members[@]}"
do
Expand Down
10 changes: 0 additions & 10 deletions scripts/admin/model/add-class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --label LABEL Label of the class\n"
printf " --comment COMMENT Description of the class (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the class (optional)\n"
printf " --constructor CONSTRUCT_URI URI of the constructor CONSTRUCT query (optional)\n"
Expand Down Expand Up @@ -68,11 +67,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -143,7 +137,6 @@ args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type

turtle+="@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .\n"
turtle+="@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .\n"
turtle+="@prefix owl: <http://www.w3.org/2002/07/owl#> .\n"
turtle+="@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n"
Expand All @@ -162,9 +155,6 @@ turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"
if [ -n "$comment" ] ; then
turtle+="${class} rdfs:comment \"${comment}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${class} ldh:fragment \"${fragment}\" .\n"
fi
if [ -n "$constructor" ] ; then
turtle+="${class} spin:constructor <$constructor> .\n"
fi
Expand Down
10 changes: 0 additions & 10 deletions scripts/admin/model/add-construct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --label LABEL Label of the query\n"
printf " --comment COMMENT Description of the query (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the query (optional)\n"
printf " --query-file ABS_PATH Absolute path to the text file with the SPARQL query string\n"
Expand Down Expand Up @@ -64,11 +63,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -134,7 +128,6 @@ args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type

turtle+="@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .\n"
turtle+="@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .\n"
turtle+="@prefix sp: <http://spinrdf.org/sp#> .\n"
turtle+="@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n"
Expand All @@ -152,9 +145,6 @@ turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"
if [ -n "$comment" ] ; then
turtle+="${query} rdfs:comment \"${comment}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${query} ldh:fragment \"${fragment}\" .\n"
fi

# submit Turtle doc to the server
echo -e "$turtle" | turtle --base="$base" | ../../post.sh "${args[@]}"
9 changes: 0 additions & 9 deletions scripts/admin/model/add-property-constraint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --label LABEL Label of the constraint\n"
printf " --comment COMMENT Description of the constraint (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the constraint (optional)\n"
printf " --property PROPERTY_URI URI of the constrained property\n"
Expand Down Expand Up @@ -64,11 +63,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -151,9 +145,6 @@ turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"
if [ -n "$comment" ] ; then
turtle+="${constraint} rdfs:comment \"${comment}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${constraint} ldh:fragment \"${fragment}\" .\n"
fi

# submit Turtle doc to the server
echo -e "$turtle" | turtle --base="$base" | ../../post.sh "${args[@]}"
11 changes: 0 additions & 11 deletions scripts/admin/model/add-restriction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --label LABEL Label of the restriction\n"
printf " --comment COMMENT Description of the restriction (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the restriction (optional)\n"
printf " --on-property PROPERTY_URI URI of the restricted property (optional)\n"
Expand Down Expand Up @@ -66,11 +65,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -141,7 +135,6 @@ args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type

turtle+="@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .\n"
turtle+="@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .\n"
turtle+="@prefix owl: <http://www.w3.org/2002/07/owl#> .\n"
turtle+="@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n"
Expand All @@ -160,10 +153,6 @@ turtle+="_:item dct:title \"${label}\" .\n"
if [ -n "$comment" ] ; then
turtle+="${restriction} rdfs:comment \"${comment}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${restriction} ldh:fragment \"${fragment}\" .\n"
fi

if [ -n "$on_property" ] ; then
turtle+="${restriction} owl:onProperty <$on_property> .\n"
fi
Expand Down
9 changes: 0 additions & 9 deletions scripts/admin/model/add-select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --label LABEL Label of the query\n"
printf " --comment COMMENT Description of the query (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the query (optional)\n"
printf " --query-file ABS_PATH Absolute path to the text file with the SPARQL query string\n"
Expand Down Expand Up @@ -65,11 +64,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -162,9 +156,6 @@ if [ -n "$service" ] ; then
turtle+="@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .\n"
turtle+="${query} ldh:service <${service}> .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${query} ldh:fragment \"${fragment}\" .\n"
fi

# submit Turtle doc to the server
echo -e "$turtle" | turtle --base="$base" | ../../post.sh "${args[@]}"
10 changes: 0 additions & 10 deletions scripts/admin/model/create-ontology.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --label LABEL Label of the ontology\n"
printf " --comment COMMENT Description of the ontology (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --uri URI URI of the ontology (optional)\n"
}
Expand Down Expand Up @@ -63,11 +62,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--uri)
uri="$2"
shift # past argument
Expand Down Expand Up @@ -120,7 +114,6 @@ args+=("-t")
args+=("text/turtle") # content type
args+=("${container}${encoded_slug}/")

turtle+="@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .\n"
turtle+="@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .\n"
turtle+="@prefix owl: <http://www.w3.org/2002/07/owl#> .\n"
turtle+="@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n"
Expand All @@ -138,9 +131,6 @@ turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"
if [ -n "$comment" ] ; then
turtle+="${ontology} rdfs:comment \"${comment}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="${ontology} ldh:fragment \"${fragment}\" .\n"
fi

# submit Turtle doc to the server
echo -e "$turtle" | turtle --base="$base" | ../../put.sh "${args[@]}"
9 changes: 0 additions & 9 deletions scripts/create-generic-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --title TITLE Title of the service\n"
printf " --description DESCRIPTION Description of the service (optional)\n"
printf " --slug SLUG String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --endpoint ENDPOINT_URI Endpoint URI\n"
printf " --graph-store GRAPH_STORE_URI Graph Store URI (optional)\n"
Expand Down Expand Up @@ -66,11 +65,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--endpoint)
endpoint="$2"
shift # past argument
Expand Down Expand Up @@ -163,9 +157,6 @@ fi
if [ -n "$description" ] ; then
turtle+="_:query dct:description \"${description}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="_:service ldh:fragment \"${fragment}\" .\n"
fi

# submit Turtle doc to the server
echo -e "$turtle" | turtle --base="$base" | ./put.sh "${args[@]}"
9 changes: 0 additions & 9 deletions scripts/create-result-set-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --title TITLE Title of the chart\n"
printf " --description DESCRIPTION Description of the chart (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --query QUERY_URI URI of the SELECT query\n"
printf " --chart-type TYPE_URI URI of the chart type\n"
Expand Down Expand Up @@ -66,11 +65,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--query)
query="$2"
shift # past argument
Expand Down Expand Up @@ -167,9 +161,6 @@ turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
if [ -n "$description" ] ; then
turtle+="_:chart dct:description \"${description}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="_:chart ldh:fragment \"${fragment}\" .\n"
fi

# submit Turtle doc to the server
echo -e "$turtle" | turtle --base="$base" | ./put.sh "${args[@]}"
9 changes: 0 additions & 9 deletions scripts/create-select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print_usage()
printf " --title TITLE Title of the chart\n"
printf " --description DESCRIPTION Description of the chart (optional)\n"
printf " --slug STRING String that will be used as URI path segment (optional)\n"
printf " --fragment STRING String that will be used as URI fragment identifier (optional)\n"
printf "\n"
printf " --query-file ABS_PATH Absolute path to the text file with the SPARQL query string\n"
printf " --service SERVICE_URI URI of the SPARQL service specific to this query (optional)\n"
Expand Down Expand Up @@ -64,11 +63,6 @@ do
shift # past argument
shift # past value
;;
--fragment)
fragment="$2"
shift # past argument
shift # past value
;;
--query-file)
query_file="$2"
shift # past argument
Expand Down Expand Up @@ -144,9 +138,6 @@ fi
if [ -n "$description" ] ; then
turtle+="_:query dct:description \"${description}\" .\n"
fi
if [ -n "$fragment" ] ; then
turtle+="_:query ldh:fragment \"${fragment}\" .\n"
fi

# submit Turtle doc to the server
echo -e "$turtle" | turtle --base="$base" | ./put.sh "${args[@]}"
Loading

0 comments on commit b3bcfe7

Please sign in to comment.