Skip to content

Commit

Permalink
Fixed var names in test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 20, 2023
1 parent cd34a83 commit 4969d67
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions scripts/admin/model/create-class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ turtle+="@prefix spin: <http://spinrdf.org/spin#> .\n"
turtle+="@prefix sioc: <http://rdfs.org/sioc/ns#> .\n"
turtle+="${class} a owl:Class .\n"
turtle+="${class} rdfs:label \"${label}\" .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic ${class} .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${label}\" .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic ${class} .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"

if [ -n "$comment" ] ; then
turtle+="${class} rdfs:comment \"${comment}\" .\n"
Expand Down
8 changes: 4 additions & 4 deletions scripts/admin/model/create-construct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ turtle+="@prefix sioc: <http://rdfs.org/sioc/ns#> .\n"
turtle+="${query} a sp:Construct .\n"
turtle+="${query} rdfs:label \"${label}\" .\n"
turtle+="${query} sp:text \"\"\"${query_string}\"\"\" .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic ${query} .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${label}\" .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic ${query} .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"

if [ -n "$comment" ] ; then
turtle+="${query} rdfs:comment \"${comment}\" .\n"
Expand Down
10 changes: 5 additions & 5 deletions scripts/admin/model/create-ontology.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ args+=("-p")
args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type
args+=("${parent}${encoded_slug}/")
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"
Expand All @@ -130,10 +130,10 @@ turtle+="@prefix sp: <http://spinrdf.org/sp#> .\n"
turtle+="@prefix sioc: <http://rdfs.org/sioc/ns#> .\n"
turtle+="${ontology} a owl:Ontology .\n"
turtle+="${ontology} rdfs:label \"${label}\" .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic ${ontology} .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${label}\" .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic ${ontology} .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"

if [ -n "$comment" ] ; then
turtle+="${ontology} rdfs:comment \"${comment}\" .\n"
Expand Down
8 changes: 4 additions & 4 deletions scripts/admin/model/create-property-constraint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ turtle+="@prefix sioc: <http://rdfs.org/sioc/ns#> .\n"
turtle+="${constraint} a ldh:MissingPropertyValue .\n"
turtle+="${constraint} rdfs:label \"${label}\" .\n"
turtle+="${constraint} sp:arg1 <${property}> .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic ${constraint} .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${label}\" .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic ${constraint} .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"

if [ -n "$comment" ] ; then
turtle+="${constraint} rdfs:comment \"${comment}\" .\n"
Expand Down
8 changes: 4 additions & 4 deletions scripts/admin/model/create-select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ turtle+="@prefix sioc: <http://rdfs.org/sioc/ns#> .\n"
turtle+="${query} a sp:Select .\n"
turtle+="${query} rdfs:label \"${label}\" .\n"
turtle+="${query} sp:text \"\"\"${query_string}\"\"\" .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic ${query} .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${label}\" .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic ${query} .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${label}\" .\n"

if [ -n "$comment" ] ; then
turtle+="${query} rdfs:comment \"${comment}\" .\n"
Expand Down
10 changes: 5 additions & 5 deletions scripts/create-generic-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ args+=("-p")
args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type
args+=("${parent}${encoded_slug}/")
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"
Expand All @@ -146,10 +146,10 @@ turtle+="_:service dct:title \"${title}\" .\n"
turtle+="_:service sd:endpoint <${endpoint}> .\n"
turtle+="_:service sd:supportedLanguage sd:SPARQL11Query .\n"
turtle+="_:service sd:supportedLanguage sd:SPARQL11Update .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic _:service .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${title}\" .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic _:service .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${title}\" .\n"

if [ -n "$graph_store" ] ; then
turtle+="_:service a:graphStore <${graph_store}> .\n"
Expand Down
10 changes: 5 additions & 5 deletions scripts/create-result-set-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ args+=("-p")
args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type
args+=("${parent}${encoded_slug}/")
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"
Expand All @@ -159,10 +159,10 @@ turtle+="_:chart spin:query <${query}> .\n"
turtle+="_:chart ldh:chartType <${chart_type}> .\n"
turtle+="_:chart ldh:categoryVarName \"${category_var_name}\" .\n"
turtle+="_:chart ldh:seriesVarName \"${series_var_name}\" .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${title}\" .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic _:chart .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${title}\" .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic _:chart .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"

if [ -n "$description" ] ; then
turtle+="_:chart dct:description \"${description}\" .\n"
Expand Down
10 changes: 5 additions & 5 deletions scripts/create-select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ args+=("-p")
args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type
args+=("${parent}${encoded_slug}/")
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"
Expand All @@ -133,10 +133,10 @@ turtle+="@prefix sioc: <http://rdfs.org/sioc/ns#> .\n"
turtle+="_:query a sp:Select .\n"
turtle+="_:query dct:title \"${title}\" .\n"
turtle+="_:query sp:text \"\"\"${query}\"\"\" .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${title}\" .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic _:query .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${title}\" .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic _:query .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"

if [ -n "$service" ] ; then
turtle+="_:query ldh:service <${service}> .\n"
Expand Down
10 changes: 5 additions & 5 deletions scripts/imports/create-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ args+=("-p")
args+=("$cert_password")
args+=("-t")
args+=("text/turtle") # content type
args+=("${parent}${encoded_slug}/")
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"
Expand All @@ -127,10 +127,10 @@ turtle+="@prefix sioc: <http://rdfs.org/sioc/ns#> .\n"
turtle+="_:query a sp:Construct .\n"
turtle+="_:query dct:title \"${title}\" .\n"
turtle+="_:query sp:text \"\"\"${query}\"\"\" .\n"
turtle+="<${parent}${encoded_slug}/> a dh:Item .\n"
turtle+="<${parent}${encoded_slug}/> foaf:primaryTopic _:query .\n"
turtle+="<${parent}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${parent}${encoded_slug}/> dct:title \"${title}\" .\n"
turtle+="<${container}${encoded_slug}/> a dh:Item .\n"
turtle+="<${container}${encoded_slug}/> foaf:primaryTopic _:query .\n"
turtle+="<${container}${encoded_slug}/> sioc:has_container <${container}> .\n"
turtle+="<${container}${encoded_slug}/> dct:title \"${title}\" .\n"

if [ -n "$description" ] ; then
turtle+="_:query dct:description \"${description}\" .\n"
Expand Down

0 comments on commit 4969d67

Please sign in to comment.