Skip to content

Commit f7d0961

Browse files
committed
Add MOIN ontology
1 parent 074a7d2 commit f7d0961

2 files changed

Lines changed: 90 additions & 0 deletions

File tree

moin/.htaccess

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Contact person name: Linda Baldewein
2+
# Contact person email: linda.baldewein@hereon.de
3+
# Artifact name: Maintenance Ontology and audit log Integration Ontology
4+
# Resource location: https://codebase.helmholtz.cloud/moin4herbie/moin4herbie-public/-/raw/main/ontology/moin/1.0.0.ttl
5+
# http://purls.helmholtz-metadaten.de/moin
6+
Options +FollowSymLinks -Indexes
7+
AddType text/turtle .ttl
8+
RewriteEngine on
9+
10+
# ==============================================================================
11+
# 1. CONFIGURATION
12+
# ==============================================================================
13+
# Note: SetEnvIf runs early and variables are accessible via %{ENV:VAR}
14+
SetEnvIf Request_URI "^" REPO=https://codebase.helmholtz.cloud/moin4herbie/moin4herbie-public
15+
SetEnvIf Request_URI "^" SHAPE_PATH=main/SHACL_shapes/shapes_moin
16+
SetEnvIf Request_URI "^" ONTOLOGY_FILE=main/ontology/moin/1.0.0.ttl
17+
18+
# ==============================================================================
19+
# 2. GLOBAL VIEW STATE
20+
# ==============================================================================
21+
RewriteRule ^ - [E=GL_DIR_VIEW:tree,E=GL_FILE_VIEW:blob,E=GL_SUFFIX:]
22+
23+
RewriteCond %{HTTP_ACCEPT} (text|application)/turtle [OR]
24+
RewriteCond %{HTTP_ACCEPT} application/x-turtle
25+
RewriteRule ^ - [E=GL_DIR_VIEW:raw,E=GL_FILE_VIEW:raw,E=GL_SUFFIX:/1.0.0.ttl]
26+
27+
# ==============================================================================
28+
# 3. ROOT REDIRECTS
29+
# ==============================================================================
30+
RewriteCond %{ENV:GL_DIR_VIEW} raw
31+
RewriteRule ^$ %{ENV:REPO}/-/raw/%{ENV:ONTOLOGY_FILE} [R=303,L]
32+
RewriteRule ^$ %{ENV:REPO}/ [R=303,L]
33+
34+
# ==============================================================================
35+
# 4. SHAPE LIST
36+
# Registers folders to use the Main Logic below.
37+
# ==============================================================================
38+
39+
#START_SHAPES
40+
RewriteRule ^shapes/cleaning(/|$) - [E=SHAPE_NAME:cleaning]
41+
RewriteRule ^shapes/featureOfInterest(/|$) - [E=SHAPE_NAME:featureOfInterest]
42+
RewriteRule ^shapes/installation(/|$) - [E=SHAPE_NAME:installation]
43+
RewriteRule ^shapes/material(/|$) - [E=SHAPE_NAME:material]
44+
RewriteRule ^shapes/memo(/|$) - [E=SHAPE_NAME:memo]
45+
RewriteRule ^shapes/organization(/|$) - [E=SHAPE_NAME:organization]
46+
RewriteRule ^shapes/person(/|$) - [E=SHAPE_NAME:person]
47+
RewriteRule ^shapes/plan(/|$) - [E=SHAPE_NAME:plan]
48+
RewriteRule ^shapes/platform(/|$) - [E=SHAPE_NAME:platform]
49+
RewriteRule ^shapes/removal(/|$) - [E=SHAPE_NAME:removal]
50+
RewriteRule ^shapes/returned(/|$) - [E=SHAPE_NAME:returned]
51+
RewriteRule ^shapes/sampler(/|$) - [E=SHAPE_NAME:sampler]
52+
RewriteRule ^shapes/sensor(/|$) - [E=SHAPE_NAME:sensor]
53+
RewriteRule ^shapes/shared(/|$) - [E=SHAPE_NAME:shared]
54+
#END_SHAPES
55+
56+
# ==============================================================================
57+
# 5. MAIN LOGIC
58+
# ==============================================================================
59+
60+
# A. Base Folder
61+
RewriteCond %{ENV:SHAPE_NAME} .
62+
RewriteRule ^shapes/[^/]+/?$ %{ENV:REPO}/-/%{ENV:GL_DIR_VIEW}/%{ENV:SHAPE_PATH}/%{ENV:SHAPE_NAME}%{ENV:GL_SUFFIX} [R=303,L]
63+
64+
# B. Specific Version
65+
RewriteCond %{ENV:SHAPE_NAME} .
66+
RewriteRule ^shapes/[^/]+/1\.0\.0/?$ %{ENV:REPO}/-/%{ENV:GL_FILE_VIEW}/%{ENV:SHAPE_PATH}/%{ENV:SHAPE_NAME}/1.0.0.ttl [R=303,L]
67+
68+
# C. Deep Links (Respects content negotiation via GL_FILE_VIEW)
69+
RewriteCond %{ENV:SHAPE_NAME} .
70+
RewriteRule ^shapes/[^/]+/(.*)$ %{ENV:REPO}/-/%{ENV:GL_FILE_VIEW}/%{ENV:SHAPE_PATH}/%{ENV:SHAPE_NAME}/$1 [R=303,L]
71+
72+
# ==============================================================================
73+
# 6. FALLBACK
74+
# ==============================================================================
75+
RewriteCond %{ENV:GL_DIR_VIEW} raw
76+
RewriteRule .* %{ENV:REPO}/-/raw/%{ENV:ONTOLOGY_FILE} [R=303,L]
77+
RewriteRule .* %{ENV:REPO}/ [R=303,L]

moin/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Maintenance Ontology and audit log Integration Ontology (MOIN)
2+
3+
MOIN, the maintenance ontology and audit log integration ontology, is an ontology for maintaining and scheduling maintenance for scientific sensor platforms.
4+
Rudimentary [documentation](https://codebase.helmholtz.cloud/moin4herbie/moin4herbie-public/-/tree/main?ref_type=heads) is available and will be extended soon.
5+
The ontology is available in one serialization:
6+
7+
TTL: https://codebase.helmholtz.cloud/moin4herbie/moin4herbie-public/-/raw/main/ontology/moin/1.0.0.ttl
8+
9+
The ontology is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
10+
11+
## Usecase
12+
13+
MOIN is used by [MOIN4Herbie](https://helmholtz-metadaten.de/inf-projects/moin4herbie), a project that digitizes and standardizes sensor maintenance metadata by extending the Herbie electronic lab notebook with ontology-based workflows, improving auditability, data quality, and scientific use of sensor data in Helmholtz research infrastructures. MOIN4Herbie is funded 2024-2026 by the Initiative and Networking Fund of the Helmholtz Association (Helmholtz Metadata Collaboration HMC, Project Cohort 2023). The grant number is ZT-I-PF-3-077.

0 commit comments

Comments
 (0)