rdf-vocab 3.1.10 → 3.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/rdf/vocab.rb +13 -1
- data/lib/rdf/vocab/acl.rb +47 -134
- data/lib/rdf/vocab/as.rb +381 -894
- data/lib/rdf/vocab/bf2.rb +1241 -2561
- data/lib/rdf/vocab/bibframe.rb +1241 -2561
- data/lib/rdf/vocab/bibo.rb +576 -1078
- data/lib/rdf/vocab/cc.rb +57 -167
- data/lib/rdf/vocab/cert.rb +72 -143
- data/lib/rdf/vocab/cnt.rb +51 -133
- data/lib/rdf/vocab/crm.rb +1180 -2486
- data/lib/rdf/vocab/datacite.rb +161 -161
- data/lib/rdf/vocab/dbo.rb +3900 -14140
- data/lib/rdf/vocab/dc.rb +458 -848
- data/lib/rdf/vocab/dc11.rb +62 -128
- data/lib/rdf/vocab/dcat.rb +215 -382
- data/lib/rdf/vocab/dcmitype.rb +65 -119
- data/lib/rdf/vocab/disco.rb +170 -401
- data/lib/rdf/vocab/doap.rb +197 -375
- data/lib/rdf/vocab/dwc.rb +1451 -2207
- data/lib/rdf/vocab/earl.rb +80 -218
- data/lib/rdf/vocab/ebucore.rb +2991 -7439
- data/lib/rdf/vocab/edm.rb +159 -351
- data/lib/rdf/vocab/exif.rb +453 -1106
- data/lib/rdf/vocab/extensions.rb +3 -3
- data/lib/rdf/vocab/fcrepo4.rb +247 -627
- data/lib/rdf/vocab/foaf.rb +373 -681
- data/lib/rdf/vocab/geo.rb +16 -58
- data/lib/rdf/vocab/geojson.rb +16 -85
- data/lib/rdf/vocab/geonames.rb +1573 -1742
- data/lib/rdf/vocab/gr.rb +539 -1427
- data/lib/rdf/vocab/gs1.rb +2824 -4424
- data/lib/rdf/vocab/ht.rb +93 -260
- data/lib/rdf/vocab/hydra.rb +216 -477
- data/lib/rdf/vocab/iana.rb +71 -304
- data/lib/rdf/vocab/ical.rb +460 -925
- data/lib/rdf/vocab/identifiers.rb +212 -515
- data/lib/rdf/vocab/iiif.rb +81 -220
- data/lib/rdf/vocab/jsonld.rb +130 -272
- data/lib/rdf/vocab/ldp.rb +131 -264
- data/lib/rdf/vocab/lrmi.rb +146 -234
- data/lib/rdf/vocab/ma.rb +233 -623
- data/lib/rdf/vocab/mads.rb +516 -1113
- data/lib/rdf/vocab/marcrelators.rb +539 -1351
- data/lib/rdf/vocab/mo.rb +1383 -2305
- data/lib/rdf/vocab/mods.rb +384 -903
- data/lib/rdf/vocab/nfo.rb +311 -315
- data/lib/rdf/vocab/oa.rb +196 -474
- data/lib/rdf/vocab/og.rb +120 -201
- data/lib/rdf/vocab/ogc.rb +25 -62
- data/lib/rdf/vocab/ore.rb +51 -110
- data/lib/rdf/vocab/org.rb +180 -376
- data/lib/rdf/vocab/pcdm.rb +50 -100
- data/lib/rdf/vocab/pplan.rb +16 -24
- data/lib/rdf/vocab/premis.rb +674 -1825
- data/lib/rdf/vocab/premiseventtype.rb +114 -272
- data/lib/rdf/vocab/prov.rb +996 -1618
- data/lib/rdf/vocab/ptr.rb +77 -218
- data/lib/rdf/vocab/rdau.rb +1289 -1294
- data/lib/rdf/vocab/rightsstatements.rb +90 -98
- data/lib/rdf/vocab/rsa.rb +30 -63
- data/lib/rdf/vocab/rss.rb +24 -69
- data/lib/rdf/vocab/schema.rb +8430 -18899
- data/lib/rdf/vocab/schemas.rb +8430 -18899
- data/lib/rdf/vocab/sd.rb +85 -242
- data/lib/rdf/vocab/sh.rb +729 -1468
- data/lib/rdf/vocab/sioc.rb +416 -820
- data/lib/rdf/vocab/siocservices.rb +31 -72
- data/lib/rdf/vocab/sioctypes.rb +145 -306
- data/lib/rdf/vocab/skos.rb +95 -217
- data/lib/rdf/vocab/skosxl.rb +26 -59
- data/lib/rdf/vocab/v.rb +199 -493
- data/lib/rdf/vocab/vcard.rb +290 -920
- data/lib/rdf/vocab/vmd.rb +199 -493
- data/lib/rdf/vocab/void.rb +86 -210
- data/lib/rdf/vocab/vs.rb +16 -38
- data/lib/rdf/vocab/wdrs.rb +43 -136
- data/lib/rdf/vocab/wot.rb +95 -176
- data/lib/rdf/vocab/xhtml.rb +2 -7
- data/lib/rdf/vocab/xhv.rb +122 -463
- data/lib/rdf/vocab/xkos.rb +116 -269
- data/spec/extensions_spec.rb +1 -1
- metadata +45 -25
data/lib/rdf/vocab/cc.rb
CHANGED
@@ -3,254 +3,144 @@
|
|
3
3
|
# This file generated automatically using rdf vocabulary format from http://creativecommons.org/ns#
|
4
4
|
require 'rdf'
|
5
5
|
module RDF::Vocab
|
6
|
-
# @!parse
|
7
|
-
# # Vocabulary for <http://creativecommons.org/ns#>
|
8
|
-
# #
|
9
|
-
# class CC < RDF::StrictVocabulary
|
10
|
-
# # the legal jurisdiction of a license
|
11
|
-
# # @return [RDF::Vocabulary::Term]
|
12
|
-
# attr_reader :Jurisdiction
|
13
|
-
#
|
14
|
-
# # a set of requests/permissions to users of a Work, e.g. a copyright license, the public domain, information for distributors
|
15
|
-
# # @return [RDF::Vocabulary::Term]
|
16
|
-
# attr_reader :License
|
17
|
-
#
|
18
|
-
# # an action that may or may not be allowed or desired
|
19
|
-
# # @return [RDF::Vocabulary::Term]
|
20
|
-
# attr_reader :Permission
|
21
|
-
#
|
22
|
-
# # something you may be asked not to do
|
23
|
-
# # @return [RDF::Vocabulary::Term]
|
24
|
-
# attr_reader :Prohibition
|
25
|
-
#
|
26
|
-
# # an action that may or may not be requested of you
|
27
|
-
# # @return [RDF::Vocabulary::Term]
|
28
|
-
# attr_reader :Requirement
|
29
|
-
#
|
30
|
-
# # a potentially copyrightable work
|
31
|
-
# # @return [RDF::Vocabulary::Term]
|
32
|
-
# attr_reader :Work
|
33
|
-
#
|
34
|
-
# # @return [RDF::Vocabulary::Term]
|
35
|
-
# attr_reader :attributionName
|
36
|
-
#
|
37
|
-
# # @return [RDF::Vocabulary::Term]
|
38
|
-
# attr_reader :attributionURL
|
39
|
-
#
|
40
|
-
# # @return [RDF::Vocabulary::Term]
|
41
|
-
# attr_reader :deprecatedOn
|
42
|
-
#
|
43
|
-
# # @return [RDF::Vocabulary::Term]
|
44
|
-
# attr_reader :jurisdiction
|
45
|
-
#
|
46
|
-
# # @return [RDF::Vocabulary::Term]
|
47
|
-
# attr_reader :legalcode
|
48
|
-
#
|
49
|
-
# # @return [RDF::Vocabulary::Term]
|
50
|
-
# attr_reader :license
|
51
|
-
#
|
52
|
-
# # @return [RDF::Vocabulary::Term]
|
53
|
-
# attr_reader :morePermissions
|
54
|
-
#
|
55
|
-
# # @return [RDF::Vocabulary::Term]
|
56
|
-
# attr_reader :permits
|
57
|
-
#
|
58
|
-
# # @return [RDF::Vocabulary::Term]
|
59
|
-
# attr_reader :prohibits
|
60
|
-
#
|
61
|
-
# # @return [RDF::Vocabulary::Term]
|
62
|
-
# attr_reader :requires
|
63
|
-
#
|
64
|
-
# # @return [RDF::Vocabulary::Term]
|
65
|
-
# attr_reader :useGuidelines
|
66
|
-
#
|
67
|
-
# # credit be given to copyright holder and/or author
|
68
|
-
# # @return [RDF::Vocabulary::Term]
|
69
|
-
# attr_reader :Attribution
|
70
|
-
#
|
71
|
-
# # exercising rights for commercial purposes
|
72
|
-
# # @return [RDF::Vocabulary::Term]
|
73
|
-
# attr_reader :CommercialUse
|
74
|
-
#
|
75
|
-
# # derivative and combined works must be licensed under specified terms, similar to those on the original work
|
76
|
-
# # @return [RDF::Vocabulary::Term]
|
77
|
-
# attr_reader :Copyleft
|
78
|
-
#
|
79
|
-
# # distribution of derivative works
|
80
|
-
# # @return [RDF::Vocabulary::Term]
|
81
|
-
# attr_reader :DerivativeWorks
|
82
|
-
#
|
83
|
-
# # distribution, public display, and publicly performance
|
84
|
-
# # @return [RDF::Vocabulary::Term]
|
85
|
-
# attr_reader :Distribution
|
86
|
-
#
|
87
|
-
# # use in a non-developing country
|
88
|
-
# # @return [RDF::Vocabulary::Term]
|
89
|
-
# attr_reader :HighIncomeNationUse
|
90
|
-
#
|
91
|
-
# # derivative works must be licensed under specified terms, with at least the same conditions as the original work; combinations with the work may be licensed under different terms
|
92
|
-
# # @return [RDF::Vocabulary::Term]
|
93
|
-
# attr_reader :LesserCopyleft
|
94
|
-
#
|
95
|
-
# # copyright and license notices be kept intact
|
96
|
-
# # @return [RDF::Vocabulary::Term]
|
97
|
-
# attr_reader :Notice
|
98
|
-
#
|
99
|
-
# # making multiple copies
|
100
|
-
# # @return [RDF::Vocabulary::Term]
|
101
|
-
# attr_reader :Reproduction
|
102
|
-
#
|
103
|
-
# # derivative works be licensed under the same terms or compatible terms as the original work
|
104
|
-
# # @return [RDF::Vocabulary::Term]
|
105
|
-
# attr_reader :ShareAlike
|
106
|
-
#
|
107
|
-
# # permits commercial derivatives, but only non-commercial distribution
|
108
|
-
# # @return [RDF::Vocabulary::Term]
|
109
|
-
# attr_reader :Sharing
|
110
|
-
#
|
111
|
-
# # source code (the preferred form for making modifications) must be provided when exercising some rights granted by the license.
|
112
|
-
# # @return [RDF::Vocabulary::Term]
|
113
|
-
# attr_reader :SourceCode
|
114
|
-
#
|
115
|
-
# end
|
116
6
|
CC = Class.new(RDF::StrictVocabulary("http://creativecommons.org/ns#")) do
|
117
7
|
|
118
8
|
# Ontology definition
|
119
9
|
ontology :"http://creativecommons.org/ns#",
|
120
|
-
"
|
121
|
-
"
|
10
|
+
"http://www.w3.org/1999/xhtml/vocab#license": "https://creativecommons.org/licenses/by/4.0/".freeze,
|
11
|
+
"http://www.w3.org/1999/xhtml/vocab#stylesheet": "https://creativecommons.org/includes/bootstrap.min.css".freeze
|
122
12
|
|
123
13
|
# Class definitions
|
124
14
|
term :Jurisdiction,
|
125
15
|
comment: "the legal jurisdiction\nof a license".freeze,
|
126
16
|
label: "Jurisdiction".freeze,
|
127
|
-
type: "
|
17
|
+
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
|
128
18
|
term :License,
|
129
19
|
comment: "a set of\nrequests/permissions to users of a Work, e.g. a\ncopyright license, the public domain, information\nfor distributors".freeze,
|
130
20
|
label: "License".freeze,
|
131
|
-
subClassOf: "dc
|
132
|
-
type: "
|
21
|
+
subClassOf: "http://purl.org/dc/terms/LicenseDocument".freeze,
|
22
|
+
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
|
133
23
|
term :Permission,
|
134
24
|
comment: "an action that may or\nmay not be allowed or desired".freeze,
|
135
25
|
label: "Permission".freeze,
|
136
|
-
type: "
|
26
|
+
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
|
137
27
|
term :Prohibition,
|
138
28
|
comment: "something you may be\nasked not to do".freeze,
|
139
29
|
label: "Prohibition".freeze,
|
140
|
-
type: "
|
30
|
+
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
|
141
31
|
term :Requirement,
|
142
32
|
comment: "an action that may or\nmay not be requested of you".freeze,
|
143
33
|
label: "Requirement".freeze,
|
144
|
-
type: "
|
34
|
+
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
|
145
35
|
term :Work,
|
146
36
|
comment: "a potentially\ncopyrightable work".freeze,
|
147
37
|
label: "Work".freeze,
|
148
|
-
type: "
|
38
|
+
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
|
149
39
|
|
150
40
|
# Property definitions
|
151
41
|
property :attributionName,
|
152
|
-
domain: "
|
153
|
-
range: "
|
154
|
-
type: "rdf
|
42
|
+
domain: "http://creativecommons.org/ns#Work".freeze,
|
43
|
+
range: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
|
44
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
155
45
|
property :attributionURL,
|
156
|
-
domain: "
|
157
|
-
range: "
|
158
|
-
type: "rdf
|
46
|
+
domain: "http://creativecommons.org/ns#Work".freeze,
|
47
|
+
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
|
48
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
159
49
|
property :deprecatedOn,
|
160
|
-
domain: "
|
50
|
+
domain: "http://creativecommons.org/ns#License".freeze,
|
161
51
|
label: "deprecated\non".freeze,
|
162
52
|
range: "http://www.w3.org/2001/XMLSchema-datatypes#date".freeze,
|
163
|
-
type: "rdf
|
53
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
164
54
|
property :jurisdiction,
|
165
|
-
domain: "
|
55
|
+
domain: "http://creativecommons.org/ns#License".freeze,
|
166
56
|
label: "jurisdiction".freeze,
|
167
|
-
range: "
|
168
|
-
type: "rdf
|
57
|
+
range: "http://creativecommons.org/ns#Jurisdiction".freeze,
|
58
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
169
59
|
property :legalcode,
|
170
|
-
domain: "
|
171
|
-
range: "
|
172
|
-
type: "rdf
|
60
|
+
domain: "http://creativecommons.org/ns#License".freeze,
|
61
|
+
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
|
62
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
173
63
|
property :license,
|
174
|
-
domain: "
|
64
|
+
domain: "http://creativecommons.org/ns#Work".freeze,
|
65
|
+
"http://www.w3.org/2002/07/owl#sameAs": "http://www.w3.org/1999/xhtml/vocab#license".freeze,
|
175
66
|
label: "has\nlicense".freeze,
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
type: "rdf:Property".freeze
|
67
|
+
range: "http://creativecommons.org/ns#License".freeze,
|
68
|
+
subPropertyOf: "http://purl.org/dc/terms/license".freeze,
|
69
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
180
70
|
property :morePermissions,
|
181
|
-
domain: "
|
182
|
-
range: "
|
183
|
-
subPropertyOf: "dc
|
184
|
-
type: "rdf
|
71
|
+
domain: "http://creativecommons.org/ns#Work".freeze,
|
72
|
+
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
|
73
|
+
subPropertyOf: "http://purl.org/dc/terms/relation".freeze,
|
74
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
185
75
|
property :permits,
|
186
|
-
domain: "
|
76
|
+
domain: "http://creativecommons.org/ns#License".freeze,
|
187
77
|
label: "permits".freeze,
|
188
|
-
range: "
|
189
|
-
type: "rdf
|
78
|
+
range: "http://creativecommons.org/ns#Permission".freeze,
|
79
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
190
80
|
property :prohibits,
|
191
|
-
domain: "
|
81
|
+
domain: "http://creativecommons.org/ns#License".freeze,
|
192
82
|
label: "prohibits".freeze,
|
193
|
-
range: "
|
194
|
-
type: "rdf
|
83
|
+
range: "http://creativecommons.org/ns#Prohibition".freeze,
|
84
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
195
85
|
property :requires,
|
196
|
-
domain: "
|
86
|
+
domain: "http://creativecommons.org/ns#License".freeze,
|
197
87
|
label: "requires".freeze,
|
198
|
-
range: "
|
199
|
-
type: "rdf
|
88
|
+
range: "http://creativecommons.org/ns#Requirement".freeze,
|
89
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
200
90
|
property :useGuidelines,
|
201
|
-
domain: "
|
202
|
-
range: "
|
203
|
-
subPropertyOf: "dc
|
204
|
-
type: "rdf
|
91
|
+
domain: "http://creativecommons.org/ns#Work".freeze,
|
92
|
+
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
|
93
|
+
subPropertyOf: "http://purl.org/dc/terms/relation".freeze,
|
94
|
+
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
|
205
95
|
|
206
96
|
# Extra definitions
|
207
97
|
term :Attribution,
|
208
98
|
comment: "credit be given to\ncopyright holder and/or author".freeze,
|
209
99
|
label: "Attribution".freeze,
|
210
|
-
type: "
|
100
|
+
type: "http://creativecommons.org/ns#Requirement".freeze
|
211
101
|
term :CommercialUse,
|
212
102
|
comment: "exercising rights for\ncommercial purposes".freeze,
|
213
103
|
label: "Commercial Use".freeze,
|
214
|
-
type: "
|
104
|
+
type: "http://creativecommons.org/ns#Prohibition".freeze
|
215
105
|
term :Copyleft,
|
216
106
|
comment: "derivative and\ncombined works must be licensed under specified\nterms, similar to those on the original\nwork".freeze,
|
217
107
|
label: "Copyleft".freeze,
|
218
|
-
type: "
|
108
|
+
type: "http://creativecommons.org/ns#Requirement".freeze
|
219
109
|
term :DerivativeWorks,
|
220
110
|
comment: "distribution of\nderivative works".freeze,
|
221
111
|
label: "Derivative Works".freeze,
|
222
|
-
type: "
|
112
|
+
type: "http://creativecommons.org/ns#Permission".freeze
|
223
113
|
term :Distribution,
|
224
114
|
comment: "distribution, public\ndisplay, and publicly performance".freeze,
|
225
115
|
label: "Distribution".freeze,
|
226
|
-
type: "
|
116
|
+
type: "http://creativecommons.org/ns#Permission".freeze
|
227
117
|
term :HighIncomeNationUse,
|
228
118
|
comment: "use in a\nnon-developing country".freeze,
|
229
119
|
label: "High Income Nation Use".freeze,
|
230
|
-
type: "
|
120
|
+
type: "http://creativecommons.org/ns#Prohibition".freeze
|
231
121
|
term :LesserCopyleft,
|
232
122
|
comment: "derivative works must\nbe licensed under specified terms, with at least\nthe same conditions as the original work;\ncombinations with the work may be licensed under\ndifferent terms".freeze,
|
233
123
|
label: "Lesser Copyleft".freeze,
|
234
|
-
type: "
|
124
|
+
type: "http://creativecommons.org/ns#Requirement".freeze
|
235
125
|
term :Notice,
|
236
126
|
comment: "copyright and license\nnotices be kept intact".freeze,
|
237
127
|
label: "Notice".freeze,
|
238
|
-
type: "
|
128
|
+
type: "http://creativecommons.org/ns#Requirement".freeze
|
239
129
|
term :Reproduction,
|
240
130
|
comment: "making multiple\ncopies".freeze,
|
241
131
|
label: "Reproduction".freeze,
|
242
|
-
type: "
|
132
|
+
type: "http://creativecommons.org/ns#Permission".freeze
|
243
133
|
term :ShareAlike,
|
244
134
|
comment: "derivative works be\nlicensed under the same terms or compatible terms\nas the original work".freeze,
|
245
135
|
label: "Share Alike".freeze,
|
246
|
-
type: "
|
136
|
+
type: "http://creativecommons.org/ns#Requirement".freeze
|
247
137
|
term :Sharing,
|
248
138
|
comment: "permits commercial\nderivatives, but only non-commercial\ndistribution".freeze,
|
249
139
|
label: "Sharing".freeze,
|
250
|
-
type: "
|
140
|
+
type: "http://creativecommons.org/ns#Permission".freeze
|
251
141
|
term :SourceCode,
|
252
142
|
comment: "source code (the\npreferred form for making modifications) must be\nprovided when exercising some rights granted by\nthe license.".freeze,
|
253
143
|
label: "Source Code".freeze,
|
254
|
-
type: "
|
144
|
+
type: "http://creativecommons.org/ns#Requirement".freeze
|
255
145
|
end
|
256
146
|
end
|
data/lib/rdf/vocab/cert.rb
CHANGED
@@ -3,206 +3,135 @@
|
|
3
3
|
# This file generated automatically using rdf vocabulary format from http://www.w3.org/ns/auth/cert#
|
4
4
|
require 'rdf'
|
5
5
|
module RDF::Vocab
|
6
|
-
# @!parse
|
7
|
-
# # Vocabulary for <http://www.w3.org/ns/auth/cert#>
|
8
|
-
# #
|
9
|
-
# # Ontology for Certificates and crypto stuff.
|
10
|
-
# #
|
11
|
-
# # Ontology for Certificates and crypto stuff. This is in development. Some other ontologies to look at: * http://www.w3.org/2000/10/swap/crypto + has cwm builtins: http://www.w3.org/2000/10/swap/doc/Trust - a bit old perhaps. It imports daml+oil - would help to be more completely specified - uses literals as subjects a little liberally, which makes this a bit difficult to work with frameworks that don't permit this * http://xmlns.com/wot/0.1/ - limited very much to PGP (though on can map PGP to X509) - a little coarse grained, mixes up the PGP certificate with the PGP public key * Todo: - add some classes and relations for DSA - should this all be in one file? Or should this be cut up a little? Say one file for the general CERT ontology, and then files for RSA, DSA, PGP, etc... Or perhaps it does not really matter? - expand more on the certification side of things - verify this by security experts - owl2 has some constructs for combined inverse functional properties. This may be useful to use in defining an RSA key which is identified by two numbers. - also create html version of the spec by using this as a template. - should comments such as this be in html?
|
12
|
-
# # @see http://www.w3.org/ns/auth/X509Uml.svg
|
13
|
-
# # @see http://lists.foaf-project.org/mailman/listinfo/foaf-protocols
|
14
|
-
# # @see http://www.w3.org/ns/auth/rsa
|
15
|
-
# class CERT < RDF::StrictVocabulary
|
16
|
-
# # A certificate is a Document that is signed. As explained here http://www.pgpi.org/doc/pgpintro/#p16 'A digital certificate consists of three things: * A public key. * Certificate information. ('Identity' information about the user, such as name, user ID, and so on.) * One or more digital signatures.'
|
17
|
-
# # @return [RDF::Vocabulary::Term]
|
18
|
-
# attr_reader :Certificate
|
19
|
-
#
|
20
|
-
# # the class of keys
|
21
|
-
# # @return [RDF::Vocabulary::Term]
|
22
|
-
# attr_reader :Key
|
23
|
-
#
|
24
|
-
# # the class of PGP Certificates
|
25
|
-
# # @return [RDF::Vocabulary::Term]
|
26
|
-
# attr_reader :PGPCertificate
|
27
|
-
#
|
28
|
-
# # Private Key
|
29
|
-
# # @return [RDF::Vocabulary::Term]
|
30
|
-
# attr_reader :PrivateKey
|
31
|
-
#
|
32
|
-
# # Public Key
|
33
|
-
# # @return [RDF::Vocabulary::Term]
|
34
|
-
# attr_reader :PublicKey
|
35
|
-
#
|
36
|
-
# # The union of the public and private components of an RSAKey. Usually those pieces are not kept together
|
37
|
-
# # @return [RDF::Vocabulary::Term]
|
38
|
-
# attr_reader :RSAKey
|
39
|
-
#
|
40
|
-
# # The RSA public key. Padded message m are encrypted by applying the function modulus(power(m,exponent),modulus)
|
41
|
-
# # @return [RDF::Vocabulary::Term]
|
42
|
-
# attr_reader :RSAPublicKey
|
43
|
-
#
|
44
|
-
# # the class of signtatures
|
45
|
-
# # @return [RDF::Vocabulary::Term]
|
46
|
-
# attr_reader :Signature
|
47
|
-
#
|
48
|
-
# # the class of X509 Certificates
|
49
|
-
# # @return [RDF::Vocabulary::Term]
|
50
|
-
# attr_reader :X509Certificate
|
51
|
-
#
|
52
|
-
# # The exponent used to encrypt the message. Number chosen between 1 and the totient(p*q). Often named 'e' .
|
53
|
-
# # @return [RDF::Vocabulary::Term]
|
54
|
-
# attr_reader :exponent
|
55
|
-
#
|
56
|
-
# # the identity of the public key. This is the entity that knows the private key and so can decrypt messages encrypted with the public key, or encrypt messages that can be decrypted with the public key.
|
57
|
-
# # @return [RDF::Vocabulary::Term]
|
58
|
-
# attr_reader :identity
|
59
|
-
#
|
60
|
-
# # relates an agent to a key - most often the public key.
|
61
|
-
# # @return [RDF::Vocabulary::Term]
|
62
|
-
# attr_reader :key
|
63
|
-
#
|
64
|
-
# # <p>The modulus of an RSA public and private key. Or the modulus of a DSA Key. The modulus is encoded as a hex binary. The binary is the same as the one encoded in the <a href="http://www.w3.org/TR/xmldsig-core/#sec-CryptoBinary">XML DSIG CryptoBinary</a> </p> <blockquote> This specification defines the ds:CryptoBinary simple type for representing arbitrary-length integers (e.g. "bignums") in XML as octet strings. The integer value is first converted to a "big endian" bitstring. The bitstring is then padded with leading zero bits so that the total number of bits == 0 mod 8 (so that there are an integral number of octets). If the bitstring contains entire leading octets that are zero, these are removed (so the high-order octet is always non-zero). </blockquote> <p>The only difference is that the octet string is then encoded using either xsd:base64Binary or xsd:hexBinary. Currently for all usages of this relation, the xsd:hexBinary datatype should be used until the SPARQL working group specifies specifies in its <a href="http://www.w3.org/TR/sparql11-entailment/#DEntRegime">D-Entailment</a> that those two types are equivalent.</p> <p>It would have been better had there been a hexInteger datatype that was standard and supported by all tools.</p>
|
65
|
-
# # @return [RDF::Vocabulary::Term]
|
66
|
-
# attr_reader :modulus
|
67
|
-
#
|
68
|
-
# # The exponent used to decrypt the message calculated as public_exponent*private_exponent = 1 modulo totient(p*q) The private exponent is often named 'd'
|
69
|
-
# # @return [RDF::Vocabulary::Term]
|
70
|
-
# attr_reader :privateExponent
|
71
|
-
#
|
72
|
-
# # <span xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:vs="http://www.w3.org/2003/06/sw-vocab-status/ns#"><p> An encoding of a positive integer (from 0 to infinity) as a hexadecimal string that makes it easy to read and/or fun to present on the web.</p> <p>The purpose of this way of representing hexadecimals is to enable users to copy and paste hexadecimal notations as shown by most browsers, keychains or tools such as opensso, into their rdf representation of choice. There are a wide variety of ways in which such strings can be presented. One finds the following:</p> <pre> e1 dc d5 e1 00 8f 21 5e d5 cc 7c 7e c4 9c ad 86 64 aa dc 29 f2 8d d9 56 7f 31 b6 bd 1b fd b8 ee 51 0d 3c 84 59 a2 45 d2 13 59 2a 14 82 1a 0f 6e d3 d1 4a 2d a9 4c 7e db 90 07 fc f1 8d a3 8e 38 25 21 0a 32 c1 95 31 3c ba 56 cc 17 45 87 e1 eb fd 9f 0f 82 16 67 9f 67 fa 91 e4 0d 55 4e 52 c0 66 64 2f fe 98 8f ae f8 96 21 5e ea 38 9e 5c 4f 27 e2 48 ca ca f2 90 23 ad 99 4b cc 38 32 6d bf </pre> <p> Or the same as the above, with ':' instead of spaces. We can't guarantee that these are the only ways such tools will present hexadecimals, so we are very lax.</p> <p>The letters can be uppercase or lowercase, or mixed. </p> <p>Some strings may start with initial 00's, and can be stripped in this notation as they often are. Doing this could, in complement of 2 notation turn a positive number into a negative one, if the first hexadecimal character happens to be one of the set {'8', '9', 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F'} . As we interpret this string as a hexadecimal number leading 00s are not important (Complement of 2 notation and hexadecimal overlap for positive numbers)</p> <p> In order to make this fun, we allow any unicode characters in the string. A parser should </p> <ol> <li>remove all non hexadecimal characters</li> <li>treat the resulting as a hexadecimal representation of a number</li> </ol> <p> This will allow people to make an ascii - better yet a UTF-8 - picture of their public key when publishing it on the web. </p> <p> Cert hex is also a datatype property because we used to write it out like this </p> <pre> [] a rsa:RSAPublicKey; rsa:public_exponent [ cert:hex "e1 dc d5 ..."] </pre> <p> The above notation is now deprecated. Now we prefer the literal format below.</p> <pre> [] a rsa:RSAPublicKey; rsa:public_exponent "e1 dc d5 ..."^^cert:hex . </pre> </span>
|
73
|
-
# # @return [RDF::Vocabulary::Term]
|
74
|
-
# attr_reader :hex
|
75
|
-
#
|
76
|
-
# end
|
77
6
|
CERT = Class.new(RDF::StrictVocabulary("http://www.w3.org/ns/auth/cert#")) do
|
78
7
|
|
79
8
|
# Ontology definition
|
80
9
|
ontology :"http://www.w3.org/ns/auth/cert#",
|
81
10
|
comment: "\n Ontology for Certificates and crypto stuff.\n This is in development. \n Some other ontologies to look at:\n * http://www.w3.org/2000/10/swap/crypto\n + has cwm builtins: http://www.w3.org/2000/10/swap/doc/Trust\n - a bit old perhaps. It imports daml+oil\n - would help to be more completely specified\n - uses literals as subjects a little liberally, which makes this a \n bit difficult to work with frameworks that don't permit this\n * http://xmlns.com/wot/0.1/\n - limited very much to PGP (though on can map PGP to X509)\n - a little coarse grained, mixes up the PGP certificate with the PGP\n public key\n *\n Todo: \n - add some classes and relations for DSA\n - should this all be in one file? Or should this be cut up a little? Say one file for the general CERT ontology, and then files for RSA, DSA, PGP, etc... Or perhaps it does not really matter?\n - expand more on the certification side of things\n - verify this by security experts\n - owl2 has some constructs for combined inverse functional properties. \n This may be useful to use in defining an RSA key which is identified\n by two numbers.\n - also create html version of the spec by using this as a template.\n - should comments such as this be in html?\n ".freeze,
|
82
|
-
"dc
|
83
|
-
"
|
11
|
+
"http://purl.org/dc/terms/created": "2008-11-13".freeze,
|
12
|
+
"http://www.w3.org/2000/01/rdf-schema#seeAlso": ["http://lists.foaf-project.org/mailman/listinfo/foaf-protocols".freeze, "http://www.w3.org/ns/auth/X509Uml.svg".freeze, "http://www.w3.org/ns/auth/rsa".freeze],
|
13
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
14
|
+
"http://xmlns.com/foaf/0.1/maker": "http://bblfish.net/people/henry/card#me".freeze,
|
84
15
|
label: "Ontology for Certificates and crypto stuff.".freeze,
|
85
|
-
|
86
|
-
type: "owl:Ontology".freeze,
|
87
|
-
"vs:term_status": "unstable".freeze
|
16
|
+
type: "http://www.w3.org/2002/07/owl#Ontology".freeze
|
88
17
|
|
89
18
|
# Class definitions
|
90
19
|
term :Certificate,
|
91
20
|
comment: "A certificate is a Document that is signed.\n As explained here http://www.pgpi.org/doc/pgpintro/#p16\n 'A digital certificate consists of three things:\n * A public key.\n * Certificate information. ('Identity' information about the \n user, such as name, user ID, and so on.)\n * One or more digital signatures.'\n ".freeze,
|
92
|
-
|
21
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
22
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
93
23
|
label: "Certificate".freeze,
|
94
|
-
subClassOf: "foaf
|
95
|
-
type: "owl
|
96
|
-
"vs:term_status": "unstable".freeze
|
24
|
+
subClassOf: "http://xmlns.com/foaf/0.1/Document".freeze,
|
25
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
97
26
|
term :Key,
|
98
27
|
comment: "the class of keys".freeze,
|
99
|
-
|
100
|
-
|
101
|
-
|
28
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
29
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
30
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
102
31
|
term :PGPCertificate,
|
103
32
|
comment: "the class of PGP Certificates".freeze,
|
104
|
-
equivalentClass: "wot
|
105
|
-
|
33
|
+
equivalentClass: "http://xmlns.com/wot/0.1/PubKey".freeze,
|
34
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
35
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
106
36
|
label: "PGPCertificate".freeze,
|
107
|
-
subClassOf: "cert
|
108
|
-
type: "owl
|
109
|
-
"vs:term_status": "unstable".freeze
|
37
|
+
subClassOf: "http://www.w3.org/ns/auth/cert#Certificate".freeze,
|
38
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
110
39
|
term :PrivateKey,
|
111
40
|
comment: "Private Key".freeze,
|
112
|
-
isDefinedBy: "cert
|
41
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
113
42
|
label: "PrivateKey".freeze,
|
114
|
-
subClassOf: "cert
|
115
|
-
type: "owl
|
43
|
+
subClassOf: "http://www.w3.org/ns/auth/cert#Key".freeze,
|
44
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
116
45
|
term :PublicKey,
|
117
46
|
comment: "Public Key".freeze,
|
118
|
-
|
47
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
48
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
119
49
|
label: "PublicKey".freeze,
|
120
|
-
subClassOf: "cert
|
121
|
-
type: "owl
|
122
|
-
"vs:term_status": "unstable".freeze
|
50
|
+
subClassOf: "http://www.w3.org/ns/auth/cert#Key".freeze,
|
51
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
123
52
|
term :RSAKey,
|
124
53
|
comment: "\n The union of the public and private components of an RSAKey.\n Usually those pieces are not kept together\n ".freeze,
|
125
|
-
|
54
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
55
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
126
56
|
label: "RSA Key".freeze,
|
127
|
-
subClassOf: "cert
|
128
|
-
type: "owl
|
129
|
-
"vs:term_status": "unstable".freeze
|
57
|
+
subClassOf: "http://www.w3.org/ns/auth/cert#Key".freeze,
|
58
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
130
59
|
term :RSAPublicKey,
|
131
60
|
comment: "\n The RSA public key. Padded message m are encrypted by applying the function\n modulus(power(m,exponent),modulus)\n ".freeze,
|
132
|
-
|
61
|
+
"http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://en.wikipedia.org/wiki/RSA".freeze,
|
62
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
63
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
133
64
|
label: "RSA Public Key".freeze,
|
134
|
-
|
135
|
-
|
136
|
-
type: "owl:Class".freeze,
|
137
|
-
"vs:term_status": "unstable".freeze
|
65
|
+
subClassOf: ["http://www.w3.org/ns/auth/cert#PublicKey".freeze, "http://www.w3.org/ns/auth/cert#RSAKey".freeze],
|
66
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
138
67
|
term :Signature,
|
139
68
|
comment: "the class of signtatures".freeze,
|
140
|
-
|
69
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
70
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
141
71
|
label: "Signature".freeze,
|
142
|
-
type: "owl
|
143
|
-
"vs:term_status": "unstable".freeze
|
72
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
144
73
|
term :X509Certificate,
|
145
74
|
comment: "the class of X509 Certificates".freeze,
|
146
|
-
|
75
|
+
"http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://en.wikipedia.org/wiki/X509".freeze,
|
76
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
77
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
147
78
|
label: "X509Certificate".freeze,
|
148
|
-
|
149
|
-
|
150
|
-
type: "owl:Class".freeze,
|
151
|
-
"vs:term_status": "unstable".freeze
|
79
|
+
subClassOf: "http://www.w3.org/ns/auth/cert#Certificate".freeze,
|
80
|
+
type: "http://www.w3.org/2002/07/owl#Class".freeze
|
152
81
|
|
153
82
|
# Property definitions
|
154
83
|
property :exponent,
|
155
84
|
comment: "\n The exponent used to encrypt the message. Number chosen between\n 1 and the totient(p*q). Often named 'e' .\n ".freeze,
|
156
|
-
domain: "cert
|
157
|
-
|
85
|
+
domain: "http://www.w3.org/ns/auth/cert#RSAPublicKey".freeze,
|
86
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
87
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
158
88
|
label: "exponent".freeze,
|
159
|
-
range: "
|
160
|
-
type: "owl
|
161
|
-
"vs:term_status": "unstable".freeze
|
89
|
+
range: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger".freeze,
|
90
|
+
type: "http://www.w3.org/2002/07/owl#DatatypeProperty".freeze
|
162
91
|
property :identity,
|
163
92
|
comment: "\n the identity of the public key. This is the entity that knows the private key and \n so can decrypt messages encrypted with the public key, or encrypt messages that can \n be decrypted with the public key. \n ".freeze,
|
164
|
-
domain: "cert
|
93
|
+
domain: "http://www.w3.org/ns/auth/cert#PublicKey".freeze,
|
165
94
|
editorialNote: "\n It turns out that this relation is unintuitive to write out and to name.\n One should instead use cert:key\n ".freeze,
|
166
|
-
|
167
|
-
|
95
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "archaic".freeze,
|
96
|
+
inverseOf: "http://www.w3.org/ns/auth/cert#key".freeze,
|
97
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
168
98
|
label: "identity".freeze,
|
169
|
-
type: ["
|
170
|
-
"vs:term_status": "archaic".freeze
|
99
|
+
type: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze, "http://www.w3.org/2002/07/owl#ObjectProperty".freeze]
|
171
100
|
property :key,
|
172
101
|
comment: "relates an agent to a key - most often the public key.".freeze,
|
173
|
-
domain: "foaf
|
174
|
-
|
175
|
-
|
102
|
+
domain: "http://xmlns.com/foaf/0.1/Agent".freeze,
|
103
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
104
|
+
inverseOf: "http://www.w3.org/ns/auth/cert#identity".freeze,
|
105
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
176
106
|
label: "key".freeze,
|
177
|
-
range: ["cert
|
178
|
-
type: ["
|
179
|
-
"vs:term_status": "unstable".freeze
|
107
|
+
range: ["http://www.w3.org/ns/auth/cert#Key".freeze, "http://www.w3.org/ns/auth/cert#PublicKey".freeze],
|
108
|
+
type: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze, "http://www.w3.org/2002/07/owl#InverseFunctionalProperty".freeze, "http://www.w3.org/2002/07/owl#ObjectProperty".freeze]
|
180
109
|
property :modulus,
|
181
110
|
comment: " \n <p>The modulus of an RSA public and private key. \n Or the modulus of a DSA Key.\n The modulus is encoded as a hex binary. The binary is the same as the one encoded in the \n <a href=\"http://www.w3.org/TR/xmldsig-core/#sec-CryptoBinary\">XML DSIG CryptoBinary</a>\n </p>\n <blockquote>\n This specification defines the ds:CryptoBinary simple type for representing arbitrary-length integers (e.g. \"bignums\") in XML as octet strings. The integer value is first converted to a \"big endian\" bitstring. The bitstring is then padded with leading zero bits so that the total number of bits == 0 mod 8 (so that there are an integral number of octets). If the bitstring contains entire leading octets that are zero, these are removed (so the high-order octet is always non-zero).\n </blockquote>\n <p>The only difference is that the octet string is then encoded using either xsd:base64Binary or xsd:hexBinary. Currently for all usages of this relation, the xsd:hexBinary datatype should be used until the SPARQL working group specifies specifies in its <a href=\"http://www.w3.org/TR/sparql11-entailment/#DEntRegime\">D-Entailment</a> that those two types are equivalent.</p>\n <p>It would have been better had there been a hexInteger datatype that was standard and supported by all tools.</p>\n ".freeze,
|
182
|
-
domain: "cert
|
183
|
-
|
111
|
+
domain: "http://www.w3.org/ns/auth/cert#RSAKey".freeze,
|
112
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
113
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
184
114
|
label: "modulus".freeze,
|
185
|
-
range: ["
|
186
|
-
type: "owl
|
187
|
-
"vs:term_status": "unstable".freeze
|
115
|
+
range: ["http://www.w3.org/2001/XMLSchema#base64Binary".freeze, "http://www.w3.org/2001/XMLSchema#hexBinary".freeze],
|
116
|
+
type: "http://www.w3.org/2002/07/owl#DatatypeProperty".freeze
|
188
117
|
property :privateExponent,
|
189
118
|
comment: "\n The exponent used to decrypt the message\n calculated as \n public_exponent*private_exponent = 1 modulo totient(p*q)\n The private exponent is often named 'd'\n ".freeze,
|
190
|
-
domain: "cert
|
191
|
-
|
119
|
+
domain: "http://www.w3.org/ns/auth/cert#PrivateKey".freeze,
|
120
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable".freeze,
|
121
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
192
122
|
label: "private".freeze,
|
193
|
-
range: "
|
194
|
-
type: "owl
|
195
|
-
"vs:term_status": "unstable".freeze
|
123
|
+
range: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger".freeze,
|
124
|
+
type: "http://www.w3.org/2002/07/owl#DatatypeProperty".freeze
|
196
125
|
|
197
126
|
# Datatype definitions
|
198
127
|
term :hex,
|
199
128
|
comment: "<span xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:dc=\"http://purl.org/dc/terms/\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:skos=\"http://www.w3.org/2004/02/skos/core#\" xmlns:vs=\"http://www.w3.org/2003/06/sw-vocab-status/ns#\"><p>\n An encoding of a positive integer (from 0 to infinity) as a hexadecimal string that makes it easy to read and/or fun to present on the web.</p>\n <p>The purpose of this way of representing hexadecimals is to enable users to copy and paste hexadecimal notations as shown by most browsers, keychains or tools such as opensso, into their rdf representation of choice. There are a wide variety of ways in which such strings can be presented. One finds the following:</p>\n<pre>\n e1 dc d5 e1 00 8f 21 5e d5 cc 7c 7e c4 9c ad 86 \n 64 aa dc 29 f2 8d d9 56 7f 31 b6 bd 1b fd b8 ee \n 51 0d 3c 84 59 a2 45 d2 13 59 2a 14 82 1a 0f 6e \n d3 d1 4a 2d a9 4c 7e db 90 07 fc f1 8d a3 8e 38 \n 25 21 0a 32 c1 95 31 3c ba 56 cc 17 45 87 e1 eb \n fd 9f 0f 82 16 67 9f 67 fa 91 e4 0d 55 4e 52 c0 \n 66 64 2f fe 98 8f ae f8 96 21 5e ea 38 9e 5c 4f \n 27 e2 48 ca ca f2 90 23 ad 99 4b cc 38 32 6d bf \n</pre>\n<p>\n Or the same as the above, with ':' instead of spaces. We can't guarantee that these are the only ways such tools will present hexadecimals, so we are very lax.</p>\n <p>The letters can be uppercase or lowercase, or mixed. </p>\n <p>Some strings may start with initial 00's, and can be stripped in this notation as they often are. Doing this could, in complement of 2 notation turn a positive number into a negative one, if the first hexadecimal character happens to be one of the set {'8', '9', 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F'} . As we interpret this string as a hexadecimal number leading 00s are not important (Complement of 2 notation and hexadecimal overlap for positive numbers)</p>\n<p> In order to make this fun, we allow any unicode characters in the string. A parser should </p>\n <ol>\n<li>remove all non hexadecimal characters</li>\n<li>treat the resulting as a hexadecimal representation of a number</li>\n</ol>\n<p>\n This will allow people to make an ascii - better yet a UTF-8 - picture of their public key when publishing it on the web.\n</p>\n<p>\n Cert hex is also a datatype property because we used to write it out like this\n</p>\n <pre>\n [] a rsa:RSAPublicKey;\n rsa:public_exponent [ cert:hex \"e1 dc d5 ...\"] \n </pre> \n<p> The above notation is now deprecated. Now we prefer the literal format below.</p>\n <pre>\n [] a rsa:RSAPublicKey;\n rsa:public_exponent \"e1 dc d5 ...\"^^cert:hex .\n </pre> \n </span>\n ".freeze,
|
200
129
|
editorialNote: "<span xmlns=\"http://www.w3.org/1999/xhtml\"><p> \n This relation should slowly be transited to just being a datatype.</p>\n <p>Being a datatype and a property is legal as explained here\n <a href=\"http://lists.w3.org/Archives/Public/semantic-web/2010Mar/0037.html\">on the semantic web mailing list in March 2010</a>. \n But it may be somewhat confusing, especially if it goes against a pattern - still to be set - by the xsd datatypes as the follow up email makes clear. </p></span>\n ".freeze,
|
201
|
-
equivalentClass: "
|
202
|
-
|
130
|
+
equivalentClass: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger".freeze,
|
131
|
+
"http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://en.wikipedia.org/wiki/Hexadecimal".freeze,
|
132
|
+
"http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "archaic".freeze,
|
133
|
+
isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
|
203
134
|
label: "hexadecimal".freeze,
|
204
|
-
|
205
|
-
type: "rdfs:Datatype".freeze,
|
206
|
-
"vs:term_status": "archaic".freeze
|
135
|
+
type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
|
207
136
|
end
|
208
137
|
end
|