-
Notifications
You must be signed in to change notification settings - Fork 4
/
179.txt
111 lines (75 loc) · 5.66 KB
/
179.txt
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
[12] [[URL]] の決め方には、色々な流儀や主張があります。
* Cool URI
[14] [DFN[Cool URIs don't change]] は、[[Web]] の発明者である [[TimBL]]
による記事とその主張です。 [[Webサイト]]の[[著者]]の気まぐれにより [CODE[404]]
エラーが多発していた当時の状況を踏まえ、良い [[URL]] を設計する必要性と方法を説いています。
[15] 当時の[[意識の高い]] [[Web開発者]]に大きな影響を与え、
[[拡張子]]のない [[URL path]] の普及のきっかけともなりました。
[REFS[
- [4] [CITE[Hypertext Style: Cool URIs don't change.]] ([TIME[2014-02-25 08:09:53 +09:00]] 版) <http://www.w3.org/Provider/Style/URI.html>
- [56]
[CITE[GoodURIs - ESW Wiki]] <http://esw.w3.org/topic/GoodURIs>
]REFS]
** Semantic Web
[10] [[Semantic Web]] の世界では、[[計算機]]上の表現でない[[資源]] (実在する物など)
を表す時、次の何れかの方法を採るのが良いとされています。
[FIG(list)[
- [[ハッシュURL]]を使う ([[RDF]] でその[[資源]]について説明する)
- [[素片識別子]]のない [CODE(URI)@en[http:]] [[URL]] を使い、
[[HTTPサーバー]]は [CODE(HTTP)[303]] [[応答]]を返してその[[資源]]について説明した [[RDF]]
に[[リダイレクト]]する
]FIG]
[66]
[CITE[URI Declaration Versus Use]] ([TIME[2007-08-02 13:08:18 +09:00]] 版) <http://dbooth.org/2007/uri-decl/>
>A URI declaration permits assertions about a URI's associated resource to be classified into two groups: core assertions, whch are provided by the URI declaration, and ancillary assertions, which are all others. This distinction enables different parties to share a common understanding of the associated resource (by accepting the core assertions) while making different choices about which ancillary assertions to accept. Resource identity is established by a two-step mapping from a URI to a set of core assertions, and hence through an interpretation to the resource that is denoted by that URI. This paper defines these concepts and proposes some related best practices and a Web architectural rule specifying how URIs for non-information resources can be conveniently declared using existing hash or hashless (303-redirect) URI mechanisms.
[3] [CITE[Cool URIs for the Semantic Web]] ([TIME[2008-12-03 00:30:18 +09:00]] 版) <http://www.w3.org/TR/cooluris/>
[69]
[CITE[Cool URIs for the Semantic Web]] ([TIME[2007-12-14 19:15:28 +09:00]] 版) <http://www.w3.org/TR/2007/WD-cooluris-20071217/>
[1] [CITE[Cool URIs for the Semantic Web]] ([TIME[2008-12-03 00:30:18 +09:00]] 版) <http://www.w3.org/TR/2008/NOTE-cooluris-20081203/>
[11] [CITE@en[URI-patterns-core/URI Patterns.md at master · UKGovLD/URI-patterns-core]]
([TIME[2016-06-30 12:46:21 +09:00]])
<https://github.com/UKGovLD/URI-patterns-core/blob/master/URI%20Patterns.md>
* REST
[8] [[Cool URI]] が良い、という話は [[REST]] 推進者からも出てきます。
しかし [[REST]] な設計と言われるものには [[Cool URI]] とは矛盾しそうなものもあります。
[[REST]] といっても色々あるので、一枚岩では無さそうです。
;; 詳しくは [[REST]] 参照。
* 内容折衝との関係
[67]
[CITE@en[h3h.net - Designing URLs for Multilingual Web Sites]] ([CODE[2007-10-07 21:44:44 +09:00]] 版) <http://h3h.net/2007/01/designing-urls-for-multilingual-web-sites/>
* 名前空間 URL との関係
;; [7] [[名前空間の管理]]も参照。
[57]
[CITE[www-tag@w3.org from June 2006: by thread]] <http://lists.w3.org/Archives/Public/www-tag/2006Jun/thread.html#msg132>
[[W3C]] の [[URI]] 割り当て方針 (割り当ての年月が入るやつ)
がいけてないという話。[[Ian Hickson]] の
<data:,520e273a-62ad-4528-bb1e-9652bda76d62>
は <http://www.w3.org/1999/xhtml> の [Q[1999]]
のような訳の分からない数字を皮肉ったものらしいww
([[名無しさん]] [WEAK[2006-07-08 04:48:18 +00:00]])
[58]
確かに最近[[名前空間URI]]の年号を覚える or コピペするのがめんどくてうんざりしてるんだよ。。。
([[名無しさん]] [WEAK[2006-07-08 04:49:35 +00:00]])
[5] [CITE[URIs for W3C Namespaces]] ([TIME[2007-07-20 05:24:56 +09:00]] 版) <http://www.w3.org/2005/07/13-nsuri>
[6] [CITE@en[W3C URI Persistence Policy]] ([TIME[2015-08-29 01:19:06 +09:00]] 版) <http://www.w3.org/Consortium/Persistence>
* セキュリティーとプライバシー
[9] [[URL]] の[[セキュリティー]]の項を参照。
* 関連
[13] [[悪いWeb API設計]]も参照。
* メモ
[2] [CITE[Hatena::agenda - ウェブサイト運営方針を考える(長文注意)]] ([TIME[2007-08-31 17:39:11 +09:00]] 版) <http://d.hatena.ne.jp/jintrick/20070822>
[46]
[CITE[yohei-y:weblog: 良い URI の設計]] <http://yohei-y.blogspot.com/2005/08/uri.html>
[59]
[CITE[hxxk.jp - 各種 weblog の URI 設計を比較してみる]] <http://hxxk.jp/2005/11/15/1850>
([[名無しさん]] [WEAK[2006-07-08 12:06:10 +00:00]])
[64]
[CITE[Why you should be using disambiguated URLs]] ([CODE[2007-02-10 01:07:29 +09:00]] 版) <http://simonwillison.net/2007/Feb/4/urls/>
([[名無しさん]] [WEAK[2007-02-09 16:15:26 +00:00]])
>Good URLs are important. The best URLs are readable, reliable and hackable.
[65]
[CITE@ja[第20回 “使いやすいURI(URL)”の設計を考える:ITpro]] ([CODE[2007-04-28 12:10:18 +09:00]] 版) <http://itpro.nikkeibp.co.jp/article/COLUMN/20070424/269291/>
([[名無しさん]] [WEAK[2007-04-28 03:12:39 +00:00]])
[49] [CITE[URL Design — Warpspire]]
( ([TIME[2011-01-05 03:41:37 +09:00]] 版))
<http://warpspire.com/posts/url-design/>