Skip to content

Commit 074a7d2

Browse files
authored
Merge pull request #86 from Materials-Data-Science-and-Informatics/az-ihsan-patch-5
Revise module names and update version to PRIMA v3
2 parents 1bc7867 + 6870d15 commit 074a7d2

1 file changed

Lines changed: 102 additions & 67 deletions

File tree

prima/.htaccess

Lines changed: 102 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,176 +1,211 @@
11
# Contact person name: Ahmad Z. Ihsan
22
# Contact person email: a.ihsan@fz-juelich.de
3-
# Artifacts: core, dal, dataset, experiment, complete
4-
# Artifacts Names: PRIMA-Core ontology, PRIMA-Data Analysis Lifecycle ontology, PRIMA-Dataset ontology, PRIMA-Experiment ontology, PRIMA-Complete ontology
3+
# Artifacts: core, dal, dataset, experiment, computational, complete
4+
# Artifacts Names: PRIMA-Core module, PRIMA-Data Analysis Lifecycle module, PRIMA-Dataset module, PRIMA-Experiment module, PRIMA-Computational module, PRIMA-Complete module
55
# Resource location: https://github.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology
66

77
Options +FollowSymLinks
88

99
# Turn off MultiViews
1010
Options -MultiViews
1111

12-
# Directive to ensure *.rdf files served as appropriate content type
12+
# Directive to ensure files served as appropriate content type
1313
AddType application/rdf+xml .owl
1414
AddType application/rdf+xml .rdf
1515
AddType text/turtle .ttl
1616
AddType application/ld+json .jsonld
17-
17+
1818
RewriteEngine on
1919

20-
# PRIMA-Core ontology
21-
#==============
20+
# =========================================================
21+
# PRIMA-Core module (v3)
22+
# =========================================================
23+
2224
# HTML
2325
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
2426
RewriteCond %{HTTP_ACCEPT} text/html [OR]
2527
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
2628
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
27-
RewriteRule ^core$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/core/ver_2_0/index.html [R=303,L]
29+
RewriteRule ^core$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/core/ver_3_0/index.html [R=303,L]
2830

29-
# Rewrite rule to serve RDF/XML content
31+
# RDF/XML
3032
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
3133
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR]
3234
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.*
3335
RewriteRule ^core$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/core/ver_3_0/prima-core.owl [R=303,L]
3436

35-
# Rewrite rule to serve TTL content
37+
# TTL
3638
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
3739
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
38-
RewriteCond %{HTTP_ACCEPT} \*/turtle
39-
RewriteRule ^core$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/core/ver_3_0/prima-core.ttl [R=303,L]
40+
RewriteCond %{HTTP_ACCEPT} \*/turtle
41+
RewriteRule ^core$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/core/ver_3_0/prima-core.ttl [R=303,L]
4042

4143
# JSON-LD
4244
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
43-
RewriteRule ^core$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/core/ver_3_0/prima-core.jsonld [R=303,L]
45+
RewriteRule ^core$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/core/ver_3_0/prima-core.jsonld [R=303,L]
4446

45-
# Default response
46-
# Rewrite rule to serve the RDF/XML content from the PRIMA-Core IRI by default
47+
# Default response (RDF/XML)
4748
RewriteRule ^core$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/core/ver_3_0/prima-core.owl [R=303,L]
4849

49-
# PRIMA-Data Analysis Lifecycle ontology
50-
#==============
50+
# =========================================================
51+
# PRIMA-Data Analysis Lifecycle module (v3)
52+
# =========================================================
53+
54+
# HTML
55+
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
56+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
57+
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
58+
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
59+
RewriteRule ^dal$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/data-analysis-lifecycle/ver_3_0/index.html [R=303,L]
60+
61+
# RDF/XML
62+
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
63+
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR]
64+
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.*
65+
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/data-analysis-lifecycle/ver_3_0/prima-data-analysis-lifecycle.owl [R=303,L]
66+
67+
# TTL
68+
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
69+
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
70+
RewriteCond %{HTTP_ACCEPT} \*/turtle
71+
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/data-analysis-lifecycle/ver_3_0/prima-data-analysis-lifecycle.ttl [R=303,L]
72+
73+
# JSON-LD
74+
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
75+
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/data-analysis-lifecycle/ver_3_0/prima-data-analysis-lifecycle.jsonld [R=303,L]
76+
77+
# Default response (RDF/XML)
78+
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/data-analysis-lifecycle/ver_3_0/prima-data-analysis-lifecycle.owl [R=303,L]
79+
80+
# =========================================================
81+
# PRIMA-Dataset module (v3)
82+
# =========================================================
83+
5184
# HTML
5285
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
5386
RewriteCond %{HTTP_ACCEPT} text/html [OR]
5487
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
5588
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
56-
RewriteRule ^dal$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/data-analysis-lifecycle/ver_2_0/index.html [R=303,L]
89+
RewriteRule ^dataset$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/dataset/ver_3_0/index.html [R=303,L]
5790

58-
# Rewrite rule to serve RDF/XML content
91+
# RDF/XML
5992
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
6093
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR]
6194
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.*
62-
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/data-analysis-lifecycle/ver_2_0/prima-data-analysis-lifecycle.owl [R=303,L]
95+
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_3_0/prima-dataset.owl [R=303,L]
6396

64-
# Rewrite rule to serve TTL content
97+
# TTL
6598
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
6699
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
67-
RewriteCond %{HTTP_ACCEPT} \*/turtle
68-
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/data-analysis-lifecycle/ver_2_0/prima-data-analysis-lifecycle.ttl [R=303,L]
100+
RewriteCond %{HTTP_ACCEPT} \*/turtle
101+
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_3_0/prima-dataset.ttl [R=303,L]
69102

70103
# JSON-LD
71104
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
72-
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_2_0/prima-dataset.jsonld [R=303,L]
105+
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_3_0/prima-dataset.jsonld [R=303,L]
106+
107+
# Default response (RDF/XML)
108+
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_3_0/prima-dataset.owl [R=303,L]
73109

74-
# Default response
75-
# Rewrite rule to serve the RDF/XML content from the PRIMA-DAL IRI by default
76-
RewriteRule ^dal$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/data-analysis-lifecycle/ver_2_0/prima-data-analysis-lifecycle.owl [R=303,L]
110+
# =========================================================
111+
# PRIMA-Experiment module (v3)
112+
# =========================================================
77113

78-
# PRIMA-Dataset ontology
79-
#==============
80114
# HTML
81115
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
82116
RewriteCond %{HTTP_ACCEPT} text/html [OR]
83117
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
84118
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
85-
RewriteRule ^dataset$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/dataset/ver_2_0/index.html [R=303,L]
119+
RewriteRule ^experiment$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/experiment/ver_3_0/index.html [R=303,L]
86120

87-
# Rewrite rule to serve RDF/XML content
121+
# RDF/XML
88122
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
89123
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR]
90124
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.*
91-
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_2_0/prima-dataset.owl [R=303,L]
125+
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_3_0/prima-experiment.owl [R=303,L]
92126

93-
# Rewrite rule to serve TTL content
127+
# TTL
94128
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
95129
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
96-
RewriteCond %{HTTP_ACCEPT} \*/turtle
97-
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_2_0/prima-dataset.ttl [R=303,L]
130+
RewriteCond %{HTTP_ACCEPT} \*/turtle
131+
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_3_0/prima-experiment.ttl [R=303,L]
98132

99133
# JSON-LD
100134
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
101-
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_2_0/prima-dataset.jsonld [R=303,L]
135+
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_3_0/prima-experiment.jsonld [R=303,L]
136+
137+
# Default response (RDF/XML)
138+
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_3_0/prima-experiment.owl [R=303,L]
102139

103-
# Default response
104-
# Rewrite rule to serve the RDF/XML content from the PRIMA-Dataset IRI by default
105-
RewriteRule ^dataset$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/dataset/ver_2_0/prima-dataset.owl [R=303,L]
140+
# =========================================================
141+
# PRIMA-Computational module (v3)
142+
# =========================================================
106143

107-
# PRIMA-Experiment ontology
108-
#==============
109144
# HTML
110145
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
111146
RewriteCond %{HTTP_ACCEPT} text/html [OR]
112147
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
113148
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
114-
RewriteRule ^experiment$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/experiment/ver_2_0/index.html [R=303,L]
149+
RewriteRule ^computational$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/computational/ver_3_0/index.html [R=303,L]
115150

116-
# Rewrite rule to serve RDF/XML content
151+
# RDF/XML
117152
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
118153
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR]
119154
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.*
120-
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_2_0/prima-experiment.owl [R=303,L]
155+
RewriteRule ^computational$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/computational/ver_3_0/prima-computational.owl [R=303,L]
121156

122-
# Rewrite rule to serve TTL content
157+
# TTL
123158
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
124159
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
125-
RewriteCond %{HTTP_ACCEPT} \*/turtle
126-
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_2_0/prima-experiment.ttl [R=303,L]
160+
RewriteCond %{HTTP_ACCEPT} \*/turtle
161+
RewriteRule ^computational$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/computational/ver_3_0/prima-computational.ttl [R=303,L]
127162

128163
# JSON-LD
129164
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
130-
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_2_0/prima-experiment.jsonld [R=303,L]
165+
RewriteRule ^computational$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/computational/ver_3_0/prima-computational.jsonld [R=303,L]
131166

132-
# Default response
133-
# Rewrite rule to serve the RDF/XML content from the PRIMA-Experiment IRI by default
134-
RewriteRule ^experiment$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/experiment/ver_2_0/prima-experiment.owl [R=303,L]
167+
# Default response (RDF/XML)
168+
RewriteRule ^computational$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/computational/ver_3_0/prima-computational.owl [R=303,L]
169+
170+
# =========================================================
171+
# PRIMA-Complete module (v3)
172+
# =========================================================
135173

136-
# PRIMA-Complete
137-
#==============
138174
# HTML
139175
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
140176
RewriteCond %{HTTP_ACCEPT} text/html [OR]
141177
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
142178
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
143-
RewriteRule ^complete$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/complete/ver_2_0/index.html [R=303,L]
179+
RewriteRule ^complete$ https://materials-data-science-and-informatics.github.io/MDMC-NEP-top-level-ontology/PRIMA/complete/ver_3_0/index.html [R=303,L]
144180

145-
# Rewrite rule to serve RDF/XML content
181+
# RDF/XML
146182
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
147183
RewriteCond %{HTTP_ACCEPT} ^.*application/xml.* [OR]
148184
RewriteCond %{HTTP_ACCEPT} ^.*text/xml.*
149-
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_2_0/prima-complete.owl [R=303,L]
185+
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_3_0/prima-complete.owl [R=303,L]
150186

151-
# Rewrite rule to serve TTL content
187+
# TTL
152188
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
153189
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
154-
RewriteCond %{HTTP_ACCEPT} \*/turtle
155-
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_2_0/prima-complete.ttl [R=303,L]
190+
RewriteCond %{HTTP_ACCEPT} \*/turtle
191+
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_3_0/prima-complete.ttl [R=303,L]
156192

157193
# JSON-LD
158194
RewriteCond %{HTTP_ACCEPT} ^.*application/ld\+json.*
159-
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_2_0/prima-complete.jsonld [R=303,L]
195+
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_3_0/prima-complete.jsonld [R=303,L]
160196

161-
# Default response
162-
# Rewrite rule to serve the RDF/XML content from the PRIMA-Complete IRI by default
163-
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_2_0/prima-complete.owl [R=303,L]
197+
# Default response (RDF/XML)
198+
RewriteRule ^complete$ https://raw.githubusercontent.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/master/PRIMA/complete/ver_3_0/prima-complete.owl [R=303,L]
164199

200+
# =========================================================
165201
# PRIMA Use Cases
166-
#================
202+
# =========================================================
203+
167204
# Use case 1
168205
RewriteRule ^use-case-1$ https://github.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/tree/master/use-cases/STRAS-mapping [R=303,L]
169206

170-
# Use case 2
207+
# Use case 2
171208
RewriteRule ^use-case-2$ https://github.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/tree/master/use-cases/Herbie-ELN [R=303,L]
172209

173-
# Development
174-
# ===========
210+
# Development
175211
RewriteRule ^dev$ https://github.com/Materials-Data-Science-and-Informatics/MDMC-NEP-top-level-ontology/ [R=303,L]
176-

0 commit comments

Comments
 (0)