-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
171 lines (142 loc) · 6.88 KB
/
.htaccess
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Added charset for text/turtle per https://github.com/w3c/dxwg/issues/1183
<Files ~ "dcat.ttl">
ForceType 'text/turtle; charset=utf-8'
</Files>
<Files ~ "dcat-external.ttl">
ForceType 'text/turtle; charset=utf-8'
</Files>
<Files ~ "dcat2.ttl">
ForceType 'text/turtle; charset=utf-8'
</Files>
<Files ~ "dcat2014.ttl">
ForceType 'text/turtle; charset=utf-8'
</Files>
# Added CORS for everything! [email protected] 2015-05-05
# (wait for sys) Header set Access-Control-Allow-Origin "*"
<Files ~ "md.json">
ForceType 'application/json'
</Files>
<Files ~ "json-ld.json">
ForceType 'application/json'
</Files>
# Added the access-control-allow [email protected] 2015-05-01
<Files ~ "json-ld.jsonld">
Header set Access-Control-Allow-Origin "*"
ForceType 'application/ld+json'
</Files>
# Added the access-control-allow [email protected] 2015-05-01
<Files ~ "csvw.jsonld">
ForceType 'application/ld+json'
Header set Access-Control-Allow-Origin "*"
</Files>
<Files ~ "csvw.ttl">
Header set Access-Control-Allow-Origin "*"
</Files>
# Added the access-control-allow [email protected] 2015-05-01
<Files ~ "oa.jsonld">
Header set Access-Control-Allow-Origin "*"
ForceType 'application/ld+json'
</Files>
# Added the access-control-allow [email protected] 2015-08-19
<Files ~ "anno.jsonld">
Header set Access-Control-Allow-Origin "*"
ForceType 'application/ld+json'
</Files>
<Files ~ "anno.json">
Header set Access-Control-Allow-Origin "*"
ForceType 'application/ld+json'
</Files>
# Added by [email protected] 2015-10-30
<Files ~ “ldp.jsonld">
Header set Access-Control-Allow-Origin "*"
ForceType 'application/ld+json'
</Files>
<FilesMatch "^(ma-ont|mediaont)\.html$">
ForceType 'text/html; charset=iso-8859-1'
</FilesMatch>
RewriteEngine On
RewriteBase /ns/
# added [email protected] 2013-11-29 per
# https://lists.w3.org/Archives/Team/vocab-services/2013Nov/0002.html
# JK: the following header unset rules are very specific to
# this proxy endpoint; don't duplicate them elsewhere.
RewriteRule ^hydra/(.*)$ http://www.markus-lanthaler.com/hydra/$1 [P,L]
<If "%{REQUEST_URI} =~ m#^/ns/hydra/#">
Header unset Set-Cookie
Header unset Expect-CT
Header unset Content-Security-Policy
Header unset Server
Header unset Strict-Transport-Security
Header set Access-Control-Allow-Origin "*"
</If>
# Added [email protected] 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 [email protected] 2015-05-05 per discussion with elf at socialWG F2F
<Files ~ "activitystreams*">
Header set Access-Control-Allow-Origin "*"
</Files>
<Files ~ "shex.jsonld">
ForceType 'application/ld+json'
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 ([email protected]) 2017-06-28 for BigDataEurope Project
# Vocabulary Contact is Aad Versteden of TenForce and the mu.semte.ch endeavour <[email protected]>
# 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 ([email protected]) 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 <[email protected]>
# 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]
# added by [email protected] for N-triples content negotiation
AddType application/n-triples .nt
# added by [email protected] for thing description content negotiation
AddType text/turtle .ttl
AddType application/ld+json .jsonld
AddType application/rdf+xml .rdf
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 [email protected] 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]