-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.htaccess
More file actions
107 lines (88 loc) · 5.63 KB
/
.htaccess
File metadata and controls
107 lines (88 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<Files ~ "anno.json">
ForceType 'application/ld+json'
</Files>
RewriteEngine On
RewriteBase /ns/
# Added ivan@w3.org 2014-05-02
# http://lists.w3.org/Archives/Public/public-openannotation/2014May/0010.html
RewriteRule ^oa-context-20130208.json oa.jsonld [L,R=307]
RewriteRule ^oa-context.json oa.jsonld [L,R=307]
# added sandro@w3.org 2015-05-05 per discussion with elf at socialWG F2F
<Files ~ "activitystreams*">
Header set Access-Control-Allow-Origin "*"
</Files>
<Files ~ "ui*">
# Header always set Access-Control-Allow-Origin "*"
Header always set access-control-allow-credentials "true"
Header always set access-control-allow-methods "GET, HEAD, OPTIONS"
Header always set access-control-allow-headers "Link, Location, Accept-Post, Content-Type, Accept, Vary"
Header always set access-control-expose-headers "User, Location, Link, Vary, Last-Modified, ETag, Allow, Content-Length, Accept"
</Files>
#### Big Data Europe #####
# added by phila (phil@philarcher.org) 2017-06-28 for BigDataEurope Project
# Vocabulary Contact is Aad Versteden of TenForce and the mu.semte.ch endeavour <aad.versteden@gmail.com>
# See https://lists.w3.org/Archives/Team/team-strat/2017Jun/0064.html
RewriteRule ^bde/(.*)$ https://w3.semte.ch/ns/bde/$1 [P,L]
### Declarative LD Apps #####
# added by phila (phil@philarcher.org) 2017-06-29 on behalf of the Declarative Linked Data Apps CG https://www.w3.org/community/declarative-apps/
# Primary contact is Martynas Jusevičius <martynas@atomgraph.com>
# See https://lists.w3.org/Archives/Team/team-strat/2017Jul/0000.html
# Start with specific vocabs, note that all these begin with ^ldt
RewriteRule ^ldt/core/domain$ https://raw.githubusercontent.com/AtomGraph/Processor/master/src/main/resources/com/atomgraph/processor/c.ttl [P]
RewriteRule ^ldt/core/templates$ https://raw.githubusercontent.com/AtomGraph/Processor/master/src/main/resources/com/atomgraph/processor/ct.ttl [P]
RewriteRule ^ldt/document-hierarchy/domain$ https://raw.githubusercontent.com/AtomGraph/Processor/master/src/main/resources/com/atomgraph/processor/dh.ttl [P]
RewriteRule ^ldt/document-hierarchy/templates$ https://raw.githubusercontent.com/AtomGraph/Processor/master/src/main/resources/com/atomgraph/processor/dht.ttl [P]
RewriteRule ^ldt/topic-hierarchy/templates$ https://raw.githubusercontent.com/AtomGraph/Processor/master/src/main/resources/com/atomgraph/processor/tht.ttl [P]
# Hopefully it's now safe to include this one
RewriteRule ^ldt$ https://raw.githubusercontent.com/AtomGraph/Processor/master/src/main/resources/com/atomgraph/processor/ldt.ttl [P]
RewriteCond %{HTTP_ACCEPT} text/turtle
RewriteRule ^td$ td/td.ttl [R=303]
RewriteCond %{HTTP_ACCEPT} application/ld+json
RewriteRule ^td$ td/w3c-wot-td-context.jsonld [R=303]
# added by ivan@w3.org to serve the JSON-LD related files directly from their github repo
# 2019-04-17
RewriteRule ^wp.jsonld$ https://w3c.github.io/wp-vocab/wp.jsonld [P]
RewriteRule ^wp.json$ https://w3c.github.io/wp-vocab/wp.jsonld [P]
RewriteRule ^wp.rdf$ https://w3c.github.io/wp-vocab/wp.rdf [P]
RewriteRule ^wp.ttl$ https://w3c.github.io/wp-vocab/wp.ttl [P]
RewriteRule ^wp.html$ https://w3c.github.io/wp-vocab/wp.html [P]
RewriteRule ^wp-context.jsonld$ https://w3c.github.io/wp-vocab/wp-context.jsonld [P]
RewriteRule ^wp-context.json$ https://w3c.github.io/wp-vocab/wp-context.jsonld [P]
# Changes added on the latest block due URL name changes, 2019-10-12, then modified on 2020-07-29 (Ivan Herman)
# The pub.* re-writes are here to avoid breaking old URL-s, but are considered to be obsolete
RewriteRule ^pub.jsonld$ https://w3c.github.io/pub-vocab/pub-vocab/manifest.jsonld [P]
RewriteRule ^pub.json$ https://w3c.github.io/pub-vocab/pub-vocab/manifest.jsonld [P]
RewriteRule ^pub.rdf$ https://w3c.github.io/pub-vocab/pub-vocab/manifest.rdf [P]
RewriteRule ^pub.ttl$ https://w3c.github.io/pub-vocab/pub-vocab/manifest.ttl [P]
RewriteRule ^pub.html$ https://w3c.github.io/pub-vocab/pub-vocab/manifest.html [P]
RewriteRule ^pub-context.jsonld$ https://w3c.github.io/pub-vocab/pub-context.jsonld [P]
RewriteRule ^pub-context.json$ https://w3c.github.io/pub-vocab/pub-context.jsonld [P]
RewriteRule ^pub-context-jsonld10.jsonld$ https://w3c.github.io/pub-vocab/pub-context-jsonld10.jsonld [P]
RewriteRule ^pub-context-jsonld10.json$ https://w3c.github.io/pub-vocab/pub-context-jsonld10.jsonld [P]
###
# did
RewriteRule ^did$ did-vocab/did [PT]
RewriteRule ^did\.(.*) did-vocab/did.$1 [PT,L]
RewriteRule ^did/(.*) did-vocab/$1 [PT,L]
###
# EU Core Vocabularies -- now maintained by Semic
# by pierre-antoine@w3.org on 2023-06-15
#RewriteRule ^person(\..[a-z]+)?$ https://uri.semic.eu/w3c/ns/person$1 [L,R=307]
#RewriteRule ^legal(\..[a-z]+)?$ https://uri.semic.eu/w3c/ns/legal$1 [L,R=307]
#RewriteRule ^locn.svg$ legacy_locn.svg [L,R=307]
#RewriteRule ^locn(\..[a-z]+)?$ https://uri.semic.eu/w3c/ns/locn$1 [L,R=307]
# 2024-06-10 the URIs at uri.semic.eu are returning a 500,
# and my contact at TenCent who managed this for Semic is not responding,
# so reverting redirection to our own copies
# by pierre-antoine@w3.org on 2024-06-06
RewriteRule ^person(\..[a-z]+)?$ legacy_person$1 [L,R=307]
RewriteRule ^legal(\..[a-z]+)?$ legal-entity$1 [L,R=307]
RewriteRule ^locn(\..[a-z]+)?$ legacy_locn$1 [L,R=307]
RewriteRule ^adms(\..[a-z]+)?$ legacy_adms$1 [L,R=307]
# Adding EPUB Annotation vocabulary redirections toward documents in /TR
# Ivan Herman, February 2026
RewriteRule ^ea.jsonld$ /TR/epub-anno-vocab-10/index.jsonld [L]
RewriteRule ^ea.json$ /TR/epub-anno-vocab-10/index.jsonld [L]
RewriteRule ^ea.ttl$ /TR/epub-anno-vocab-10/index.ttl [L]
RewriteRule ^ea.html$ /TR/epub-anno-vocab-10/Overview.html [L]
RewriteRule ^epub-anno.jsonld$ /TR/epub-anno-vocab-10/index.context.jsonld [L]