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"
0 commit comments