Skip to content

Commit 86658a4

Browse files
authored
Merge pull request #35 from eScienceLab/development
Merge dev changes into main
2 parents 8027202 + e285451 commit 86658a4

File tree

16 files changed

+228
-13
lines changed

16 files changed

+228
-13
lines changed

.docker/sampo-ui/deploy.dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:16.13.0-alpine
1+
FROM node:22.21.1-alpine
22
ARG API_URL
3-
ARG VERSION="3.0.0"
3+
ARG VERSION="3.0.0-1"
44

55
# Based on https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
66

@@ -11,7 +11,7 @@ WORKDIR /usr/src/app
1111
# mv commands: install app dependencies, Babel 7 presets and plugins, and bundle app source
1212
# Remove redundant files
1313
RUN <<EOF
14-
wget https://github.com/SemanticComputing/sampo-ui/archive/refs/tags/v$VERSION.zip
14+
wget https://github.com/UoMResearchIT/sampo-ui/archive/refs/tags/v$VERSION.zip
1515
unzip v$VERSION.zip
1616
mv ./sampo-ui-$VERSION/package*.json ./
1717
mv ./sampo-ui-$VERSION/webpack*.js ./

.docker/sampo-ui/dev.dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM node:16.13.0-alpine
1+
FROM node:22.21.1-alpine
22

33
# Specify the Sampo UI version
4-
ARG VERSION="3.0.0"
4+
ARG VERSION="3.0.0-1"
55

66
RUN apk update && apk add bash
77

@@ -12,7 +12,7 @@ WORKDIR /usr/src/app
1212
# mv commands: install app dependencies, Babel 7 presets and plugins, and bundle app source
1313
# Remove redundant files
1414
RUN <<EOF
15-
wget https://github.com/SemanticComputing/sampo-ui/archive/refs/tags/v$VERSION.zip
15+
wget https://github.com/UoMResearchIT/sampo-ui/archive/refs/tags/v$VERSION.zip
1616
unzip v$VERSION.zip
1717
mv ./sampo-ui-$VERSION/package*.json ./
1818
mv ./sampo-ui-$VERSION/webpack*.js ./
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check added profile link (if applicable)
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
workflow_dispatch:
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Check if profile URLs changed
16+
id: changes
17+
run: |
18+
git fetch origin ${{ github.event.pull_request.base.ref }}
19+
if git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD | grep -qx "scripts/profile_urls.txt"; then
20+
echo "changed=true" >> "$GITHUB_OUTPUT"
21+
else
22+
echo "changed=false" >> "$GITHUB_OUTPUT"
23+
fi
24+
- name: Install dependencies
25+
if: steps.changes.outputs.changed == 'true'
26+
run: python3 -m pip install -r requirements.workflow.txt
27+
- name: Run script
28+
if: steps.changes.outputs.changed == 'true'
29+
run: python upload_profiles.py --dry-run
30+
working-directory: ./scripts
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Upload to Jena Fuseki
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'scripts/profile_urls.txt'
9+
workflow_dispatch:
10+
jobs:
11+
upload:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Install dependencies
17+
run: python3 -m pip install -r requirements.workflow.txt
18+
- name: Run script
19+
run: python upload_profiles.py
20+
working-directory: ./scripts
21+
env:
22+
FUSEKI_UPLOAD_ENDPOINT: ${{ vars.ENV_FUSEKI_UPLOAD_ENDPOINT }}
23+
FUSEKI_PASSWORD: ${{ secrets.ENV_FUSEKI_PASSWORD }}
24+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Environments
22
.env
3+
venv/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RO-Crates are a method for packaging research data with their metadata. RO-Crate
99
The profile portal is accepting contributions!
1010

1111
> [!IMPORTANT]
12-
> To be accepted, the profile must be a [Profile Crate](url) accessible on the public internet.
12+
> To be accepted, the profile must be a [Profile Crate](https://www.researchobject.org/ro-crate/specification/1.2/profiles.html#profile-crate) accessible on the public internet.
1313
1414
To add your profile (or a profile you feel is missing):
1515
- Open `scripts/profile_urls.txt` in this repo for editing (click file, then click pencil icon)

env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Template file for populating .env
22

33
FUSEKI_PASSWORD=${ENV_FUSEKI_PASSWORD}
4+
FUSEKI_UPLOAD_ENDPOINT=
45

56
# Local http://localhost:3006/api/v1
67
SAMPO_API_URL=${ENV_SAMPO_API_URL}

requirements.workflow.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rdflib==7.4.0
2+
validators==0.35.0
3+
requests==2.32.5
4+
python-dotenv==1.2.1

requirements.workflow.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile --output-file=requirements.workflow.txt requirements.workflow.in
6+
#
7+
certifi==2025.11.12
8+
# via requests
9+
charset-normalizer==3.4.4
10+
# via requests
11+
idna==3.11
12+
# via requests
13+
pyparsing==3.2.5
14+
# via rdflib
15+
python-dotenv==1.2.1
16+
# via -r requirements.workflow.in
17+
rdflib==7.4.0
18+
# via -r requirements.workflow.in
19+
requests==2.32.5
20+
# via -r requirements.workflow.in
21+
urllib3==2.6.2
22+
# via requests
23+
validators==0.35.0
24+
# via -r requirements.workflow.in

scripts/gaps.ttl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@prefix schema: <http://schema.org/> .
2+
3+
<https://w3id.org/workflowhub/workflow-ro-crate/1.0>
4+
a schema:Profile ;
5+
schema:keywords "workflow" .
6+
<https://w3id.org/ro/wfrun/process/0.5>
7+
schema:datePublished "2024-06-19";
8+
schema:keywords "provenance", "process", "informatics" .
9+
<https://w3id.org/ro/wfrun/workflow/0.5>
10+
schema:datePublished "2024-06-19";
11+
schema:keywords "workflow", "provenance", "workflow execution", "process", "informatics" .
12+
<https://w3id.org/ro/wfrun/provenance/0.5>
13+
schema:datePublished "2024-06-19";
14+
schema:keywords "workflow", "provenance", "workflow execution", "process", "informatics" .
15+
<https://w3id.org/5s-crate/0.4>
16+
schema:identifier "https://w3id.org/5s-crate/0.4" ;
17+
schema:keywords "workflow execution", "five safes", "transparency", "sensitive data", "trusted research environment", "secure data environment", "data safe haven" .

0 commit comments

Comments
 (0)