Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new gerps ID #4670

Merged
merged 3 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
4 changes: 4 additions & 0 deletions GerPS-onto/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Turn off MultiViews
Options -MultiViews

Redirect 301 /GerPS-onto /gerps/ontology/process
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would go to the same id twice: w3id.org/GerPS-onto//GerPS-onto. Please review

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ok since it's Redirect.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it locally beforehand and it works as expected. If you'd like for me to use a different command, please tell me which

45 changes: 1 addition & 44 deletions GerPS-onto/FIMDatenfelder/.htaccess
Original file line number Diff line number Diff line change
@@ -1,47 +1,4 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .jsonld
# Rewrite engine setup
RewriteEngine On
#Change the path to the folder here
#RewriteBase /GerPS-Datafield

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.jsonld [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.rdf [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.rdf [R=303,L]
Redirect 301 /GerPS-onto/FIMDatenfelder /gerps/ontology/datafield
19 changes: 0 additions & 19 deletions GerPS-onto/FIMDatenfelder/README.md

This file was deleted.

14 changes: 14 additions & 0 deletions GerPS-onto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Legacy German Public Service Ontology
This repository is now considered legacy, redirecting to w3id.org/gerps/ontology

## Redirects
Redirects:
- https://w3id.org/GerPS-onto -> https://w3id.org/gerps/ontology/
- https://w3id.org/GerPS-onto/ontology -> https://w3id.org/gerps/ontology/process/
- https://w3id.org/GerPS-onto/FIMDatenfelder -> https://w3id.org/gerps/ontology/process/

## Contact
| Maintainer | Institute | Email | ORCID | Location | Phone | Github-ID |
| -------------------- | ----------------------------------- | -------------------------------- | ------------------------------------- | ------------------------------------------------ | ----- | --------------------------------------------- |
| Maximilian Enderling | Friedrich-Schiller-Universität Jena | maximilian.enderling@uni-jena.de | https://orcid.org/0009-0007-5039-8538 | 07743 Jena; Leutragraben 1, JenTower, Room 18N03 | --- | [BMI24](https://github.com/BMI24) |
| Marianne Mauch | Friedrich-Schiller-Universität Jena | marianne.mauch@uni-jena.de | https://orcid.org/0000-0003-1478-1867 | 07743 Jena; Leutragraben 1, JenTower, Room 18N01 | --- | [gitmagit](https://github.com/gitmagit) |
44 changes: 1 addition & 43 deletions GerPS-onto/ontology/.htaccess
Original file line number Diff line number Diff line change
@@ -1,46 +1,4 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .jsonld
# Rewrite engine setup
RewriteEngine On

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/index.html [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.jsonld [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.rdf [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/406.html [R=406,L]

# Default response
# ---------------------------
# default response is the documentation page
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ [R=303,L]
Redirect 301 /GerPS-onto/ontology /gerps/ontology/process
19 changes: 0 additions & 19 deletions GerPS-onto/ontology/README.md

This file was deleted.

16 changes: 16 additions & 0 deletions gerps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# openDVA: German Public Services
This repo (which replaces the legacy GerPS-onto) is the home for all GerPS (German Public Services)-related redirects, which currently only includes our ontologies.

## Redirect

Redirects:
- https://w3id.org/gerps/ontology -> https://fusion-jena.github.io/gerps-onto-landingpage/#
- https://w3id.org/gerps/ontology/process -> https://fusion-jena.github.io/gerps-ontology/ (with RDF content negotiation)
- https://w3id.org/gerps/ontology/datafield -> https://fusion-jena.github.io/GerPS-Datafield/ (with RDF content negotiation)

## Contact
| Maintainer | Institute | Email | ORCID | Location | Phone | Github-ID |
| -------------------- | ----------------------------------- | -------------------------------- | ------------------------------------- | ------------------------------------------------ | ----- | --------------------------------------------- |
| Maximilian Enderling | Friedrich-Schiller-Universität Jena | maximilian.enderling@uni-jena.de | https://orcid.org/0009-0007-5039-8538 | 07743 Jena; Leutragraben 1, JenTower, Room 18N03 | --- | [BMI24](https://github.com/BMI24) |
| Marianne Mauch | Friedrich-Schiller-Universität Jena | marianne.mauch@uni-jena.de | https://orcid.org/0000-0003-1478-1867 | 07743 Jena; Leutragraben 1, JenTower, Room 18N01 | --- | [gitmagit](https://github.com/gitmagit) |
7 changes: 7 additions & 0 deletions gerps/ontology/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Turn off MultiViews
Options -MultiViews

# Rewrite engine setup
RewriteEngine On

RedirectMatch 301 ^/gerps/ontology/?$ https://fusion-jena.github.io/gerps-onto-landingpage/#
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you want this, since you would be going to /gerps/ontology/gerps/ontology
In this case, it would suffice to do ^$

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably ok since it's RedirectMatch. Consider aligning with the rest of these files and use RewriteRule with ^$ instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced it with RewriteRule, thanks! (but yeah, I tested it locally beforehand)

47 changes: 47 additions & 0 deletions gerps/ontology/datafield/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .jsonld
# Rewrite engine setup
RewriteEngine On
#Change the path to the folder here
#RewriteBase /GerPS-Datafield

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.jsonld [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.rdf [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ https://fusion-jena.github.io/GerPS-Datafield/ontology.rdf [R=303,L]
46 changes: 46 additions & 0 deletions gerps/ontology/process/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .jsonld
# Rewrite engine setup
RewriteEngine On

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/index.html [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.jsonld [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.rdf [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/406.html [R=406,L]

# Default response
# ---------------------------
# default response is the documentation page
RewriteRule ^$ https://fusion-jena.github.io/gerps-ontology/ [R=303,L]