Skip to content

Commit

Permalink
Merge pull request perma-id#2862 from coolharsh55/dpv
Browse files Browse the repository at this point in the history
/dpv: Adds rights/eu and risk redirects
  • Loading branch information
dgarijo authored Aug 15, 2022
2 parents fc2b3b1 + 16f3123 commit 48b7e47
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 56 deletions.
146 changes: 118 additions & 28 deletions dpv/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://w3c.github.io/dpv/dpv/dpv.jsonld [R=302,L]

# DPV-GDPR
# also covers /dpv/dpv-gdpr/dpia
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^dpv-gdpr$ https://w3c.github.io/dpv/dpv-gdpr/dpv-gdpr.rdf [R=302,L]

Expand Down Expand Up @@ -82,6 +83,32 @@ RewriteRule ^dpv-legal$ https://w3c.github.io/dpv/dpv-legal/dpv-legal.n3 [R=302,
RewriteCond %{HTTP_ACCEPT} application/ld\+json
rewriterule ^dpv-legal$ https://w3c.github.io/dpv/dpv-legal/dpv-legal.jsonld [r=302,l]

# risk
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^risk$ https://w3c.github.io/dpv/risk/risk.rdf [R=302,L]

RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^risk$ https://w3c.github.io/dpv/risk/risk.ttl [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/n\-triples
RewriteRule ^risk$ https://w3c.github.io/dpv/risk/risk.n3 [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/ld\+json
rewriterule ^risk$ https://w3c.github.io/dpv/risk/risk.jsonld [r=302,l]

# rights-eu
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^rights/eu$ https://w3c.github.io/dpv/rights/eu.rdf [R=302,L]

RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^rights/eu$ https://w3c.github.io/dpv/rights/eu.ttl [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/n\-triples
RewriteRule ^rights/eu$ https://w3c.github.io/dpv/rights/eu.n3 [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/ld\+json
rewriterule ^rights/eu$ https://w3c.github.io/dpv/rights/eu.jsonld [r=302,l]

### DPV-SKOS ###

# DPV-SKOS/DPV
Expand All @@ -98,6 +125,7 @@ RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^dpv-skos$ https://w3c.github.io/dpv/dpv-skos/dpv.jsonld [R=302,L]

# DPV-SKOS/DPV-GDPR
# also covers /dpv/dpv-skos/dpv-gdpr/dpia
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^dpv-skos/dpv-gdpr$ https://w3c.github.io/dpv/dpv-skos/dpv-gdpr/dpv-gdpr.rdf [R=302,L]

Expand Down Expand Up @@ -149,6 +177,32 @@ RewriteRule ^dpv-skos/dpv-legal$ https://w3c.github.io/dpv/dpv-skos/dpv-legal/dp
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^dpv-skos/dpv-legal$ https://w3c.github.io/dpv/dpv-skos/dpv-legal/dpv-legal.jsonld [R=302,L]

# dpv-skos/risk
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^dpv-skos/risk$ https://w3c.github.io/dpv/dpv-skos/risk/risk.rdf [R=302,L]

RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^dpv-skos/risk$ https://w3c.github.io/dpv/dpv-skos/risk/risk.ttl [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/n\-triples
RewriteRule ^dpv-skos/risk$ https://w3c.github.io/dpv/dpv-skos/risk/risk.n3 [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/ld\+json
rewriterule ^dpv-skos/risk$ https://w3c.github.io/dpv/dpv-skos/risk/risk.jsonld [r=302,l]

# rights-eu
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^dpv-skos/rights/eu$ https://w3c.github.io/dpv/dpv-skos/rights/eu.rdf [R=302,L]

RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^dpv-skos/rights/eu$ https://w3c.github.io/dpv/dpv-skos/rights/eu.ttl [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/n\-triples
RewriteRule ^dpv-skos/rights/eu$ https://w3c.github.io/dpv/dpv-skos/rights/eu.n3 [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/ld\+json
rewriterule ^dpv-skos/rights/eu$ https://w3c.github.io/dpv/dpv-skos/rights/eu.jsonld [r=302,l]

### DPV-OWL ###

# DPV-OWL/DPV
Expand All @@ -165,6 +219,7 @@ RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^dpv-owl$ https://w3c.github.io/dpv/dpv-owl/dpv.jsonld [R=302,L]

# DPV-OWL/DPV-GDPR
# also covers /dpv/dpv-owl/dpv-gdpr/dpia
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^dpv-owl/dpv-gdpr$ https://w3c.github.io/dpv/dpv-owl/dpv-gdpr/dpv-gdpr.rdf [R=302,L]

Expand Down Expand Up @@ -216,6 +271,32 @@ RewriteRule ^dpv-owl/dpv-legal$ https://w3c.github.io/dpv/dpv-owl/dpv-legal/dpv-
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^dpv-owl/dpv-legal$ https://w3c.github.io/dpv/dpv-owl/dpv-legal/dpv-legal.jsonld [R=302,L]

# dpv-owl/risk
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^dpv-owl/risk$ https://w3c.github.io/dpv/dpv-owl/risk/risk.rdf [R=302,L]

RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^dpv-owl/risk$ https://w3c.github.io/dpv/dpv-owl/risk/risk.ttl [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/n\-triples
RewriteRule ^dpv-owl/risk$ https://w3c.github.io/dpv/dpv-owl/risk/risk.n3 [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/ld\+json
rewriterule ^dpv-owl/risk$ https://w3c.github.io/dpv/dpv-owl/risk/risk.jsonld [r=302,l]

# rights-eu
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^dpv-owl/rights/eu$ https://w3c.github.io/dpv/dpv-owl/rights/eu.rdf [R=302,L]

RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^dpv-owl/rights/eu$ https://w3c.github.io/dpv/dpv-owl/rights/eu.ttl [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/n\-triples
RewriteRule ^dpv-owl/rights/eu$ https://w3c.github.io/dpv/dpv-owl/rights/eu.n3 [R=302,L]

RewriteCond %{HTTP_ACCEPT} application/ld\+json
rewriterule ^dpv-owl/rights/eu$ https://w3c.github.io/dpv/dpv-owl/rights/eu.jsonld [r=302,l]

# --- #
# Default content type paths
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
Expand All @@ -237,31 +318,40 @@ RewriteRule ^$ https://w3c.github.io/dpv/dpv [R=302,L]
RewriteRule ^(.*)$ https://w3c.github.io/dpv/$1 [R=302,L]

# --- Paths to test --- #
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#| prefix | w3id | HTML | RDF |
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#| dpv | https://w3id.org/dpv/dpv | https://w3c.github.io/dpv/dpv | https://w3c.github.io/dpv/dpv.rdf |
#| dpv-skos | https://w3id.org/dpv/dpv-skos | https://w3c.github.io/dpv/dpv-skos | https://w3c.github.io/dpv/dpv-skos/dpv.rdf |
#| dpv-owl | https://w3id.org/dpv/dpv-owl | https://w3c.github.io/dpv/dpv-owl | https://w3c.github.io/dpv/dpv-owl/dpv.rdf |
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#| dpv-pd | https://w3id.org/dpv/dpv-pd | https://w3c.github.io/dpv/dpv-pd | https://w3c.github.io/dpv/dpv-pd/dpv-pd.rdf |
#| dpv-skos/dpv-pd | https://w3id.org/dpv/dpv-skos/dpv-pd | https://w3c.github.io/dpv/dpv-skos/dpv-pd | https://w3c.github.io/dpv/dpv-skos/dpv-pd/dpv-pd.rdf |
#| dpv-owl/dpv-pd | https://w3id.org/dpv/dpv-owl/dpv-pd | https://w3c.github.io/dpv/dpv-owl/dpv-pd | https://w3c.github.io/dpv/dpv-owl/dpv-pd/dpv-pd.rdf |
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#| dpv-gdpr | https://w3id.org/dpv/dpv-gdpr | https://w3c.github.io/dpv/dpv-gdpr | https://w3c.github.io/dpv/dpv-gdpr/dpv-gdpr.rdf |
#| dpv-skos/dpv-gdpr | https://w3id.org/dpv/dpv-skos/dpv-gdpr | https://w3c.github.io/dpv/dpv-skos/dpv-gdpr | https://w3c.github.io/dpv/dpv-skos/dpv-gdpr/dpv-gdpr.rdf |
#| dpv-owl/dpv-gdpr | https://w3id.org/dpv/dpv-owl/dpv-gdpr | https://w3c.github.io/dpv/dpv-owl/dpv-gdpr | https://w3c.github.io/dpv/dpv-owl/dpv-gdpr/dpv-gdpr.rdf |
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#| dpv-tech | https://w3id.org/dpv/dpv-tech | https://w3c.github.io/dpv/dpv-tech | https://w3c.github.io/dpv/dpv-tech/dpv-tech.rdf |
#| dpv-skos/dpv-tech | https://w3id.org/dpv/dpv-skos/dpv-tech | https://w3c.github.io/dpv/dpv-skos/dpv-tech | https://w3c.github.io/dpv/dpv-skos/dpv-tech/dpv-tech.rdf |
#| dpv-owl/dpv-tech | https://w3id.org/dpv/dpv-owl/dpv-tech | https://w3c.github.io/dpv/dpv-owl/dpv-tech | https://w3c.github.io/dpv/dpv-owl/dpv-tech/dpv-tech.rdf |
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#| dpv-legal | https://w3id.org/dpv/dpv-legal | https://w3c.github.io/dpv/dpv-legal | https://w3c.github.io/dpv/dpv-legal/dpv-legal.rdf |
#| dpv-skos/dpv-legal | https://w3id.org/dpv/dpv-skos/dpv-legal | https://w3c.github.io/dpv/dpv-skos/dpv-legal | https://w3c.github.io/dpv/dpv-skos/dpv-legal/dpv-legal.rdf |
#| dpv-owl/dpv-legal | https://w3id.org/dpv/dpv-owl/dpv-legal | https://w3c.github.io/dpv/dpv-owl/dpv-legal | https://w3c.github.io/dpv/dpv-owl/dpv-legal/dpv-legal.rdf |
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#| primer | https://w3id.org/dpv/primer | https://w3c.github.io/dpv/primer | NIL |
#| guides | https://w3id.org/dpv/guides | https://w3c.github.io/dpv/guides | NIL |
#| examples | https://w3id.org/dpv/examples | https://w3c.github.io/dpv/examples | https://w3c.github.io/dpv/examples/.*X.rdf |
#| use-cases | https://w3id.org/dpv/use-cases | https://w3c.github.io/dpv/use-cases | https://w3c.github.io/dpv/use-cases/.*X.rdf |
#|--------------------+-----------------------------------------+----------------------------------------------+------------------------------------------------------------|
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| prefix | w3id | HTML | RDF |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| dpv | https://w3id.org/dpv/dpv | https://w3c.github.io/dpv/dpv | https://w3c.github.io/dpv/dpv.rdf |
#| dpv-skos | https://w3id.org/dpv/dpv-skos | https://w3c.github.io/dpv/dpv-skos | https://w3c.github.io/dpv/dpv-skos/dpv.rdf |
#| dpv-owl | https://w3id.org/dpv/dpv-owl | https://w3c.github.io/dpv/dpv-owl | https://w3c.github.io/dpv/dpv-owl/dpv.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| dpv-pd | https://w3id.org/dpv/dpv-pd | https://w3c.github.io/dpv/dpv-pd | https://w3c.github.io/dpv/dpv-pd/dpv-pd.rdf |
#| dpv-skos/dpv-pd | https://w3id.org/dpv/dpv-skos/dpv-pd | https://w3c.github.io/dpv/dpv-skos/dpv-pd | https://w3c.github.io/dpv/dpv-skos/dpv-pd/dpv-pd.rdf |
#| dpv-owl/dpv-pd | https://w3id.org/dpv/dpv-owl/dpv-pd | https://w3c.github.io/dpv/dpv-owl/dpv-pd | https://w3c.github.io/dpv/dpv-owl/dpv-pd/dpv-pd.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| dpv-gdpr | https://w3id.org/dpv/dpv-gdpr | https://w3c.github.io/dpv/dpv-gdpr | https://w3c.github.io/dpv/dpv-gdpr/dpv-gdpr.rdf |
#| dpv-skos/dpv-gdpr | https://w3id.org/dpv/dpv-skos/dpv-gdpr | https://w3c.github.io/dpv/dpv-skos/dpv-gdpr | https://w3c.github.io/dpv/dpv-skos/dpv-gdpr/dpv-gdpr.rdf |
#| dpv-owl/dpv-gdpr | https://w3id.org/dpv/dpv-owl/dpv-gdpr | https://w3c.github.io/dpv/dpv-owl/dpv-gdpr | https://w3c.github.io/dpv/dpv-owl/dpv-gdpr/dpv-gdpr.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| dpv-gdpr/dpia | https://w3id.org/dpv/dpv-gdpr/dpia | https://w3c.github.io/dpv/dpv-gdpr/dpia | NIL |
#| dpv-skos/dpv-gdpr/dpia | https://w3id.org/dpv/dpv-skos/dpv-gdpr/dpia | https://w3c.github.io/dpv/dpv-skos/dpv-gdpr/dpia | NIL |
#| dpv-owl/dpv-gdpr/dpia | https://w3id.org/dpv/dpv-owl/dpv-gdpr/dpia | https://w3c.github.io/dpv/dpv-owl/dpv-gdpr/dpia | NIL |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| dpv-tech | https://w3id.org/dpv/dpv-tech | https://w3c.github.io/dpv/dpv-tech | https://w3c.github.io/dpv/dpv-tech/dpv-tech.rdf |
#| dpv-skos/dpv-tech | https://w3id.org/dpv/dpv-skos/dpv-tech | https://w3c.github.io/dpv/dpv-skos/dpv-tech | https://w3c.github.io/dpv/dpv-skos/dpv-tech/dpv-tech.rdf |
#| dpv-owl/dpv-tech | https://w3id.org/dpv/dpv-owl/dpv-tech | https://w3c.github.io/dpv/dpv-owl/dpv-tech | https://w3c.github.io/dpv/dpv-owl/dpv-tech/dpv-tech.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| dpv-legal | https://w3id.org/dpv/dpv-legal | https://w3c.github.io/dpv/dpv-legal | https://w3c.github.io/dpv/dpv-legal/dpv-legal.rdf |
#| dpv-skos/dpv-legal | https://w3id.org/dpv/dpv-skos/dpv-legal | https://w3c.github.io/dpv/dpv-skos/dpv-legal | https://w3c.github.io/dpv/dpv-skos/dpv-legal/dpv-legal.rdf |
#| dpv-owl/dpv-legal | https://w3id.org/dpv/dpv-owl/dpv-legal | https://w3c.github.io/dpv/dpv-owl/dpv-legal | https://w3c.github.io/dpv/dpv-owl/dpv-legal/dpv-legal.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| rights | https://w3id.org/dpv/rights | https://w3c.github.io/dpv/rights | NIL |
#| rights-eu | https://w3id.org/dpv/rights/eu | https://w3c.github.io/dpv/rights/eu | https://w3c.github.io/dpv/rights/eu.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| risk | https://w3id.org/dpv/risk | https://w3c.github.io/dpv/risk | https://w3c.github.io/dpv/risk/risk.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
#| primer | https://w3id.org/dpv/primer | https://w3c.github.io/dpv/primer | NIL |
#| guides | https://w3id.org/dpv/guides | https://w3c.github.io/dpv/guides | NIL |
#| examples | https://w3id.org/dpv/examples | https://w3c.github.io/dpv/examples | https://w3c.github.io/dpv/examples/.*X.rdf |
#| use-cases | https://w3id.org/dpv/use-cases | https://w3c.github.io/dpv/use-cases | https://w3c.github.io/dpv/use-cases/.*X.rdf |
#|------------------------+---------------------------------------------+--------------------------------------------------+------------------------------------------------------------|
Loading

0 comments on commit 48b7e47

Please sign in to comment.