Skip to content

Commit

Permalink
Merge pull request perma-id#4642 from dgarijo/master
Browse files Browse the repository at this point in the history
first iteration of the everse schemas
  • Loading branch information
dgarijo authored Jan 9, 2025
2 parents 5030d51 + 4a4a142 commit 8b2ff1f
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 0 deletions.
14 changes: 14 additions & 0 deletions everse/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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 .json

RewriteEngine on

RewriteRule ^$ https://everse.software/ [R=302,L]
8 changes: 8 additions & 0 deletions everse/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## EVERSE persistent identifiers

Folder for the persistent identifier of the EVERSE project.

Maintainer:
- Daniel Garijo (@dgarijo)
- https://github.com/EVERSE-ResearchSoftware/ organization

38 changes: 38 additions & 0 deletions everse/rs/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 .json

RewriteEngine on

# Rewrite rule for latest version.
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://github.com/EVERSE-ResearchSoftware/schemas/tree/main/software [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
# RewriteCond %{HTTP_ACCEPT} application/ld\+json
# RewriteRule ^$ {will update soon} [R=303,L]


# Rewrite rules for any other version.
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://github.com/EVERSE-ResearchSoftware/schemas/tree/main/software [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested (commented out for now)
# RewriteCond %{HTTP_ACCEPT} application/ld\+json
# RewriteRule ^(.+)$ {Will update soon} [R=303,L]

# RewriteCond %{HTTP_ACCEPT} .+
# RewriteRule ^(.*)$ {TO DO} [R=406,L]
38 changes: 38 additions & 0 deletions everse/rsqd/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 .json

RewriteEngine on

# Rewrite rule for latest version.
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://github.com/EVERSE-ResearchSoftware/schemas/tree/main/quality_dimensions [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
# RewriteCond %{HTTP_ACCEPT} application/ld\+json
# RewriteRule ^$ {will update soon} [R=303,L]


# Rewrite rules for any other version.
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://github.com/EVERSE-ResearchSoftware/schemas/tree/main/quality_dimensions [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested (commented out for now)
# RewriteCond %{HTTP_ACCEPT} application/ld\+json
# RewriteRule ^(.+)$ {Will update soon} [R=303,L]

# RewriteCond %{HTTP_ACCEPT} .+
# RewriteRule ^(.*)$ {TO DO} [R=406,L]
38 changes: 38 additions & 0 deletions everse/rsqi/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 .json

RewriteEngine on

# Rewrite rule for latest version.
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://github.com/EVERSE-ResearchSoftware/schemas/tree/main/quality_indicators [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
# RewriteCond %{HTTP_ACCEPT} application/ld\+json
# RewriteRule ^$ {will update soon} [R=303,L]


# Rewrite rules for any other version.
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://github.com/EVERSE-ResearchSoftware/schemas/tree/main/quality_indicators [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested (commented out for now)
# RewriteCond %{HTTP_ACCEPT} application/ld\+json
# RewriteRule ^(.+)$ {Will update soon} [R=303,L]

# RewriteCond %{HTTP_ACCEPT} .+
# RewriteRule ^(.*)$ {TO DO} [R=406,L]

0 comments on commit 8b2ff1f

Please sign in to comment.