Skip to content

Commit

Permalink
ruby code
Browse files Browse the repository at this point in the history
  • Loading branch information
saumier committed Dec 21, 2023
1 parent 4234093 commit a5b4487
Show file tree
Hide file tree
Showing 16 changed files with 218,917 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/push-dump-to-artsdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Push NAC output 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": "events",
"comment": "NAC Events",
"publisher": "${{ secrets.PUBLISHER_URI_GREGORY }}",
"group": "${{ github.event.repository.name }}",
"version": "${{ steps.version.outputs.dumpdate }}",
"downloadUrl": "",
"downloadFile": "events.jsonld",
"reportCallbackUrl": "https://huginn-staging.herokuapp.com/users/1/web_requests/273/databus"
}'
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "linkeddata"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# artsdasta-planet-nac
National Arts Centre in Ottawa - pipeline to extract JSON-LD from nac-cna.ca into Artsdata


http://footlight-wringer.herokuapp.com/websites/get_rdf.jsonld?uri=http://nac-cna.ca
Loading

0 comments on commit a5b4487

Please sign in to comment.