Skip to content

Commit

Permalink
Releases folder & Github Pages action (#179)
Browse files Browse the repository at this point in the history
* Created v0.8 release of resources

* Added github action to publish releases to Pages
  • Loading branch information
mkollenstart authored Dec 8, 2023
1 parent 1712f43 commit e4d9590
Show file tree
Hide file tree
Showing 73 changed files with 4,433 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create HEAD release
shell: bash
run: |-
mkdir releases/head
rsync -Rav --prune-empty-dirs --exclude="releases/**" --include="*/" --include="**/*.json" --exclude="**" ./ ./releases/head/
rsync -Rav --prune-empty-dirs --exclude="releases/**" --include="*/" --include="**/*.ttl" --exclude="**" ./ ./releases/head/
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload releases folder
path: ./releases/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
11 changes: 11 additions & 0 deletions releases/v0.8/catalog/message/catalog-error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"@context": "https://w3id.org/dspace/v0.8/context.json",
"@type": "dspace:CatalogError",
"dspace:code": "123:A",
"dspace:reason": [
{
"@value": "Catalog not provisioned for this requester.",
"@language": "en"
}
]
}
7 changes: 7 additions & 0 deletions releases/v0.8/catalog/message/catalog-request-message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": "https://w3id.org/dspace/v0.8/context.json",
"@type": "dspace:CatalogRequestMessage",
"dspace:filter": [
"some-filter"
]
}
64 changes: 64 additions & 0 deletions releases/v0.8/catalog/message/catalog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"@context": "https://w3id.org/dspace/v0.8/context.json",
"@id": "urn:uuid:3afeadd8-ed2d-569e-d634-8394a8836d57",
"@type": "dcat:Catalog",
"dct:title": "Data Provider A Catalog",
"dct:description": [
"A catalog of data items"
],
"dct:publisher": "Data Provider A",
"dcat:keyword": [
"traffic",
"government"
],
"dcat:service": [
{
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77",
"@type": "dcat:DataService",
"dcat:endpointDescription": "dspace:connector",
"dcat:endpointURL": "https://provder-a.com/connector"
}
],
"dcat:dataset": [
{
"@id": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
"@type": "dcat:Dataset",
"dct:title": "Traffic Data",
"dct:description": [
{
"@value": "Traffic data sample extract",
"@language": "en"
}
],
"dcat:keyword": [
"traffic"
],
"odrl:hasPolicy": [
{
"@type": "odrl:Offer",
"dspace:providerId": "http://example.com/Provider",
"odrl:permission": [
{
"odrl:action": "odrl:use",
"odrl:constraint": [
{
"odrl:leftOperand": "odrl:spatial",
"odrl:operator": "odrl:EQ",
"odrl:rightOperand": "odrl:EU"
}
],
"odrl:duty": []
}
],
"odrl:prohibition": [],
"odrl:obligation": []
}
],
"dcat:distribution": {
"@type": "dcat:Distribution",
"dct:format": "dspace:s3+push",
"dcat:accessService": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77"
}
}
]
}
5 changes: 5 additions & 0 deletions releases/v0.8/catalog/message/dataset-request-message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"@context": "https://w3id.org/dspace/v0.8/context.json",
"@type": "dspace:DatasetRequestMessage",
"dspace:dataset": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88"
}
47 changes: 47 additions & 0 deletions releases/v0.8/catalog/message/dataset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"@context": "https://w3id.org/dspace/v0.8/context.json",
"@id": "urn:uuid:3afeadd8-ed2d-569e-d634-8394a8836d57",
"@type": "dcat:Dataset",
"dct:title": "Traffic Data",
"dct:description": [
{
"@value": "Traffic data sample extract",
"@language": "en"
}
],
"dcat:keyword": [
{
"@value": "traffic",
"@language": "en"
}
],
"odrl:hasPolicy": {
"@type": "odrl:Offer",
"@id": "urn:uuid:2828282:3dd1add8-4d2d-569e-d634-8394a8836a88",
"odrl:permission": [
{
"odrl:action": "odrl:use",
"odrl:constraint": [
{
"odrl:leftOperand": "odrl:spatial",
"odrl:rightOperand": "_:EU",
"odrl:operator": "odrl:eq"
}
]
}
]
},
"dcat:distribution": [
{
"@type": "dcat:Distribution",
"dct:format": {
"@id": "dspace:s3+push"
},
"dcat:accessService": [
{
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77"
}
]
}
]
}
101 changes: 101 additions & 0 deletions releases/v0.8/catalog/message/example/dcat.distribution.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"@context": "https://w3id.org/dspace/v0.8/context.json",
"@id": "http://provider.com/catalog1/dataset1/",
"@type": "dcat:Dataset",
"dct:title": "IDS Dataset #1",
"dct:description": [
{
"@language": "en",
"@value": "This is the number 1 data asset of the IDS. The consumer must be a TRUST_PLUS certified connector."
},
{
"@language": "de",
"@value": "Dies ist das Nummer 1 Data Asset im IDS. Der Consumer muss ein TRUST_PLUS zertifizierter Connector sein."
}
],
"dcat:keyword": [
"high value data",
"example"
],
"odrl:hasPolicy": [
{
"@id": "https://provider.com/edc/offer/1",
"@type": "odrl:Offer",
"odrl:permission": [
{
"odrl:action": "odrl:use",
"odrl:constraint": [
{
"odrl:leftOperand": "idsc:SECURITY_LEVEL",
"odrl:operator": "odrl:eq",
"odrl:rightOperand": "idsc:TRUST_SECURITY_PROFILE"
}
]
}
],
"odrl:prohibition": [
{
"odrl:action": "odrl:distribute"
}
]
}
],
"dcat:distribution": [
{
"@type": "dcat:Distribution",
"dct:title": "Distribution#1",
"dct:description": [
"This is a distribution which provides the data via a HTTP REST API."
],
"dcat:keyword": [
"HTTP",
"REST"
],
"dspace:transportType": "dspace:HTTP_REST",
"dcat:accessService": [
{
"@type": [
"dcat:DataService",
"dspace:NEGOTIATION_SERVICE"
],
"dcat:endpointURL": "https://provider.com/connector/negotiation"
},
{
"@type": [
"dcat:DataService",
"dspace:TRANSFER_SERVICE"
],
"dcat:endpointURL": "https://provider.com/connector/transfer"
}
]
},
{
"@type": "dcat:Distribution",
"dct:title": "Distribution#2",
"dct:description": [
"This is another distribution using an S3 API."
],
"dcat:keyword": [
"S3",
"public"
],
"dcat:accessService": [
{
"@type": [
"dcat:DataService",
"dspace:NEGOTIATION_SERVICE"
],
"dcat:endpointURL": "https://provider.com/connector/negotiation"
},
{
"@type": [
"dcat:DataService",
"dspace:TRANSFER_SERVICE"
],
"dcat:endpointURL": "https://provider.com/connector/transfer"
}
],
"dspace:transportType": "dspace:S3"
}
]
}
Loading

0 comments on commit e4d9590

Please sign in to comment.