Skip to content

Commit cf03811

Browse files
authored
removed ao from uri schema
1 parent 4e15ffe commit cf03811

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/seed.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
sed -i "s/^repo:.*/repo: $GITHUB_REPO/" "$CONFIG_FILE"
8686
8787
# Set namespaces block automatically
88-
NS="https://w3id.org/pmd/ao/${{ github.event.inputs.uribase_suffix }}/"
88+
NS="https://w3id.org/pmd/${{ github.event.inputs.uribase_suffix }}/"
8989
if grep -q "^namespaces:" "$CONFIG_FILE"; then
9090
sed -i "/^namespaces:/,+1c\\
9191
namespaces:\\
@@ -107,7 +107,7 @@ jobs:
107107
echo "" >> "$CONFIG_FILE"
108108
echo "idranges:" >> "$CONFIG_FILE"
109109
echo " - idsfor: $ONT_ID" >> "$CONFIG_FILE"
110-
echo " idprefix: https://w3id.org/pmd/ao/$URIBASE_SUFFIX/${ONT_ID_UPPER}_" >> "$CONFIG_FILE"
110+
echo " idprefix: https://w3id.org/pmd/$URIBASE_SUFFIX/${ONT_ID_UPPER}_" >> "$CONFIG_FILE"
111111
echo " iddigits: 7" >> "$CONFIG_FILE"
112112
113113
echo "Updated $CONFIG_FILE content:"
@@ -159,8 +159,8 @@ jobs:
159159
# lowercase uribase_suffix from workflow input
160160
URIBASE_SUFFIX="${{ github.event.inputs.uribase_suffix }}"
161161
162-
# replace idprefix line using sed: insert uribase_suffix after /ao/
163-
sed -i "s|idprefix: \"https://w3id.org/pmd/ao/\(.*\)_\"|idprefix: \"https://w3id.org/pmd/ao/${URIBASE_SUFFIX}/\1_\"|" "$IDRANGES_FILE"
162+
# replace idprefix line using sed: insert uribase_suffix after /
163+
sed -i "s|idprefix: \"https://w3id.org/pmd/\(.*\)_\"|idprefix: \"https://w3id.org/pmd/${URIBASE_SUFFIX}/\1_\"|" "$IDRANGES_FILE"
164164
165165
echo "Updated idranges.owl:"
166166
head -n 20 "$IDRANGES_FILE"

seed-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "My Application Ontology"
33
github_org: materialdigital
44
git_main_branch: main
55
repo: app-ontology-template
6-
uribase: https://w3id.org/pmd/ao/xxx
6+
uribase: https://w3id.org/pmd/xxx
77
uribase_suffix: xxx
88

99
release_artefacts:

0 commit comments

Comments
 (0)