Skip to content

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
saumier committed Dec 21, 2023
1 parent 613c27e commit e00d20f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/push-mapping-to-artsdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Push Mapping to Artsdata
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set current date as output
id: version # this is used on variable path
run: echo "dumpdate=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_OUTPUT
- name: Call Artsdata Databus
run: |
curl \
-H 'Content-Type: application/json' \
-X POST http://api.artsdata.ca/databus/ \
--data '{ "artifact": "grandtheatre-qc-ca-event-type-mapping",
"comment": "Event type taxonomy to map strings from the original GTQ website to Artsdata event types. https://github.com/culturecreates/artsdata-planet-gtq/blob/main/gtq-event-type-mapping.ttl",
"publisher": "${{ secrets.PUBLISHER_URI_GREGORY }}",
"group": "${{ github.event.repository.name }}",
"version": "${{ steps.version.outputs.dumpdate }}",
"downloadUrl": "https://raw.githubusercontent.com/culturecreates/artsdata-planet-gtq/main/gtq-event-type-mapping.ttl",
"downloadFile": "gtq-event-type-mapping.ttl",
"reportCallbackUrl": "https://huginn-staging.herokuapp.com/users/1/web_requests/273/databus"
}'
2 changes: 1 addition & 1 deletion gtq-event-type-mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Import into graph http://db.artsdata.ca/repositories/artsdata/rdf-graphs/grandtheatre-qc-ca-event-type-mapping

gtq:EventTypeScheme
skos:prefLabel "Types d'evenements Grand Théâtre du Québec"@fr ;
skos:prefLabel "Types d'evenements Grand Théâtre de Québec"@fr ;
rdfs:comment "Disciplines from GTQ website mapped to Artsdata Event Types http://kg.artsdata.ca/resource/ArtsdataEventTypes"@en ;
rdf:type skos:ConceptScheme ;
<http://purl.org/vocab/vann/example> gtq:Musique .
Expand Down

0 comments on commit e00d20f

Please sign in to comment.