Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
1b1027c
Update createSchemas.yml
rmfranken Feb 18, 2025
a53e499
Update createCombinedTurtle.yml
rmfranken Feb 18, 2025
c3f9831
Create shacl-shacl.yml
rmfranken Feb 18, 2025
e76e048
Create shacl-shacl.ttl
rmfranken Feb 18, 2025
b76a495
feat: add respecter html
rmfranken Feb 19, 2025
08329e7
chore: add justfile
cmdoret Feb 24, 2025
bc87b96
docs: migrate changelog to dedicated file
cmdoret Feb 24, 2025
943d258
docs(license): cc-by-3.0 -> cc-by-sa-4.0
cmdoret Feb 24, 2025
ec6202d
docs: add citation.cff
cmdoret Feb 24, 2025
4d9003b
docs: add contribution guide
cmdoret Feb 24, 2025
9ab4ef0
docs: dev guide
cmdoret Feb 24, 2025
389b138
docs: add code of conduct
cmdoret Feb 24, 2025
b6eb8e4
chore: delete locales
cmdoret Feb 24, 2025
fb1b635
chore: add build folder
cmdoret Feb 24, 2025
ce90e90
chore: add build to gitignore
cmdoret Feb 24, 2025
3388978
docs: move respecter output to docs
cmdoret Feb 24, 2025
ad5fb48
chore: add respecter config
cmdoret Feb 24, 2025
0c11c36
refactor: schemas -> src/imaging-ontology
cmdoret Feb 24, 2025
aac9c38
refactor: shacl-shacl to qc folder
cmdoret Feb 24, 2025
dc15b78
refactor: release scripts -> toolings
cmdoret Feb 24, 2025
72814bc
docs: TODO notice for merging ttls
cmdoret Feb 24, 2025
3b09622
ci: add individual actions
cmdoret Feb 24, 2025
7d69c97
ci: add high level workflows
cmdoret Feb 24, 2025
11c9ef4
refactor: move python tooling
cmdoret Feb 24, 2025
4e52fe0
ci: drop incorrect image
cmdoret Feb 24, 2025
3945826
ci: placeholder docs action
cmdoret Feb 24, 2025
9650cb7
chore(just): install recipe
cmdoret Feb 24, 2025
a46db28
refactor(ci): rewrite combination script in sh with rdfpipe
rmfranken Feb 27, 2025
50985cc
refactor: make create-schemas more generic based on new folder struct…
rmfranken Feb 27, 2025
fb0c47a
test:add workflow dispatch to test action
rmfranken Feb 27, 2025
a6046ed
chore:move sh to bash
rmfranken Feb 27, 2025
ce9899f
test:workflow dispatch only
rmfranken Feb 27, 2025
cca7a86
chore:reorder
rmfranken Feb 27, 2025
e60d03d
Create build.yml
rmfranken Feb 27, 2025
d0b1abd
chore: align folder structure
rmfranken Feb 27, 2025
fcbbb0e
chore:add debug statements
rmfranken Feb 27, 2025
8c1d154
fix:path
rmfranken Feb 27, 2025
435ba87
fix:paths again
rmfranken Feb 27, 2025
b1ae718
chore:test complete, remove dispatch workflow, return to workflow_call
rmfranken Feb 27, 2025
81b296e
chore: remove old actions
rmfranken Feb 27, 2025
b7f6876
Merge branch 'develop' into refactor/template
rmfranken Apr 16, 2025
a97229d
chore: merge dev into branch
rmfranken Apr 16, 2025
8033281
chore: update ontology files
rmfranken Apr 16, 2025
d50e072
chore:generate release, fix CI
rmfranken Apr 16, 2025
62a7b32
fix:make use of dict to allow correct extension
rmfranken Apr 16, 2025
e7e1fdb
fix:CI again, remove .turtle, add .ttl
rmfranken Apr 16, 2025
822d128
fix: last time I promise
rmfranken Apr 16, 2025
c48de82
feat:add shacl-shacl check with shacl.py
rmfranken Apr 16, 2025
59c93e5
fix:spelling mistake in shapes
rmfranken Apr 16, 2025
b73aaaa
feat:add shacl check to ci flow for releases
rmfranken Apr 16, 2025
69c1005
fix: ensure shacl checks are ran in gh actions
rmfranken Apr 16, 2025
1a87c0e
fix:the CI journey never stops
rmfranken Apr 16, 2025
2a4c30f
fix:again
rmfranken Apr 16, 2025
b988f3f
fix: it was a syntax thing?
rmfranken Apr 16, 2025
fdd9bbc
fix: it was close
rmfranken Apr 16, 2025
7892915
fix: make shacl wait for build before doing checks
rmfranken Apr 16, 2025
1d5dc1a
fix:add pyshacl to reqs
rmfranken Apr 16, 2025
cb0732c
Update README.md
rmfranken Apr 16, 2025
bb01c74
fix:comment out docs building, it's not ready yet
rmfranken Apr 16, 2025
66dd648
Merge branch 'main' into refactor/template
rmfranken Apr 16, 2025
d814b0f
fix:CI checks only run on releases
rmfranken Apr 16, 2025
c64e5b7
feat:also run on PR's
rmfranken Apr 22, 2025
d781cf5
fix: don't have a release - still do validation
rmfranken Apr 22, 2025
26a6c57
fix:make is_release optional
rmfranken Apr 22, 2025
cf3bcb0
Update CHANGELOG
rmfranken Apr 22, 2025
16120b6
fix:path to ontology files
rmfranken Apr 22, 2025
bc50e42
feat:print results graph in action output if there are validation res…
rmfranken Apr 22, 2025
b190cd4
fix:remove unneeded is_release input
rmfranken Apr 28, 2025
3f0f9c7
fix:remove redudnant "needs" and rename shacl->checks
rmfranken Apr 28, 2025
09f58dd
refactor: drop unneeded try-except
rmfranken Apr 28, 2025
26d87ae
feat:make shacl.py generic by using sysargv.
rmfranken Apr 28, 2025
48f0c5a
fix:variable rename, pathlib instead of os, and wrap into main.py
rmfranken Apr 28, 2025
fea4e44
fix: call create schemas with locations of files
rmfranken Apr 28, 2025
fbb7a03
fix: new line between ontology concats
rmfranken Apr 28, 2025
444e1ab
fix: forgotten args
rmfranken Apr 28, 2025
afa5ed2
fix: forgotten args
rmfranken Apr 28, 2025
46f3048
feat: use logging instead of print statements
rmfranken Apr 28, 2025
11c680f
Merge pull request #12 from sdsc-ordes/refactor/template
rmfranken Apr 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build ontology assets

on:
workflow_call:
inputs:
is_release:
required: false
type: boolean
default: false

jobs:

build:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/python/requirements.txt

- name: build
run: |
bash ./tools/bash/build/create-combined-turtle.sh src/imaging-ontology/
python ./tools/python/build/create-schemas.py --input build/ontology_combined.ttl --output build/locales/en/schema.json

- name: upload assets in artifacts
uses: actions/upload-artifact@v4
if: ${{ inputs.is_release }}
with:
name: schema-bundle
path: build/*
35 changes: 35 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: SHACL validation

on:
workflow_call:
pull_request:
paths:
- 'src/imaging-ontology/**'

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/python/requirements.txt

- name: Build ontology bundle
run: |
bash ./tools/bash/build/create-combined-turtle.sh src/imaging-ontology/
python ./tools/python/build/create-schemas.py --input build/ontology_combined.ttl --output build/locales/en/schema.json

- name: SHACL validation
run: |
python tools/python/checks/shacl.py build/ontology_combined.ttl src/quality-checks/shacl-shacl.ttl

61 changes: 0 additions & 61 deletions .github/workflows/createCombinedTurtle.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/createSchemas.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# name: Build ontology docs

# on:
# workflow_call:

# jobs:

# build:
# runs-on: ubuntu-latest

# steps:

# - uses: actions/checkout@v4

# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install

# TODO: BUILD DOCUMENTATION USING RESPECTER
22 changes: 22 additions & 0 deletions .github/workflows/main-and-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Main and PR pipeline

on:
push:
branches:
- main

workflow_call:

pull_request:
branches:
- main

jobs:
checks:
uses: ./.github/workflows/checks.yml

build:
uses: ./.github/workflows/build.yml
with:
is_release: false

38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Include ontology assets in the release

on:
push:
tags:
- "v*"

jobs:

build:
uses: ./.github/workflows/build.yml
with:
is_release: true

checks:
uses: ./.github/workflows/checks.yml
with:
is_release: true
needs: build

make_release:
runs-on: ubuntu-latest
needs:
- checks

steps:
- uses: actions/checkout@v4

- name: get schema assets
uses: actions/download-artifact@v4.1.8
with:
name: schema-bundle
path: build/

- name: create release
uses: softprops/action-gh-release@v2
with:
files: build/*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.env
./build/*
bin/act
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v0.1: Initial release, ex: prefixes updated, sh:nodekind sh:IRI replaced with a regex.
v0.2: Changed shapes, ontology definitions, fairlevel validator.
v0.3: Changed fair calculation.
v0.4: Fixed loose nodes for PySHACL.
v0.5: Updated definitions, cardinality of several shapes.
v0.6: Added ontology metadata.
v0.7: Internalize & objectify hasExecutableNotebook, update prefixes from ex: to imag:
v0.8: Update FAIR levels, contributors+producers become authors. First+Last name becomes schema:name.
v0.9: Support for runnable examples, dicom dataset properties, spelling mistakes.
22 changes: 22 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Imaging Plaza Ontology
message: >-
If you use this dataset, please cite it using the metadata
from this file.
type: dataset
authors:
- given-names: Robin
family-names: Franken
email: robin.franken@epfl.ch
affiliation: EPFL
orcid: 'https://orcid.org/0009-0008-0143-9118'
- given-names: Carlos
family-names: Vivar Rios
orcid: 'https://orcid.org/0000-0002-8076-2034'
email: carlos.vivarrios@epfl.ch
affiliation: EPFL
url: 'https://imaging-plaza.epfl.ch/'
license: CC-BY-4.0
20 changes: 20 additions & 0 deletions CONTRIBUTING
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Contribution Guidelines

:tada: **First off, thank you for considering contributing to our project!**
:tada:

This is a community-driven project, so it's people like you that make it useful
and successful. These are some of the many ways to contribute:

- 🐛, 🎊 Submitting bug reports and feature requests.

## Ground Rules

The goal is to maintain a diverse community that's pleasant for everyone.
**Please be considerate and respectful of others**. Everyone must abide by our
[Code of Conduct][docs/code-of-conduct.md] and we encourage all to read it
carefully.

### Maintainers Guide

See the [maintenance guide here](docs/development-guide.md).
Loading