rdf-vocab 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -4
  3. data/VERSION +1 -1
  4. data/lib/rdf/vocab/acl.rb +91 -89
  5. data/lib/rdf/vocab/as.rb +624 -622
  6. data/lib/rdf/vocab/bf2.rb +2241 -2239
  7. data/lib/rdf/vocab/bibframe.rb +2241 -2239
  8. data/lib/rdf/vocab/bibo.rb +943 -941
  9. data/lib/rdf/vocab/cc.rb +102 -100
  10. data/lib/rdf/vocab/cert.rb +107 -105
  11. data/lib/rdf/vocab/cnt.rb +92 -90
  12. data/lib/rdf/vocab/crm.rb +1793 -1791
  13. data/lib/rdf/vocab/datacite.rb +261 -263
  14. data/lib/rdf/vocab/dbo.rb +4307 -4305
  15. data/lib/rdf/vocab/dc.rb +665 -663
  16. data/lib/rdf/vocab/dc11.rb +109 -107
  17. data/lib/rdf/vocab/dcat.rb +373 -356
  18. data/lib/rdf/vocab/dcmitype.rb +91 -89
  19. data/lib/rdf/vocab/disco.rb +348 -346
  20. data/lib/rdf/vocab/doap.rb +304 -302
  21. data/lib/rdf/vocab/dwc.rb +2244 -2242
  22. data/lib/rdf/vocab/earl.rb +146 -144
  23. data/lib/rdf/vocab/ebucore.rb +4945 -4941
  24. data/lib/rdf/vocab/edm.rb +310 -308
  25. data/lib/rdf/vocab/exif.rb +777 -775
  26. data/lib/rdf/vocab/extensions.rb +2 -2
  27. data/lib/rdf/vocab/fcrepo4.rb +307 -305
  28. data/lib/rdf/vocab/foaf.rb +525 -523
  29. data/lib/rdf/vocab/geo.rb +34 -32
  30. data/lib/rdf/vocab/geojson.rb +66 -64
  31. data/lib/rdf/vocab/geonames.rb +3656 -3654
  32. data/lib/rdf/vocab/gr.rb +1204 -1202
  33. data/lib/rdf/vocab/gs1.rb +5881 -5879
  34. data/lib/rdf/vocab/ht.rb +194 -192
  35. data/lib/rdf/vocab/hydra.rb +439 -437
  36. data/lib/rdf/vocab/iana.rb +215 -213
  37. data/lib/rdf/vocab/ical.rb +726 -724
  38. data/lib/rdf/vocab/identifiers.rb +219 -217
  39. data/lib/rdf/vocab/iiif.rb +132 -130
  40. data/lib/rdf/vocab/jsonld.rb +205 -203
  41. data/lib/rdf/vocab/ldp.rb +193 -191
  42. data/lib/rdf/vocab/lrmi.rb +188 -186
  43. data/lib/rdf/vocab/ma.rb +318 -316
  44. data/lib/rdf/vocab/mads.rb +670 -668
  45. data/lib/rdf/vocab/marcrelators.rb +543 -541
  46. data/lib/rdf/vocab/mo.rb +1823 -1821
  47. data/lib/rdf/vocab/mods.rb +636 -634
  48. data/lib/rdf/vocab/nfo.rb +482 -480
  49. data/lib/rdf/vocab/oa.rb +333 -331
  50. data/lib/rdf/vocab/og.rb +198 -196
  51. data/lib/rdf/vocab/ogc.rb +43 -41
  52. data/lib/rdf/vocab/ore.rb +79 -77
  53. data/lib/rdf/vocab/org.rb +322 -320
  54. data/lib/rdf/vocab/pcdm.rb +73 -71
  55. data/lib/rdf/vocab/pplan.rb +97 -95
  56. data/lib/rdf/vocab/premis.rb +903 -901
  57. data/lib/rdf/vocab/premiseventtype.rb +143 -141
  58. data/lib/rdf/vocab/prov.rb +1360 -1358
  59. data/lib/rdf/vocab/ptr.rb +147 -145
  60. data/lib/rdf/vocab/rdau.rb +9447 -9438
  61. data/lib/rdf/vocab/rightsstatements.rb +123 -121
  62. data/lib/rdf/vocab/rsa.rb +44 -42
  63. data/lib/rdf/vocab/rss.rb +46 -44
  64. data/lib/rdf/vocab/schema.rb +14700 -14698
  65. data/lib/rdf/vocab/schemas.rb +14700 -14698
  66. data/lib/rdf/vocab/sd.rb +165 -163
  67. data/lib/rdf/vocab/sh.rb +1096 -1094
  68. data/lib/rdf/vocab/sioc.rb +615 -613
  69. data/lib/rdf/vocab/siocservices.rb +49 -47
  70. data/lib/rdf/vocab/sioctypes.rb +224 -222
  71. data/lib/rdf/vocab/skos.rb +202 -200
  72. data/lib/rdf/vocab/skosxl.rb +51 -49
  73. data/lib/rdf/vocab/v.rb +233 -231
  74. data/lib/rdf/vocab/vcard.rb +776 -774
  75. data/lib/rdf/vocab/vmd.rb +233 -231
  76. data/lib/rdf/vocab/void.rb +145 -143
  77. data/lib/rdf/vocab/vs.rb +27 -25
  78. data/lib/rdf/vocab/wdrs.rb +112 -110
  79. data/lib/rdf/vocab/wot.rb +135 -133
  80. data/lib/rdf/vocab/xhtml.rb +4 -2
  81. data/lib/rdf/vocab/xhv.rb +208 -206
  82. data/lib/rdf/vocab/xkos.rb +220 -218
  83. data/lib/rdf/vocab.rb +2 -0
  84. metadata +14 -3
data/lib/rdf/vocab/cc.rb CHANGED
@@ -3,144 +3,146 @@
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
+ # Vocabulary for <http://creativecommons.org/ns#>
7
+ # @!visibility private
6
8
  CC = Class.new(RDF::StrictVocabulary("http://creativecommons.org/ns#")) do
7
9
 
8
10
  # Ontology definition
9
11
  ontology :"http://creativecommons.org/ns#",
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
12
+ "http://www.w3.org/1999/xhtml/vocab#license": "https://creativecommons.org/licenses/by/4.0/",
13
+ "http://www.w3.org/1999/xhtml/vocab#stylesheet": "https://creativecommons.org/includes/bootstrap.min.css"
12
14
 
13
15
  # Class definitions
14
16
  term :Jurisdiction,
15
- comment: "the legal jurisdiction\nof a license".freeze,
16
- label: "Jurisdiction".freeze,
17
- type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
17
+ comment: {"en-us": "the legal jurisdiction\nof a license"},
18
+ label: {"en-us": "Jurisdiction"},
19
+ type: "http://www.w3.org/2000/01/rdf-schema#Class"
18
20
  term :License,
19
- comment: "a set of\nrequests/permissions to users of a Work, e.g. a\ncopyright license, the public domain, information\nfor distributors".freeze,
20
- label: "License".freeze,
21
- subClassOf: "http://purl.org/dc/terms/LicenseDocument".freeze,
22
- type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
21
+ comment: {"en-us": "a set of\nrequests/permissions to users of a Work, e.g. a\ncopyright license, the public domain, information\nfor distributors"},
22
+ label: {"en-us": "License"},
23
+ subClassOf: "http://purl.org/dc/terms/LicenseDocument",
24
+ type: "http://www.w3.org/2000/01/rdf-schema#Class"
23
25
  term :Permission,
24
- comment: "an action that may or\nmay not be allowed or desired".freeze,
25
- label: "Permission".freeze,
26
- type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
26
+ comment: {"en-us": "an action that may or\nmay not be allowed or desired"},
27
+ label: {"en-us": "Permission"},
28
+ type: "http://www.w3.org/2000/01/rdf-schema#Class"
27
29
  term :Prohibition,
28
- comment: "something you may be\nasked not to do".freeze,
29
- label: "Prohibition".freeze,
30
- type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
30
+ comment: {"en-us": "something you may be\nasked not to do"},
31
+ label: {"en-us": "Prohibition"},
32
+ type: "http://www.w3.org/2000/01/rdf-schema#Class"
31
33
  term :Requirement,
32
- comment: "an action that may or\nmay not be requested of you".freeze,
33
- label: "Requirement".freeze,
34
- type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
34
+ comment: {"en-us": "an action that may or\nmay not be requested of you"},
35
+ label: {"en-us": "Requirement"},
36
+ type: "http://www.w3.org/2000/01/rdf-schema#Class"
35
37
  term :Work,
36
- comment: "a potentially\ncopyrightable work".freeze,
37
- label: "Work".freeze,
38
- type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
38
+ comment: {"en-us": "a potentially\ncopyrightable work"},
39
+ label: {"en-us": "Work"},
40
+ type: "http://www.w3.org/2000/01/rdf-schema#Class"
39
41
 
40
42
  # Property definitions
41
43
  property :attributionName,
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
44
+ domain: "http://creativecommons.org/ns#Work",
45
+ range: "http://www.w3.org/2000/01/rdf-schema#Literal",
46
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
45
47
  property :attributionURL,
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
48
+ domain: "http://creativecommons.org/ns#Work",
49
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource",
50
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
49
51
  property :deprecatedOn,
50
- domain: "http://creativecommons.org/ns#License".freeze,
51
- label: "deprecated\non".freeze,
52
- range: "http://www.w3.org/2001/XMLSchema-datatypes#date".freeze,
53
- type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
52
+ domain: "http://creativecommons.org/ns#License",
53
+ label: {"en-us": "deprecated\non"},
54
+ range: "http://www.w3.org/2001/XMLSchema-datatypes#date",
55
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
54
56
  property :jurisdiction,
55
- domain: "http://creativecommons.org/ns#License".freeze,
56
- label: "jurisdiction".freeze,
57
- range: "http://creativecommons.org/ns#Jurisdiction".freeze,
58
- type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
57
+ domain: "http://creativecommons.org/ns#License",
58
+ label: {"en-us": "jurisdiction"},
59
+ range: "http://creativecommons.org/ns#Jurisdiction",
60
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
59
61
  property :legalcode,
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
62
+ domain: "http://creativecommons.org/ns#License",
63
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource",
64
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
63
65
  property :license,
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,
66
- label: "has\nlicense".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
66
+ domain: "http://creativecommons.org/ns#Work",
67
+ "http://www.w3.org/2002/07/owl#sameAs": "http://www.w3.org/1999/xhtml/vocab#license",
68
+ label: {"en-us": "has\nlicense"},
69
+ range: "http://creativecommons.org/ns#License",
70
+ subPropertyOf: "http://purl.org/dc/terms/license",
71
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
70
72
  property :morePermissions,
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
73
+ domain: "http://creativecommons.org/ns#Work",
74
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource",
75
+ subPropertyOf: "http://purl.org/dc/terms/relation",
76
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
75
77
  property :permits,
76
- domain: "http://creativecommons.org/ns#License".freeze,
77
- label: "permits".freeze,
78
- range: "http://creativecommons.org/ns#Permission".freeze,
79
- type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
78
+ domain: "http://creativecommons.org/ns#License",
79
+ label: {"en-us": "permits"},
80
+ range: "http://creativecommons.org/ns#Permission",
81
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
80
82
  property :prohibits,
81
- domain: "http://creativecommons.org/ns#License".freeze,
82
- label: "prohibits".freeze,
83
- range: "http://creativecommons.org/ns#Prohibition".freeze,
84
- type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
83
+ domain: "http://creativecommons.org/ns#License",
84
+ label: {"en-us": "prohibits"},
85
+ range: "http://creativecommons.org/ns#Prohibition",
86
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
85
87
  property :requires,
86
- domain: "http://creativecommons.org/ns#License".freeze,
87
- label: "requires".freeze,
88
- range: "http://creativecommons.org/ns#Requirement".freeze,
89
- type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
88
+ domain: "http://creativecommons.org/ns#License",
89
+ label: {"en-us": "requires"},
90
+ range: "http://creativecommons.org/ns#Requirement",
91
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
90
92
  property :useGuidelines,
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
93
+ domain: "http://creativecommons.org/ns#Work",
94
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource",
95
+ subPropertyOf: "http://purl.org/dc/terms/relation",
96
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
95
97
 
96
98
  # Extra definitions
97
99
  term :Attribution,
98
- comment: "credit be given to\ncopyright holder and/or author".freeze,
99
- label: "Attribution".freeze,
100
- type: "http://creativecommons.org/ns#Requirement".freeze
100
+ comment: {"en-us": "credit be given to\ncopyright holder and/or author"},
101
+ label: {"en-us": "Attribution"},
102
+ type: "http://creativecommons.org/ns#Requirement"
101
103
  term :CommercialUse,
102
- comment: "exercising rights for\ncommercial purposes".freeze,
103
- label: "Commercial Use".freeze,
104
- type: "http://creativecommons.org/ns#Prohibition".freeze
104
+ comment: {"en-us": "exercising rights for\ncommercial purposes"},
105
+ label: {"en-us": "Commercial Use"},
106
+ type: "http://creativecommons.org/ns#Prohibition"
105
107
  term :Copyleft,
106
- comment: "derivative and\ncombined works must be licensed under specified\nterms, similar to those on the original\nwork".freeze,
107
- label: "Copyleft".freeze,
108
- type: "http://creativecommons.org/ns#Requirement".freeze
108
+ comment: {"en-us": "derivative and\ncombined works must be licensed under specified\nterms, similar to those on the original\nwork"},
109
+ label: {"en-us": "Copyleft"},
110
+ type: "http://creativecommons.org/ns#Requirement"
109
111
  term :DerivativeWorks,
110
- comment: "distribution of\nderivative works".freeze,
111
- label: "Derivative Works".freeze,
112
- type: "http://creativecommons.org/ns#Permission".freeze
112
+ comment: {"en-us": "distribution of\nderivative works"},
113
+ label: {"en-us": "Derivative Works"},
114
+ type: "http://creativecommons.org/ns#Permission"
113
115
  term :Distribution,
114
- comment: "distribution, public\ndisplay, and publicly performance".freeze,
115
- label: "Distribution".freeze,
116
- type: "http://creativecommons.org/ns#Permission".freeze
116
+ comment: {"en-us": "distribution, public\ndisplay, and publicly performance"},
117
+ label: {"en-us": "Distribution"},
118
+ type: "http://creativecommons.org/ns#Permission"
117
119
  term :HighIncomeNationUse,
118
- comment: "use in a\nnon-developing country".freeze,
119
- label: "High Income Nation Use".freeze,
120
- type: "http://creativecommons.org/ns#Prohibition".freeze
120
+ comment: {"en-us": "use in a\nnon-developing country"},
121
+ label: {"en-us": "High Income Nation Use"},
122
+ type: "http://creativecommons.org/ns#Prohibition"
121
123
  term :LesserCopyleft,
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,
123
- label: "Lesser Copyleft".freeze,
124
- type: "http://creativecommons.org/ns#Requirement".freeze
124
+ comment: {"en-us": "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"},
125
+ label: {"en-us": "Lesser Copyleft"},
126
+ type: "http://creativecommons.org/ns#Requirement"
125
127
  term :Notice,
126
- comment: "copyright and license\nnotices be kept intact".freeze,
127
- label: "Notice".freeze,
128
- type: "http://creativecommons.org/ns#Requirement".freeze
128
+ comment: {"en-us": "copyright and license\nnotices be kept intact"},
129
+ label: {"en-us": "Notice"},
130
+ type: "http://creativecommons.org/ns#Requirement"
129
131
  term :Reproduction,
130
- comment: "making multiple\ncopies".freeze,
131
- label: "Reproduction".freeze,
132
- type: "http://creativecommons.org/ns#Permission".freeze
132
+ comment: {"en-us": "making multiple\ncopies"},
133
+ label: {"en-us": "Reproduction"},
134
+ type: "http://creativecommons.org/ns#Permission"
133
135
  term :ShareAlike,
134
- comment: "derivative works be\nlicensed under the same terms or compatible terms\nas the original work".freeze,
135
- label: "Share Alike".freeze,
136
- type: "http://creativecommons.org/ns#Requirement".freeze
136
+ comment: {"en-us": "derivative works be\nlicensed under the same terms or compatible terms\nas the original work"},
137
+ label: {"en-us": "Share Alike"},
138
+ type: "http://creativecommons.org/ns#Requirement"
137
139
  term :Sharing,
138
- comment: "permits commercial\nderivatives, but only non-commercial\ndistribution".freeze,
139
- label: "Sharing".freeze,
140
- type: "http://creativecommons.org/ns#Permission".freeze
140
+ comment: {"en-us": "permits commercial\nderivatives, but only non-commercial\ndistribution"},
141
+ label: {"en-us": "Sharing"},
142
+ type: "http://creativecommons.org/ns#Permission"
141
143
  term :SourceCode,
142
- comment: "source code (the\npreferred form for making modifications) must be\nprovided when exercising some rights granted by\nthe license.".freeze,
143
- label: "Source Code".freeze,
144
- type: "http://creativecommons.org/ns#Requirement".freeze
144
+ comment: {"en-us": "source code (the\npreferred form for making modifications) must be\nprovided when exercising some rights granted by\nthe license."},
145
+ label: {"en-us": "Source Code"},
146
+ type: "http://creativecommons.org/ns#Requirement"
145
147
  end
146
148
  end
@@ -3,135 +3,137 @@
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
+ # Vocabulary for <http://www.w3.org/ns/auth/cert#>
7
+ # @!visibility private
6
8
  CERT = Class.new(RDF::StrictVocabulary("http://www.w3.org/ns/auth/cert#")) do
7
9
 
8
10
  # Ontology definition
9
11
  ontology :"http://www.w3.org/ns/auth/cert#",
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,
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,
15
- label: "Ontology for Certificates and crypto stuff.".freeze,
16
- type: "http://www.w3.org/2002/07/owl#Ontology".freeze
12
+ comment: {en: "\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 "},
13
+ "http://purl.org/dc/terms/created": "2008-11-13",
14
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": ["http://lists.foaf-project.org/mailman/listinfo/foaf-protocols", "http://www.w3.org/ns/auth/X509Uml.svg", "http://www.w3.org/ns/auth/rsa"],
15
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
16
+ "http://xmlns.com/foaf/0.1/maker": "http://bblfish.net/people/henry/card#me",
17
+ label: "Ontology for Certificates and crypto stuff.",
18
+ type: "http://www.w3.org/2002/07/owl#Ontology"
17
19
 
18
20
  # Class definitions
19
21
  term :Certificate,
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,
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,
23
- label: "Certificate".freeze,
24
- subClassOf: "http://xmlns.com/foaf/0.1/Document".freeze,
25
- type: "http://www.w3.org/2002/07/owl#Class".freeze
22
+ comment: {en: "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 "},
23
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
24
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
25
+ label: {en: "Certificate"},
26
+ subClassOf: "http://xmlns.com/foaf/0.1/Document",
27
+ type: "http://www.w3.org/2002/07/owl#Class"
26
28
  term :Key,
27
- comment: "the class of keys".freeze,
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
29
+ comment: {en: "the class of keys"},
30
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
31
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
32
+ type: "http://www.w3.org/2002/07/owl#Class"
31
33
  term :PGPCertificate,
32
- comment: "the class of PGP Certificates".freeze,
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,
36
- label: "PGPCertificate".freeze,
37
- subClassOf: "http://www.w3.org/ns/auth/cert#Certificate".freeze,
38
- type: "http://www.w3.org/2002/07/owl#Class".freeze
34
+ comment: {en: "the class of PGP Certificates"},
35
+ equivalentClass: "http://xmlns.com/wot/0.1/PubKey",
36
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
37
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
38
+ label: "PGPCertificate",
39
+ subClassOf: "http://www.w3.org/ns/auth/cert#Certificate",
40
+ type: "http://www.w3.org/2002/07/owl#Class"
39
41
  term :PrivateKey,
40
- comment: "Private Key".freeze,
41
- isDefinedBy: "http://www.w3.org/ns/auth/cert#".freeze,
42
- label: "PrivateKey".freeze,
43
- subClassOf: "http://www.w3.org/ns/auth/cert#Key".freeze,
44
- type: "http://www.w3.org/2002/07/owl#Class".freeze
42
+ comment: {en: "Private Key"},
43
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
44
+ label: "PrivateKey",
45
+ subClassOf: "http://www.w3.org/ns/auth/cert#Key",
46
+ type: "http://www.w3.org/2002/07/owl#Class"
45
47
  term :PublicKey,
46
- comment: "Public Key".freeze,
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,
49
- label: "PublicKey".freeze,
50
- subClassOf: "http://www.w3.org/ns/auth/cert#Key".freeze,
51
- type: "http://www.w3.org/2002/07/owl#Class".freeze
48
+ comment: "Public Key",
49
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
50
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
51
+ label: "PublicKey",
52
+ subClassOf: "http://www.w3.org/ns/auth/cert#Key",
53
+ type: "http://www.w3.org/2002/07/owl#Class"
52
54
  term :RSAKey,
53
- comment: "\n The union of the public and private components of an RSAKey.\n Usually those pieces are not kept together\n ".freeze,
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,
56
- label: "RSA Key".freeze,
57
- subClassOf: "http://www.w3.org/ns/auth/cert#Key".freeze,
58
- type: "http://www.w3.org/2002/07/owl#Class".freeze
55
+ comment: {en: "\n The union of the public and private components of an RSAKey.\n Usually those pieces are not kept together\n "},
56
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
57
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
58
+ label: {en: "RSA Key"},
59
+ subClassOf: "http://www.w3.org/ns/auth/cert#Key",
60
+ type: "http://www.w3.org/2002/07/owl#Class"
59
61
  term :RSAPublicKey,
60
- comment: "\n The RSA public key. Padded message m are encrypted by applying the function\n modulus(power(m,exponent),modulus)\n ".freeze,
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,
64
- label: "RSA Public Key".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
62
+ comment: {en: "\n The RSA public key. Padded message m are encrypted by applying the function\n modulus(power(m,exponent),modulus)\n "},
63
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://en.wikipedia.org/wiki/RSA",
64
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
65
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
66
+ label: {en: "RSA Public Key"},
67
+ subClassOf: ["http://www.w3.org/ns/auth/cert#PublicKey", "http://www.w3.org/ns/auth/cert#RSAKey"],
68
+ type: "http://www.w3.org/2002/07/owl#Class"
67
69
  term :Signature,
68
- comment: "the class of signtatures".freeze,
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,
71
- label: "Signature".freeze,
72
- type: "http://www.w3.org/2002/07/owl#Class".freeze
70
+ comment: {en: "the class of signtatures"},
71
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
72
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
73
+ label: "Signature",
74
+ type: "http://www.w3.org/2002/07/owl#Class"
73
75
  term :X509Certificate,
74
- comment: "the class of X509 Certificates".freeze,
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,
78
- label: "X509Certificate".freeze,
79
- subClassOf: "http://www.w3.org/ns/auth/cert#Certificate".freeze,
80
- type: "http://www.w3.org/2002/07/owl#Class".freeze
76
+ comment: {en: "the class of X509 Certificates"},
77
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://en.wikipedia.org/wiki/X509",
78
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
79
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
80
+ label: "X509Certificate",
81
+ subClassOf: "http://www.w3.org/ns/auth/cert#Certificate",
82
+ type: "http://www.w3.org/2002/07/owl#Class"
81
83
 
82
84
  # Property definitions
83
85
  property :exponent,
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,
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,
88
- label: "exponent".freeze,
89
- range: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger".freeze,
90
- type: "http://www.w3.org/2002/07/owl#DatatypeProperty".freeze
86
+ comment: {en: "\n The exponent used to encrypt the message. Number chosen between\n 1 and the totient(p*q). Often named 'e' .\n "},
87
+ domain: "http://www.w3.org/ns/auth/cert#RSAPublicKey",
88
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
89
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
90
+ label: {en: "exponent"},
91
+ range: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
92
+ type: "http://www.w3.org/2002/07/owl#DatatypeProperty"
91
93
  property :identity,
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,
93
- domain: "http://www.w3.org/ns/auth/cert#PublicKey".freeze,
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,
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,
98
- label: "identity".freeze,
99
- type: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze, "http://www.w3.org/2002/07/owl#ObjectProperty".freeze]
94
+ comment: {en: "\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 "},
95
+ domain: "http://www.w3.org/ns/auth/cert#PublicKey",
96
+ editorialNote: {en: "\n It turns out that this relation is unintuitive to write out and to name.\n One should instead use cert:key\n "},
97
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "archaic",
98
+ inverseOf: "http://www.w3.org/ns/auth/cert#key",
99
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
100
+ label: {en: "identity"},
101
+ type: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#Property", "http://www.w3.org/2002/07/owl#ObjectProperty"]
100
102
  property :key,
101
- comment: "relates an agent to a key - most often the public key.".freeze,
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,
106
- label: "key".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]
103
+ comment: {en: "relates an agent to a key - most often the public key."},
104
+ domain: "http://xmlns.com/foaf/0.1/Agent",
105
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
106
+ inverseOf: "http://www.w3.org/ns/auth/cert#identity",
107
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
108
+ label: {en: "key"},
109
+ range: ["http://www.w3.org/ns/auth/cert#Key", "http://www.w3.org/ns/auth/cert#PublicKey"],
110
+ type: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#Property", "http://www.w3.org/2002/07/owl#InverseFunctionalProperty", "http://www.w3.org/2002/07/owl#ObjectProperty"]
109
111
  property :modulus,
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,
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,
114
- label: "modulus".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
112
+ comment: {en: " \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 "},
113
+ domain: "http://www.w3.org/ns/auth/cert#RSAKey",
114
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
115
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
116
+ label: {en: "modulus"},
117
+ range: ["http://www.w3.org/2001/XMLSchema#base64Binary", "http://www.w3.org/2001/XMLSchema#hexBinary"],
118
+ type: "http://www.w3.org/2002/07/owl#DatatypeProperty"
117
119
  property :privateExponent,
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,
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,
122
- label: "private".freeze,
123
- range: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger".freeze,
124
- type: "http://www.w3.org/2002/07/owl#DatatypeProperty".freeze
120
+ comment: {en: "\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 "},
121
+ domain: "http://www.w3.org/ns/auth/cert#PrivateKey",
122
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "unstable",
123
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
124
+ label: {en: "private"},
125
+ range: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
126
+ type: "http://www.w3.org/2002/07/owl#DatatypeProperty"
125
127
 
126
128
  # Datatype definitions
127
129
  term :hex,
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,
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,
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,
134
- label: "hexadecimal".freeze,
135
- type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
130
+ 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 ",
131
+ editorialNote: {en: "<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 "},
132
+ equivalentClass: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
133
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://en.wikipedia.org/wiki/Hexadecimal",
134
+ "http://www.w3.org/2003/06/sw-vocab-status/ns#term_status": "archaic",
135
+ isDefinedBy: "http://www.w3.org/ns/auth/cert#",
136
+ label: {en: "hexadecimal"},
137
+ type: "http://www.w3.org/2000/01/rdf-schema#Datatype"
136
138
  end
137
139
  end