rdf-vocab 0.8.8 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rdf/vocab.rb +160 -61
  3. data/lib/rdf/vocab/acl.rb +6 -1
  4. data/lib/rdf/vocab/bibframe.rb +83 -78
  5. data/lib/rdf/vocab/bibo.rb +255 -248
  6. data/lib/rdf/vocab/cc.rb +132 -0
  7. data/lib/rdf/vocab/cert.rb +249 -0
  8. data/lib/rdf/vocab/cnt.rb +23 -18
  9. data/lib/rdf/vocab/crm.rb +12 -7
  10. data/lib/rdf/vocab/datacite.rb +88 -83
  11. data/lib/rdf/vocab/dc.rb +952 -0
  12. data/lib/rdf/vocab/dc11.rb +171 -0
  13. data/lib/rdf/vocab/dcat.rb +218 -0
  14. data/lib/rdf/vocab/dcmitype.rb +80 -75
  15. data/lib/rdf/vocab/doap.rb +341 -0
  16. data/lib/rdf/vocab/dwc.rb +1651 -1646
  17. data/lib/rdf/vocab/ebucore.rb +122 -117
  18. data/lib/rdf/vocab/edm.rb +102 -97
  19. data/lib/rdf/vocab/exif.rb +945 -0
  20. data/lib/rdf/vocab/extensions.rb +1 -0
  21. data/lib/rdf/vocab/fcrepo4.rb +62 -57
  22. data/lib/rdf/vocab/foaf.rb +618 -0
  23. data/lib/rdf/vocab/geo.rb +161 -0
  24. data/lib/rdf/vocab/geonames.rb +2742 -2737
  25. data/lib/rdf/vocab/gr.rb +1505 -0
  26. data/lib/rdf/vocab/ht.rb +240 -0
  27. data/lib/rdf/vocab/hydra.rb +96 -91
  28. data/lib/rdf/vocab/iana.rb +5 -0
  29. data/lib/rdf/vocab/ical.rb +532 -0
  30. data/lib/rdf/vocab/identifiers.rb +203 -182
  31. data/lib/rdf/vocab/iiif.rb +51 -26
  32. data/lib/rdf/vocab/jsonld.rb +15 -10
  33. data/lib/rdf/vocab/ldp.rb +66 -61
  34. data/lib/rdf/vocab/lrmi.rb +68 -63
  35. data/lib/rdf/vocab/ma.rb +517 -0
  36. data/lib/rdf/vocab/mads.rb +448 -206
  37. data/lib/rdf/vocab/marc_relators.rb +1240 -1235
  38. data/lib/rdf/vocab/mo.rb +2416 -0
  39. data/lib/rdf/vocab/mods.rb +17 -12
  40. data/lib/rdf/vocab/nfo.rb +65 -60
  41. data/lib/rdf/vocab/oa.rb +91 -86
  42. data/lib/rdf/vocab/og.rb +226 -0
  43. data/lib/rdf/vocab/ogc.rb +62 -0
  44. data/lib/rdf/vocab/ore.rb +24 -19
  45. data/lib/rdf/vocab/org.rb +83 -78
  46. data/lib/rdf/vocab/pplan.rb +54 -49
  47. data/lib/rdf/vocab/premis.rb +470 -465
  48. data/lib/rdf/vocab/premis_event_type.rb +85 -80
  49. data/lib/rdf/vocab/prov.rb +1554 -0
  50. data/lib/rdf/vocab/ptr.rb +5 -0
  51. data/lib/rdf/vocab/rsa.rb +76 -0
  52. data/lib/rdf/vocab/rss.rb +70 -0
  53. data/lib/rdf/vocab/schema.rb +10765 -0
  54. data/lib/rdf/vocab/sioc.rb +673 -0
  55. data/lib/rdf/vocab/sioc_services.rb +27 -22
  56. data/lib/rdf/vocab/skos.rb +242 -0
  57. data/lib/rdf/vocab/skosxl.rb +61 -0
  58. data/lib/rdf/vocab/v.rb +387 -0
  59. data/lib/rdf/vocab/vcard.rb +845 -0
  60. data/lib/rdf/vocab/version.rb +1 -0
  61. data/lib/rdf/vocab/vmd.rb +387 -0
  62. data/lib/rdf/vocab/void.rb +190 -0
  63. data/lib/rdf/vocab/vs.rb +32 -0
  64. data/lib/rdf/vocab/wdrs.rb +138 -0
  65. data/lib/rdf/vocab/wot.rb +171 -0
  66. data/lib/rdf/vocab/xhtml.rb +12 -0
  67. data/lib/rdf/vocab/xhv.rb +509 -0
  68. data/spec/spec_helper.rb +1 -0
  69. data/spec/vocab_spec.rb +1 -0
  70. metadata +76 -33
  71. data/lib/rdf/vocab/disco.rb +0 -369
@@ -0,0 +1,132 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # frozen_string_literal: true
3
+ # This file generated automatically using vocab-fetch from http://creativecommons.org/ns#
4
+ require 'rdf'
5
+ module RDF::Vocab
6
+ # @!parse
7
+ # # Vocabulary for <http://creativecommons.org/ns#>
8
+ # class CC < RDF::StrictVocabulary
9
+ # end
10
+ class CC < RDF::StrictVocabulary("http://creativecommons.org/ns#")
11
+
12
+ # Class definitions
13
+ term :Jurisdiction,
14
+ label: "Jurisdiction".freeze,
15
+ type: "rdfs:Class".freeze
16
+ term :License,
17
+ label: "License".freeze,
18
+ subClassOf: "dc:LicenseDocument".freeze,
19
+ type: "rdfs:Class".freeze
20
+ term :Permission,
21
+ label: "Permission".freeze,
22
+ type: "rdfs:Class".freeze
23
+ term :Prohibition,
24
+ label: "Prohibition".freeze,
25
+ type: "rdfs:Class".freeze
26
+ term :Requirement,
27
+ label: "Requirement".freeze,
28
+ type: "rdfs:Class".freeze
29
+ term :Work,
30
+ label: "Work".freeze,
31
+ type: "rdfs:Class".freeze
32
+
33
+ # Property definitions
34
+ property :attributionName,
35
+ domain: "cc:Work".freeze,
36
+ label: "attributionName".freeze,
37
+ range: "rdfs:Literal".freeze,
38
+ type: "rdf:Property".freeze
39
+ property :attributionURL,
40
+ domain: "cc:Work".freeze,
41
+ label: "attributionURL".freeze,
42
+ range: "rdfs:Resource".freeze,
43
+ type: "rdf:Property".freeze
44
+ property :deprecatedOn,
45
+ domain: "cc:License".freeze,
46
+ label: "deprecatedOn".freeze,
47
+ range: "xsd:date".freeze,
48
+ type: "rdf:Property".freeze
49
+ property :jurisdiction,
50
+ domain: "cc:License".freeze,
51
+ label: "jurisdiction".freeze,
52
+ range: "cc:Jurisdiction".freeze,
53
+ type: "rdf:Property".freeze
54
+ property :legalcode,
55
+ domain: "cc:License".freeze,
56
+ label: "legalcode".freeze,
57
+ range: "rdfs:Resource".freeze,
58
+ type: "rdf:Property".freeze
59
+ property :license,
60
+ domain: "cc:Work".freeze,
61
+ label: "license".freeze,
62
+ "owl:sameAs" => %(xhv:license).freeze,
63
+ range: "cc:License".freeze,
64
+ subPropertyOf: "dc:license".freeze,
65
+ type: "rdf:Property".freeze
66
+ property :morePermissions,
67
+ domain: "cc:Work".freeze,
68
+ label: "morePermissions".freeze,
69
+ range: "rdfs:Resource".freeze,
70
+ subPropertyOf: "dc:relation".freeze,
71
+ type: "rdf:Property".freeze
72
+ property :permits,
73
+ domain: "cc:License".freeze,
74
+ label: "permits".freeze,
75
+ range: "cc:Permission".freeze,
76
+ type: "rdf:Property".freeze
77
+ property :prohibits,
78
+ domain: "cc:License".freeze,
79
+ label: "prohibits".freeze,
80
+ range: "cc:Prohibition".freeze,
81
+ type: "rdf:Property".freeze
82
+ property :requires,
83
+ domain: "cc:License".freeze,
84
+ label: "requires".freeze,
85
+ range: "cc:Requirement".freeze,
86
+ type: "rdf:Property".freeze
87
+ property :useGuidelines,
88
+ domain: "cc:Work".freeze,
89
+ label: "useGuidelines".freeze,
90
+ range: "rdfs:Resource".freeze,
91
+ subPropertyOf: "dc:relation".freeze,
92
+ type: "rdf:Property".freeze
93
+
94
+ # Extra definitions
95
+ term :Attribution,
96
+ label: "Attribution".freeze,
97
+ type: "cc:Requirement".freeze
98
+ term :CommercialUse,
99
+ label: "CommercialUse".freeze,
100
+ type: "cc:Prohibition".freeze
101
+ term :Copyleft,
102
+ label: "Copyleft".freeze,
103
+ type: "cc:Requirement".freeze
104
+ term :DerivativeWorks,
105
+ label: "DerivativeWorks".freeze,
106
+ type: "cc:Permission".freeze
107
+ term :Distribution,
108
+ label: "Distribution".freeze,
109
+ type: "cc:Permission".freeze
110
+ term :HighIncomeNationUse,
111
+ label: "HighIncomeNationUse".freeze,
112
+ type: "cc:Prohibition".freeze
113
+ term :LesserCopyleft,
114
+ label: "LesserCopyleft".freeze,
115
+ type: "cc:Requirement".freeze
116
+ term :Notice,
117
+ label: "Notice".freeze,
118
+ type: "cc:Requirement".freeze
119
+ term :Reproduction,
120
+ label: "Reproduction".freeze,
121
+ type: "cc:Permission".freeze
122
+ term :ShareAlike,
123
+ label: "ShareAlike".freeze,
124
+ type: "cc:Requirement".freeze
125
+ term :Sharing,
126
+ label: "Sharing".freeze,
127
+ type: "cc:Permission".freeze
128
+ term :SourceCode,
129
+ label: "SourceCode".freeze,
130
+ type: "cc:Requirement".freeze
131
+ end
132
+ end
@@ -0,0 +1,249 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # frozen_string_literal: true
3
+ # This file generated automatically using vocab-fetch from http://www.w3.org/ns/auth/cert#
4
+ require 'rdf'
5
+ module RDF::Vocab
6
+ # @!parse
7
+ # # Vocabulary for <http>
8
+ # class CERT < RDF::StrictVocabulary
9
+ # end
10
+ class CERT < RDF::StrictVocabulary("http://www.w3.org/ns/auth/cert#")
11
+
12
+ # Class definitions
13
+ term :Certificate,
14
+ comment: %(A certificate is a Document that is signed.
15
+ As explained here http://www.pgpi.org/doc/pgpintro/#p16
16
+ 'A digital certificate consists of three things:
17
+ * A public key.
18
+ * Certificate information. \('Identity' information about the
19
+ user, such as name, user ID, and so on.\)
20
+ * One or more digital signatures.'
21
+ ).freeze,
22
+ label: "Certificate".freeze,
23
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
24
+ subClassOf: "foaf:Document".freeze,
25
+ type: "owl:Class".freeze,
26
+ :"vs:term_status" => %(unstable).freeze
27
+ term :Key,
28
+ comment: %(the class of keys).freeze,
29
+ label: "Key".freeze,
30
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
31
+ type: "owl:Class".freeze,
32
+ :"vs:term_status" => %(unstable).freeze
33
+ term :PGPCertificate,
34
+ comment: %(the class of PGP Certificates).freeze,
35
+ label: "PGPCertificate".freeze,
36
+ :"owl:equivalentClass" => %(wot:PubKey).freeze,
37
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
38
+ subClassOf: "cert:Certificate".freeze,
39
+ type: "owl:Class".freeze,
40
+ :"vs:term_status" => %(unstable).freeze
41
+ term :PrivateKey,
42
+ comment: %(Private Key).freeze,
43
+ label: "PrivateKey".freeze,
44
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
45
+ subClassOf: "cert:Key".freeze,
46
+ type: "owl:Class".freeze
47
+ term :PublicKey,
48
+ comment: %(Public Key).freeze,
49
+ label: "PublicKey".freeze,
50
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
51
+ subClassOf: "cert:Key".freeze,
52
+ type: "owl:Class".freeze,
53
+ :"vs:term_status" => %(unstable).freeze
54
+ term :RSAKey,
55
+ comment: %(
56
+ The union of the public and private components of an RSAKey.
57
+ Usually those pieces are not kept together
58
+ ).freeze,
59
+ label: "RSA Key".freeze,
60
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
61
+ subClassOf: "cert:Key".freeze,
62
+ type: "owl:Class".freeze,
63
+ :"vs:term_status" => %(unstable).freeze
64
+ term :RSAPublicKey,
65
+ comment: %(
66
+ The RSA public key. Padded message m are encrypted by applying the function
67
+ modulus\(power\(m,exponent\),modulus\)
68
+ ).freeze,
69
+ label: "RSA Public Key".freeze,
70
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
71
+ :"rdfs:seeAlso" => %(http://en.wikipedia.org/wiki/RSA).freeze,
72
+ subClassOf: ["cert:PublicKey".freeze, "cert:RSAKey".freeze],
73
+ type: "owl:Class".freeze,
74
+ :"vs:term_status" => %(unstable).freeze
75
+ term :Signature,
76
+ comment: %(the class of signtatures).freeze,
77
+ label: "Signature".freeze,
78
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
79
+ type: "owl:Class".freeze,
80
+ :"vs:term_status" => %(unstable).freeze
81
+ term :X509Certificate,
82
+ comment: %(the class of X509 Certificates).freeze,
83
+ label: "X509Certificate".freeze,
84
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
85
+ :"rdfs:seeAlso" => %(http://en.wikipedia.org/wiki/X509).freeze,
86
+ subClassOf: "cert:Certificate".freeze,
87
+ type: "owl:Class".freeze,
88
+ :"vs:term_status" => %(unstable).freeze
89
+
90
+ # Property definitions
91
+ property :exponent,
92
+ comment: %(
93
+ The exponent used to encrypt the message. Number chosen between
94
+ 1 and the totient\(p*q\). Often named 'e' .
95
+ ).freeze,
96
+ domain: "cert:RSAPublicKey".freeze,
97
+ label: "exponent".freeze,
98
+ range: "xsd:nonNegativeInteger".freeze,
99
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
100
+ type: "owl:DatatypeProperty".freeze,
101
+ :"vs:term_status" => %(unstable).freeze
102
+ property :identity,
103
+ comment: %(
104
+ the identity of the public key. This is the entity that knows the private key and
105
+ so can decrypt messages encrypted with the public key, or encrypt messages that can
106
+ be decrypted with the public key.
107
+ ).freeze,
108
+ domain: "cert:PublicKey".freeze,
109
+ label: "identity".freeze,
110
+ :"owl:inverseOf" => %(cert:key).freeze,
111
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
112
+ :"skos:editorialNote" => %(
113
+ It turns out that this relation is unintuitive to write out and to name.
114
+ One should instead use cert:key
115
+ ).freeze,
116
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze],
117
+ :"vs:term_status" => %(archaic).freeze
118
+ property :key,
119
+ comment: %(relates an agent to a key - most often the public key.).freeze,
120
+ domain: "foaf:Agent".freeze,
121
+ label: "key".freeze,
122
+ :"owl:inverseOf" => %(cert:identity).freeze,
123
+ range: ["cert:Key".freeze, "cert:PublicKey".freeze],
124
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
125
+ type: ["owl:InverseFunctionalProperty".freeze, "owl:ObjectProperty".freeze, "rdf:Property".freeze],
126
+ :"vs:term_status" => %(unstable).freeze
127
+ property :modulus,
128
+ comment: %(
129
+ <p>The modulus of an RSA public and private key.
130
+ Or the modulus of a DSA Key.
131
+ The modulus is encoded as a hex binary. The binary is the same as the one encoded in the
132
+ <a href="http://www.w3.org/TR/xmldsig-core/#sec-CryptoBinary">XML DSIG CryptoBinary</a>
133
+ </p>
134
+ <blockquote>
135
+ 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\).
136
+ </blockquote>
137
+ <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>
138
+ <p>It would have been better had there been a hexInteger datatype that was standard and supported by all tools.</p>
139
+ ).freeze,
140
+ domain: "cert:RSAKey".freeze,
141
+ label: "modulus".freeze,
142
+ range: ["xsd:base64Binary".freeze, "xsd:hexBinary".freeze],
143
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
144
+ type: "owl:DatatypeProperty".freeze,
145
+ :"vs:term_status" => %(unstable).freeze
146
+ property :privateExponent,
147
+ comment: %(
148
+ The exponent used to decrypt the message
149
+ calculated as
150
+ public_exponent*private_exponent = 1 modulo totient\(p*q\)
151
+ The private exponent is often named 'd'
152
+ ).freeze,
153
+ domain: "cert:PrivateKey".freeze,
154
+ label: "private".freeze,
155
+ range: "xsd:nonNegativeInteger".freeze,
156
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
157
+ type: "owl:DatatypeProperty".freeze,
158
+ :"vs:term_status" => %(unstable).freeze
159
+
160
+ # Datatype definitions
161
+ term :hex,
162
+ 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>
163
+ 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>
164
+ <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>
165
+ <pre>
166
+ e1 dc d5 e1 00 8f 21 5e d5 cc 7c 7e c4 9c ad 86
167
+ 64 aa dc 29 f2 8d d9 56 7f 31 b6 bd 1b fd b8 ee
168
+ 51 0d 3c 84 59 a2 45 d2 13 59 2a 14 82 1a 0f 6e
169
+ d3 d1 4a 2d a9 4c 7e db 90 07 fc f1 8d a3 8e 38
170
+ 25 21 0a 32 c1 95 31 3c ba 56 cc 17 45 87 e1 eb
171
+ fd 9f 0f 82 16 67 9f 67 fa 91 e4 0d 55 4e 52 c0
172
+ 66 64 2f fe 98 8f ae f8 96 21 5e ea 38 9e 5c 4f
173
+ 27 e2 48 ca ca f2 90 23 ad 99 4b cc 38 32 6d bf
174
+ </pre>
175
+ <p>
176
+ 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>
177
+ <p>The letters can be uppercase or lowercase, or mixed. </p>
178
+ <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>
179
+ <p> In order to make this fun, we allow any unicode characters in the string. A parser should </p>
180
+ <ol>
181
+ <li>remove all non hexadecimal characters</li>
182
+ <li>treat the resulting as a hexadecimal representation of a number</li>
183
+ </ol>
184
+ <p>
185
+ This will allow people to make an ascii - better yet a UTF-8 - picture of their public key when publishing it on the web.
186
+ </p>
187
+ <p>
188
+ Cert hex is also a datatype property because we used to write it out like this
189
+ </p>
190
+ <pre>
191
+ [] a rsa:RSAPublicKey;
192
+ rsa:public_exponent [ cert:hex "e1 dc d5 ..."]
193
+ </pre>
194
+ <p> The above notation is now deprecated. Now we prefer the literal format below.</p>
195
+ <pre>
196
+ [] a rsa:RSAPublicKey;
197
+ rsa:public_exponent "e1 dc d5 ..."^^cert:hex .
198
+ </pre>
199
+ </span>
200
+ ).freeze,
201
+ label: "hexadecimal".freeze,
202
+ :"owl:equivalentClass" => %(xsd:nonNegativeInteger).freeze,
203
+ :"rdfs:isDefinedBy" => %(cert:).freeze,
204
+ :"rdfs:seeAlso" => %(http://en.wikipedia.org/wiki/Hexadecimal).freeze,
205
+ :"skos:editorialNote" => %(<span xmlns="http://www.w3.org/1999/xhtml"><p>
206
+ This relation should slowly be transited to just being a datatype.</p>
207
+ <p>Being a datatype and a property is legal as explained here
208
+ <a href="http://lists.w3.org/Archives/Public/semantic-web/2010Mar/0037.html">on the semantic web mailing list in March 2010</a>.
209
+ 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>
210
+ ).freeze,
211
+ type: "rdfs:Datatype".freeze,
212
+ :"vs:term_status" => %(archaic).freeze
213
+
214
+ # Extra definitions
215
+ term :"",
216
+ comment: %(
217
+ Ontology for Certificates and crypto stuff.
218
+ This is in development.
219
+ Some other ontologies to look at:
220
+ * http://www.w3.org/2000/10/swap/crypto
221
+ + has cwm builtins: http://www.w3.org/2000/10/swap/doc/Trust
222
+ - a bit old perhaps. It imports daml+oil
223
+ - would help to be more completely specified
224
+ - uses literals as subjects a little liberally, which makes this a
225
+ bit difficult to work with frameworks that don't permit this
226
+ * http://xmlns.com/wot/0.1/
227
+ - limited very much to PGP \(though on can map PGP to X509\)
228
+ - a little coarse grained, mixes up the PGP certificate with the PGP
229
+ public key
230
+ *
231
+ Todo:
232
+ - add some classes and relations for DSA
233
+ - 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?
234
+ - expand more on the certification side of things
235
+ - verify this by security experts
236
+ - owl2 has some constructs for combined inverse functional properties.
237
+ This may be useful to use in defining an RSA key which is identified
238
+ by two numbers.
239
+ - also create html version of the spec by using this as a template.
240
+ - should comments such as this be in html?
241
+ ).freeze,
242
+ :"dc:created" => %(2008-11-13).freeze,
243
+ :"foaf:maker" => %(http://bblfish.net/people/henry/card#me).freeze,
244
+ label: "Ontology for Certificates and crypto stuff.".freeze,
245
+ :"rdfs: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],
246
+ type: "owl:Ontology".freeze,
247
+ :"vs:term_status" => %(unstable).freeze
248
+ end
249
+ end
data/lib/rdf/vocab/cnt.rb CHANGED
@@ -1,33 +1,38 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # frozen_string_literal: true
2
3
  # This file generated automatically using vocab-fetch from http://www.w3.org/2011/content#
3
4
  require 'rdf'
4
5
  module RDF::Vocab
6
+ # @!parse
7
+ # # Vocabulary for <http://www.w3.org/2011/content#>
8
+ # class CNT < RDF::StrictVocabulary
9
+ # end
5
10
  class CNT < RDF::StrictVocabulary("http://www.w3.org/2011/content#")
6
11
 
7
12
  # Class definitions
8
13
  term :Content,
9
14
  comment: %(The content.).freeze,
10
15
  label: "Content".freeze,
11
- type: ["rdfs:Class".freeze, "owl:Class".freeze]
16
+ type: ["owl:Class".freeze, "rdfs:Class".freeze]
12
17
  term :ContentAsBase64,
13
18
  comment: %(The base64 encoded content \(can be used for binary content\).).freeze,
14
19
  label: "Base64 content".freeze,
15
20
  subClassOf: "cnt:Content".freeze,
16
- type: ["rdfs:Class".freeze, "owl:Class".freeze]
21
+ type: ["owl:Class".freeze, "rdfs:Class".freeze]
17
22
  term :ContentAsText,
18
23
  comment: %(The text content \(can be used for text content\).).freeze,
19
24
  label: "Text content".freeze,
20
25
  subClassOf: "cnt:Content".freeze,
21
- type: ["rdfs:Class".freeze, "owl:Class".freeze]
26
+ type: ["owl:Class".freeze, "rdfs:Class".freeze]
22
27
  term :ContentAsXML,
23
28
  comment: %(The XML content \(can only be used for XML-wellformed content\).).freeze,
24
29
  label: "XML content".freeze,
25
30
  subClassOf: "cnt:Content".freeze,
26
- type: ["rdfs:Class".freeze, "owl:Class".freeze]
31
+ type: ["owl:Class".freeze, "rdfs:Class".freeze]
27
32
  term :DoctypeDecl,
28
33
  comment: %(The document type declaration.).freeze,
29
34
  label: "Document type declaration".freeze,
30
- type: ["rdfs:Class".freeze, "owl:Class".freeze]
35
+ type: ["owl:Class".freeze, "rdfs:Class".freeze]
31
36
 
32
37
  # Property definitions
33
38
  property :bytes,
@@ -35,78 +40,78 @@ module RDF::Vocab
35
40
  domain: "cnt:ContentAsBase64".freeze,
36
41
  label: "Base64 encoded byte sequence".freeze,
37
42
  range: "xsd:base64Binary".freeze,
38
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
43
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
39
44
  property :characterEncoding,
40
45
  comment: %(The character encoding used to create a character sequence from a byte sequence or vice versa.).freeze,
41
46
  domain: "cnt:Content".freeze,
42
47
  label: "Character encoding".freeze,
43
48
  range: "rdfs:Literal".freeze,
44
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
49
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
45
50
  property :chars,
46
51
  comment: %(The character sequence of the text content.).freeze,
47
52
  domain: "cnt:ContentAsText".freeze,
48
53
  label: "Character sequence".freeze,
49
54
  range: "rdfs:Literal".freeze,
50
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
55
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
51
56
  property :declaredEncoding,
52
57
  comment: %(The character encoding declared in the XML declaration.).freeze,
53
58
  domain: "cnt:ContentAsXML".freeze,
54
59
  label: "XML character encoding".freeze,
55
60
  range: "rdfs:Literal".freeze,
56
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
61
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
57
62
  property :doctypeName,
58
63
  comment: %(The document type name.).freeze,
59
64
  domain: "cnt:DoctypeDecl".freeze,
60
65
  label: "Document type name".freeze,
61
66
  range: "rdfs:Literal".freeze,
62
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
67
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
63
68
  property :dtDecl,
64
69
  comment: %(The document type declaration.).freeze,
65
70
  domain: "cnt:ContentAsXML".freeze,
66
71
  label: "Document type declaration".freeze,
67
72
  range: "cnt:DoctypeDecl".freeze,
68
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
73
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
69
74
  property :internalSubset,
70
75
  comment: %(The internal document type definition subset within the document type declarations.).freeze,
71
76
  domain: "cnt:DoctypeDecl".freeze,
72
77
  label: "Internal DTD subset".freeze,
73
78
  range: "rdfs:Literal".freeze,
74
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
79
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
75
80
  property :leadingMisc,
76
81
  comment: %(The XML content preceding the document type declaration.).freeze,
77
82
  domain: "cnt:ContentAsXML".freeze,
78
83
  label: "XML leading misc".freeze,
79
84
  range: "rdf:XMLLiteral".freeze,
80
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
85
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
81
86
  property :publicId,
82
87
  comment: %(The document type declarations's public identifier.).freeze,
83
88
  domain: "cnt:DoctypeDecl".freeze,
84
89
  label: "Public ID".freeze,
85
90
  range: "rdfs:Literal".freeze,
86
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
91
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
87
92
  property :rest,
88
93
  comment: %(The XML content following the document type declaration.).freeze,
89
94
  domain: "cnt:ContentAsXML".freeze,
90
95
  label: "XML rest".freeze,
91
96
  range: "rdf:XMLLiteral".freeze,
92
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
97
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
93
98
  property :standalone,
94
99
  comment: %(The standalone declaration in the XML declaration.).freeze,
95
100
  domain: "cnt:ContentAsXML".freeze,
96
101
  label: "XML standalone document declaration".freeze,
97
102
  range: "rdfs:Literal".freeze,
98
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
103
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
99
104
  property :systemId,
100
105
  comment: %(The document type declarations's system identifier \(typed: xsd:anyURI\)).freeze,
101
106
  domain: "cnt:DoctypeDecl".freeze,
102
107
  label: "System ID".freeze,
103
108
  range: "xsd:anyURI".freeze,
104
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
109
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
105
110
  property :version,
106
111
  comment: %(The XML version declared in the XML declaration.).freeze,
107
112
  domain: "cnt:ContentAsXML".freeze,
108
113
  label: "XML version".freeze,
109
114
  range: "rdfs:Literal".freeze,
110
- type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
115
+ type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
111
116
  end
112
117
  end