rdf 1.99.1 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/{README → README.md} +9 -44
  3. data/VERSION +1 -1
  4. data/bin/rdf +1 -1
  5. data/lib/rdf.rb +40 -49
  6. data/lib/rdf/changeset.rb +161 -0
  7. data/lib/rdf/cli.rb +195 -33
  8. data/lib/rdf/cli/vocab-loader.rb +13 -3
  9. data/lib/rdf/format.rb +44 -26
  10. data/lib/rdf/mixin/enumerable.rb +133 -97
  11. data/lib/rdf/mixin/enumerator.rb +8 -0
  12. data/lib/rdf/mixin/indexable.rb +1 -1
  13. data/lib/rdf/mixin/mutable.rb +101 -22
  14. data/lib/rdf/mixin/queryable.rb +21 -32
  15. data/lib/rdf/mixin/transactable.rb +94 -0
  16. data/lib/rdf/mixin/writable.rb +12 -3
  17. data/lib/rdf/model/dataset.rb +48 -0
  18. data/lib/rdf/model/graph.rb +73 -43
  19. data/lib/rdf/model/list.rb +61 -33
  20. data/lib/rdf/model/literal.rb +20 -19
  21. data/lib/rdf/model/literal/double.rb +20 -4
  22. data/lib/rdf/model/literal/numeric.rb +15 -13
  23. data/lib/rdf/model/node.rb +15 -16
  24. data/lib/rdf/model/statement.rb +1 -43
  25. data/lib/rdf/model/term.rb +10 -8
  26. data/lib/rdf/model/uri.rb +35 -34
  27. data/lib/rdf/model/value.rb +1 -1
  28. data/lib/rdf/nquads.rb +2 -11
  29. data/lib/rdf/ntriples.rb +1 -1
  30. data/lib/rdf/ntriples/reader.rb +33 -46
  31. data/lib/rdf/ntriples/writer.rb +42 -5
  32. data/lib/rdf/query.rb +6 -40
  33. data/lib/rdf/query/pattern.rb +4 -17
  34. data/lib/rdf/query/solutions.rb +6 -6
  35. data/lib/rdf/reader.rb +65 -14
  36. data/lib/rdf/repository.rb +365 -229
  37. data/lib/rdf/transaction.rb +211 -84
  38. data/lib/rdf/util.rb +1 -0
  39. data/lib/rdf/util/cache.rb +5 -5
  40. data/lib/rdf/util/file.rb +12 -9
  41. data/lib/rdf/util/logger.rb +272 -0
  42. data/lib/rdf/version.rb +2 -2
  43. data/lib/rdf/vocab/owl.rb +82 -77
  44. data/lib/rdf/vocab/rdfs.rb +22 -17
  45. data/lib/rdf/vocab/xsd.rb +5 -0
  46. data/lib/rdf/vocabulary.rb +50 -56
  47. data/lib/rdf/writer.rb +104 -52
  48. metadata +45 -90
  49. data/lib/rdf/mixin/inferable.rb +0 -5
  50. data/lib/rdf/vocab/cc.rb +0 -128
  51. data/lib/rdf/vocab/cert.rb +0 -245
  52. data/lib/rdf/vocab/dc.rb +0 -948
  53. data/lib/rdf/vocab/dc11.rb +0 -167
  54. data/lib/rdf/vocab/dcat.rb +0 -214
  55. data/lib/rdf/vocab/doap.rb +0 -337
  56. data/lib/rdf/vocab/exif.rb +0 -941
  57. data/lib/rdf/vocab/foaf.rb +0 -614
  58. data/lib/rdf/vocab/geo.rb +0 -157
  59. data/lib/rdf/vocab/gr.rb +0 -1501
  60. data/lib/rdf/vocab/ht.rb +0 -236
  61. data/lib/rdf/vocab/ical.rb +0 -528
  62. data/lib/rdf/vocab/ma.rb +0 -513
  63. data/lib/rdf/vocab/mo.rb +0 -2412
  64. data/lib/rdf/vocab/og.rb +0 -222
  65. data/lib/rdf/vocab/ogc.rb +0 -58
  66. data/lib/rdf/vocab/prov.rb +0 -1550
  67. data/lib/rdf/vocab/rsa.rb +0 -72
  68. data/lib/rdf/vocab/rss.rb +0 -66
  69. data/lib/rdf/vocab/schema.rb +0 -10569
  70. data/lib/rdf/vocab/sioc.rb +0 -669
  71. data/lib/rdf/vocab/skos.rb +0 -238
  72. data/lib/rdf/vocab/skosxl.rb +0 -57
  73. data/lib/rdf/vocab/v.rb +0 -383
  74. data/lib/rdf/vocab/vcard.rb +0 -841
  75. data/lib/rdf/vocab/vmd.rb +0 -383
  76. data/lib/rdf/vocab/void.rb +0 -186
  77. data/lib/rdf/vocab/vs.rb +0 -28
  78. data/lib/rdf/vocab/wdrs.rb +0 -134
  79. data/lib/rdf/vocab/wot.rb +0 -167
  80. data/lib/rdf/vocab/xhtml.rb +0 -8
  81. data/lib/rdf/vocab/xhv.rb +0 -505
@@ -1,28 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://www.w3.org/2003/06/sw-vocab-status/ns#
3
- require 'rdf'
4
- module RDF
5
- # @deprecated Please use `RDF::Vocab::VS` from the rdf-vocab gem instead
6
- class VS < RDF::StrictVocabulary("http://www.w3.org/2003/06/sw-vocab-status/ns#")
7
-
8
- # Property definitions
9
- property :moreinfo,
10
- comment: %(more information about the status etc of a term, typically human oriented).freeze,
11
- label: "more info".freeze,
12
- "rdfs:isDefinedBy" => %(vs:).freeze,
13
- type: "rdf:Property".freeze,
14
- "vs:term_status" => %(unstable).freeze
15
- property :term_status,
16
- comment: %(the status of a vocabulary term, expressed as a short symbolic string; known values include 'unstable','testing', 'stable' and 'archaic').freeze,
17
- label: "term status".freeze,
18
- "rdfs:isDefinedBy" => %(vs:).freeze,
19
- type: "rdf:Property".freeze,
20
- "vs:term_status" => %(unstable).freeze
21
- property :userdocs,
22
- comment: %(human-oriented documentation, examples etc for use of this term).freeze,
23
- label: "user docs".freeze,
24
- "rdfs:isDefinedBy" => %(vs:).freeze,
25
- type: "rdf:Property".freeze,
26
- "vs:term_status" => %(unstable).freeze
27
- end
28
- end
@@ -1,134 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://www.w3.org/2007/05/powder-s#
3
- require 'rdf'
4
- module RDF
5
- # @deprecated Please use `RDF::Vocab::WRDS` from the rdf-vocab gem instead
6
- class WDRS < RDF::StrictVocabulary("http://www.w3.org/2007/05/powder-s#")
7
-
8
- # Class definitions
9
- term :Document,
10
- comment: %(A POWDER document.).freeze,
11
- label: "POWDER document".freeze,
12
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#structure).freeze,
13
- subClassOf: "owl:Ontology".freeze,
14
- type: "rdfs:Class".freeze
15
- term :Processor,
16
- comment: %(A software agent able to process POWDER documents.).freeze,
17
- label: "POWDER processor".freeze,
18
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#powderprocessor).freeze,
19
- subClassOf: "dc:Agent".freeze,
20
- type: "rdfs:Class".freeze
21
-
22
- # Property definitions
23
- property :authenticate,
24
- comment: %(A pointer to a document that describes how Description Resources created by a FOAF Agent or a DC Terms Agent may be authenticated).freeze,
25
- label: "authenticate".freeze,
26
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#discover).freeze,
27
- type: "rdf:Property".freeze
28
- property :certified,
29
- comment: %(A property that takes a Boolean value to declare whether the author of the data certifies the described resource.).freeze,
30
- label: "certified".freeze,
31
- range: "xsd:boolean".freeze,
32
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#certification).freeze,
33
- type: "rdf:Property".freeze
34
- property :certifiedby,
35
- comment: %(A property that links a resource to a POWDER document that certifies it.).freeze,
36
- label: "certified by".freeze,
37
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#certification).freeze,
38
- type: ["rdf:Property".freeze, "owl:AnnotationProperty".freeze]
39
- property :data_error,
40
- comment: %(A property denoting a description of the specific error found in a given POWDER document.).freeze,
41
- domain: "wdrs:Document".freeze,
42
- label: "data error".freeze,
43
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#ppErrorhandling).freeze,
44
- type: "rdf:Property".freeze
45
- property :describedby,
46
- comment: %(An RDF property to exactly match the describedby relationship type introduced in http://www.w3.org/TR/powder-dr/#assoc-linking and formally defined in appendix D of the same document, i.e. the relationship A 'describedby' B asserts that resource B provides a description of resource A. There are no constraints on the format or representation of either A or B, neither are there any further constraints on either resource.).freeze,
47
- label: "described by".freeze,
48
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#semlink).freeze,
49
- type: "rdf:Property".freeze
50
- property :error_code,
51
- comment: %(A property denoting the code of any error encountered by the POWDER processor.).freeze,
52
- label: "error code".freeze,
53
- range: "xsd:nonNegativeInteger".freeze,
54
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#ppErrorhandling).freeze,
55
- type: "rdf:Property".freeze
56
- property :hasIRI,
57
- comment: %(This property is meant to be used in OWL2 instead of wdrs:matchesregex. It denotes the string data range corresponding to a set of IRIs.).freeze,
58
- domain: "rdfs:Resource".freeze,
59
- label: "has IRI".freeze,
60
- range: "xsd:anyURI".freeze,
61
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-formal/#oxRegexSemantics).freeze,
62
- type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
63
- property :issuedby,
64
- comment: %(This property denotes the author of a POWDER document.).freeze,
65
- label: "issued by".freeze,
66
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#line3).freeze,
67
- type: ["rdf:Property".freeze, "owl:AnnotationProperty".freeze]
68
- property :logo,
69
- comment: %(Points to a graphic summary for the resources in a given class. Typically, it is a logo denoting conformance of a given \(set of\) resource\(s\) to a given set of criteria.).freeze,
70
- label: "logo".freeze,
71
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#line13).freeze,
72
- type: ["rdf:Property".freeze, "owl:AnnotationProperty".freeze]
73
- property :matchesregex,
74
- comment: %(This is the key 'include' property for IRI set definitions in POWDER-S. It is necessary to take account of the POWDER Semantic Extension to process this fully. The value is a regular expression that is matched against an IRI.).freeze,
75
- domain: "rdfs:Resource".freeze,
76
- label: "matches regular expression".freeze,
77
- range: "xsd:string".freeze,
78
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-formal/#regexSemantics).freeze,
79
- "rdfs:seeAlso" => %(http://www.w3.org/TR/xpath-functions/#regex-syntax).freeze,
80
- type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
81
- property :notknownto,
82
- comment: %(Property used in results returned from a POWDER Processor that has no data about the candidate resource. The value is the IRI of the processor.).freeze,
83
- label: "not known to".freeze,
84
- range: "wdrs:Processor".freeze,
85
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#powderprocessor).freeze,
86
- type: "rdf:Property".freeze
87
- property :notmatchesregex,
88
- comment: %(This is the key 'exclude' property for IRI set definitions in POWDER-S. It is necessary to take account of the POWDER Semantic Extension to process this fully. The value is a regular expression that is matched against an IRI.).freeze,
89
- domain: "rdfs:Resource".freeze,
90
- label: "matches regular expression".freeze,
91
- range: "xsd:string".freeze,
92
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-formal/#regexSemantics).freeze,
93
- "rdfs:seeAlso" => %(http://www.w3.org/TR/xpath-functions/#regex-syntax).freeze,
94
- type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
95
- property :proc_error,
96
- comment: %(A property denoting a description of the specific software error.).freeze,
97
- domain: "wdrs:Processor".freeze,
98
- label: "processing error".freeze,
99
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#ppErrorhandling).freeze,
100
- type: "rdf:Property".freeze
101
- property :sha1sum,
102
- comment: %(Links to a Base64-encoded binary SHA-1 hash of the described resource. May be used by POWDER Processors when assessing trustworthiness of a DR.).freeze,
103
- label: "SHA-1 sum".freeze,
104
- range: "xsd:base64Binary".freeze,
105
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#certification).freeze,
106
- type: "rdf:Property".freeze
107
- property :supportedby,
108
- comment: %(A property that links a POWDER document to some other data source that supports the descriptions provided.).freeze,
109
- label: "supported by".freeze,
110
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#supportedBy).freeze,
111
- type: ["rdf:Property".freeze, "owl:AnnotationProperty".freeze]
112
- property :tag,
113
- comment: %(Property linking to a free-text tag which may include spaces.).freeze,
114
- label: "tag".freeze,
115
- range: "xsd:token".freeze,
116
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#tags).freeze,
117
- type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
118
- property :text,
119
- comment: %(This property provides a summary of the descriptorset that it annotates, suitable for display to end users.).freeze,
120
- label: "text that may be displayed".freeze,
121
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#line13).freeze,
122
- type: ["rdf:Property".freeze, "owl:AnnotationProperty".freeze]
123
- property :validfrom,
124
- comment: %(Provides a timestamp that a POWDER Processor may use when assessing trustworthiness of a POWDER document. Informally, a POWDER Processor should normally ignore data in the document before the given date.).freeze,
125
- label: "valid from".freeze,
126
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#certification).freeze,
127
- type: ["rdf:Property".freeze, "owl:AnnotationProperty".freeze]
128
- property :validuntil,
129
- comment: %(Provides a timestamp that a POWDER Processor may use when assessing trustworthiness of a POWDER document. Informally, a POWDER Processor should normally ignore data in the document after the given date.).freeze,
130
- label: "valid until".freeze,
131
- "rdfs:isDefinedBy" => %(http://www.w3.org/TR/powder-dr/#certification).freeze,
132
- type: ["rdf:Property".freeze, "owl:AnnotationProperty".freeze]
133
- end
134
- end
@@ -1,167 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://xmlns.com/wot/0.1/index.rdf
3
- require 'rdf'
4
- module RDF
5
- # @deprecated Please use `RDF::Vocab::WOT` from the rdf-vocab gem instead
6
- class WOT < RDF::StrictVocabulary("http://xmlns.com/wot/0.1/")
7
-
8
- # Class definitions
9
- term :EncryptedDocument,
10
- comment: %(An encrypted document intended for a set of recipients.).freeze,
11
- label: "Encrypted Document".freeze,
12
- "owl:disjointWith" => [%(wot:Endorsement).freeze, %(wot:PubKey).freeze, %(wot:SigEvent).freeze, %(wot:User).freeze],
13
- "rdfs:isDefinedBy" => %(wot:).freeze,
14
- subClassOf: ["foaf:Document".freeze, "http://xmlns.com/wordnet/1.6/Endorsement-4".freeze],
15
- type: "owl:Class".freeze,
16
- "vs:term_status" => %(unstable).freeze
17
- term :Endorsement,
18
- comment: %(An endorsement resource containing a detached ascii signature.).freeze,
19
- label: "Endorsement".freeze,
20
- "owl:disjointWith" => [%(wot:EncryptedDocument).freeze, %(wot:PubKey).freeze, %(wot:SigEvent).freeze, %(wot:User).freeze],
21
- "rdfs:isDefinedBy" => %(wot:).freeze,
22
- subClassOf: ["foaf:Document".freeze, "http://xmlns.com/wordnet/1.6/Endorsement-4".freeze],
23
- type: "owl:Class".freeze,
24
- "vs:term_status" => %(unstable).freeze
25
- term :PubKey,
26
- comment: %(A class used to represent a PGP/GPG public key for a user \(an agent, person, group or organization\).).freeze,
27
- label: "Public Key".freeze,
28
- "owl:disjointWith" => [%(wot:EncryptedDocument).freeze, %(wot:Endorsement).freeze, %(wot:SigEvent).freeze, %(wot:User).freeze],
29
- "rdfs:isDefinedBy" => %(wot:).freeze,
30
- subClassOf: "http://xmlns.com/wordnet/1.6/Credential".freeze,
31
- type: "owl:Class".freeze,
32
- "vs:term_status" => %(stable).freeze
33
- term :SigEvent,
34
- comment: %(An event describing the action of a public key being signed by some other public key.).freeze,
35
- label: "Key Signing Event".freeze,
36
- "owl:disjointWith" => [%(wot:EncryptedDocument).freeze, %(wot:Endorsement).freeze, %(wot:PubKey).freeze, %(wot:User).freeze],
37
- "rdfs:isDefinedBy" => %(wot:).freeze,
38
- subClassOf: ["http://www.w3.org/2002/12/cal/ical#Vevent".freeze, "http://xmlns.com/wordnet/1.6/Event".freeze],
39
- type: "owl:Class".freeze,
40
- "vs:term_status" => %(testing).freeze
41
- term :User,
42
- comment: %(A user \(agent, person, group or organization\) of a PGP/GPG public key.).freeze,
43
- label: "Key User".freeze,
44
- "owl:disjointWith" => [%(wot:EncryptedDocument).freeze, %(wot:Endorsement).freeze, %(wot:PubKey).freeze, %(wot:SigEvent).freeze],
45
- "rdfs:isDefinedBy" => %(wot:).freeze,
46
- subClassOf: "foaf:Agent".freeze,
47
- type: "owl:Class".freeze,
48
- "vs:term_status" => %(stable).freeze
49
-
50
- # Property definitions
51
- property :assurance,
52
- comment: %(A property linking a document to an endorsement resource containing a detached ascii signature.).freeze,
53
- domain: "foaf:Document".freeze,
54
- label: "Assurance".freeze,
55
- range: "wot:Endorsement".freeze,
56
- "rdfs:isDefinedBy" => %(wot:).freeze,
57
- type: "owl:ObjectProperty".freeze,
58
- "vs:term_status" => %(stable).freeze
59
- property :encryptedTo,
60
- comment: %(A property linking an encrypted document to a recipient.).freeze,
61
- domain: "wot:EncryptedDocument".freeze,
62
- label: "Encrypted to".freeze,
63
- range: "wot:PubKey".freeze,
64
- "rdfs:isDefinedBy" => %(wot:).freeze,
65
- type: "owl:ObjectProperty".freeze,
66
- "vs:term_status" => %(unstable).freeze
67
- property :encrypter,
68
- comment: %(A property linking an encrypted document to the public key that was used to encrypt it.).freeze,
69
- domain: "wot:EncryptedDocument".freeze,
70
- label: "Encrypted by".freeze,
71
- range: "wot:PubKey".freeze,
72
- "rdfs:isDefinedBy" => %(wot:).freeze,
73
- type: ["owl:FunctionalProperty".freeze, "owl:ObjectProperty".freeze],
74
- "vs:term_status" => %(unstable).freeze
75
- property :fingerprint,
76
- comment: %(A public key hex fingerprint string \(40 digits, white space insignificant\).).freeze,
77
- domain: "wot:PubKey".freeze,
78
- label: "Fingerprint".freeze,
79
- range: "xsd:string".freeze,
80
- "rdfs:isDefinedBy" => %(wot:).freeze,
81
- type: ["owl:DatatypeProperty".freeze, "owl:InverseFunctionalProperty".freeze],
82
- "vs:term_status" => %(testing).freeze
83
- property :hasKey,
84
- comment: %(A property to link a PubKey from a User).freeze,
85
- domain: "wot:User".freeze,
86
- label: "has Key".freeze,
87
- "owl:inverseOf" => %(wot:identity).freeze,
88
- range: "wot:PubKey".freeze,
89
- "rdfs:isDefinedBy" => %(wot:).freeze,
90
- type: "owl:ObjectProperty".freeze,
91
- "vs:term_status" => %(testing).freeze
92
- property :hex_id,
93
- comment: %(A public key hex identifier string \(8 digits\).).freeze,
94
- domain: "wot:PubKey".freeze,
95
- label: "Hex identifier".freeze,
96
- range: "xsd:string".freeze,
97
- "rdfs:isDefinedBy" => %(wot:).freeze,
98
- type: "owl:DatatypeProperty".freeze,
99
- "vs:term_status" => %(stable).freeze
100
- property :identity,
101
- comment: %(A property linking a public key to the user of the key.).freeze,
102
- domain: "wot:PubKey".freeze,
103
- label: "Identity".freeze,
104
- range: "wot:User".freeze,
105
- "rdfs:isDefinedBy" => %(wot:).freeze,
106
- type: ["owl:FunctionalProperty".freeze, "owl:ObjectProperty".freeze],
107
- "vs:term_status" => %(testing).freeze
108
- property :length,
109
- comment: %(A numeric string representing the length, in bytes, of a public key.).freeze,
110
- domain: "wot:PubKey".freeze,
111
- label: "Length".freeze,
112
- range: "xsd:integer".freeze,
113
- "rdfs:isDefinedBy" => %(wot:).freeze,
114
- type: "owl:DatatypeProperty".freeze,
115
- "vs:term_status" => %(stable).freeze
116
- property :pubkeyAddress,
117
- comment: %(The location of an ascii version of a public key.).freeze,
118
- domain: "wot:PubKey".freeze,
119
- label: "Address".freeze,
120
- range: "foaf:Document".freeze,
121
- "rdfs:isDefinedBy" => %(wot:).freeze,
122
- type: "owl:ObjectProperty".freeze,
123
- "vs:term_status" => %(testing).freeze
124
- property :sigdate,
125
- comment: %(The date of a public key signature event.).freeze,
126
- domain: "wot:SigEvent".freeze,
127
- label: "Signature date".freeze,
128
- range: "xsd:date".freeze,
129
- "rdfs:isDefinedBy" => %(wot:).freeze,
130
- type: "owl:DatatypeProperty".freeze,
131
- "vs:term_status" => %(testing).freeze
132
- property :signed,
133
- comment: %(A property linking a public key to a public key signature event.).freeze,
134
- domain: "wot:PubKey".freeze,
135
- label: "Signed".freeze,
136
- range: "wot:SigEvent".freeze,
137
- "rdfs:isDefinedBy" => %(wot:).freeze,
138
- type: "owl:ObjectProperty".freeze,
139
- "vs:term_status" => %(testing).freeze
140
- property :signer,
141
- comment: %(A property linking a public key signature event to the public key that was used to sign.).freeze,
142
- domain: "wot:SigEvent".freeze,
143
- label: "Signer".freeze,
144
- range: "wot:PubKey".freeze,
145
- "rdfs:isDefinedBy" => %(wot:).freeze,
146
- type: ["owl:FunctionalProperty".freeze, "owl:ObjectProperty".freeze],
147
- "vs:term_status" => %(unstable).freeze
148
- property :sigtime,
149
- comment: %(The time \(of day\) of a public key signature event.).freeze,
150
- domain: "wot:SigEvent".freeze,
151
- label: "Signature time".freeze,
152
- range: "xsd:time".freeze,
153
- "rdfs:isDefinedBy" => %(wot:).freeze,
154
- type: "owl:DatatypeProperty".freeze,
155
- "vs:term_status" => %(unstable).freeze
156
-
157
- # Extra definitions
158
- term :"",
159
- "dc11:date" => %(2004-02-23).freeze,
160
- "dc11:description" => %(Web Of Trust \(wot\) RDF vocabulary, described using W3C RDF Schema and the Web Ontology Language.).freeze,
161
- "dc11:title" => %(Web Of Trust vocabulary).freeze,
162
- label: "".freeze,
163
- "owl:imports" => [%(http://www.w3.org/2000/01/rdf-schema).freeze, %(http://www.w3.org/2002/07/owl).freeze],
164
- "rdfs:seeAlso" => %(foaf:).freeze,
165
- type: "owl:Ontology".freeze
166
- end
167
- end
@@ -1,8 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://www.w3.org/1999/xhtml#
3
- require 'rdf'
4
- module RDF
5
- # @deprecated Please use `RDF::Vocab::XHTML` from the rdf-vocab gem instead
6
- class XHTML < RDF::Vocabulary("http://www.w3.org/1999/xhtml#")
7
- end
8
- end
@@ -1,505 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://www.w3.org/1999/xhtml/vocab#
3
- require 'rdf'
4
- module RDF
5
- # @deprecated Please use `RDF::Vocab::XHV` from the rdf-vocab gem instead
6
- class XHV < RDF::Vocabulary("http://www.w3.org/1999/xhtml/vocab#")
7
-
8
- # Property definitions
9
- property :alert,
10
- comment: %(A message
11
- with important, and usually time-sensitive, information. Also see
12
- alertdialog and status.).freeze,
13
- label: "alert".freeze,
14
- type: "rdf:Property".freeze
15
- property :alertdialog,
16
- comment: %(A
17
- type of dialog that contains an alert message, where initial focus goes
18
- to the dialog or an element within it. Also see alert and dialog.).freeze,
19
- label: "alertdialog".freeze,
20
- type: "rdf:Property".freeze
21
- property :alternate,
22
- comment: %(alternate designates alternate
23
- versions for a resource.).freeze,
24
- label: "alternate".freeze,
25
- "rdfs:member" => %(xhv:relrev-properties).freeze,
26
- type: "rdf:Property".freeze
27
- property :appendix,
28
- comment: %(appendix refers to a resource serving
29
- as an appendix in a collection. ).freeze,
30
- label: "appendix".freeze,
31
- "rdfs:member" => %(xhv:relrev-properties).freeze,
32
- type: "rdf:Property".freeze
33
- property :application,
34
- comment: %(A
35
- region declared as a web application, as opposed to a web document.).freeze,
36
- label: "application".freeze,
37
- type: "rdf:Property".freeze
38
- property :article,
39
- comment: %(A
40
- section of a page consisting of an independent part of a document, page,
41
- or site.).freeze,
42
- label: "article".freeze,
43
- type: "rdf:Property".freeze
44
- property :banner,
45
- comment: %(banner contains the prime heading or
46
- internal title of a page. ).freeze,
47
- label: "banner".freeze,
48
- "rdfs:member" => %(xhv:role-properties).freeze,
49
- type: "rdf:Property".freeze
50
- property :bookmark,
51
- comment: %(bookmark refers to a bookmark - a link
52
- to a key entry point within an extended document. ).freeze,
53
- label: "bookmark".freeze,
54
- "rdfs:member" => %(xhv:relrev-properties).freeze,
55
- type: "rdf:Property".freeze
56
- property :button,
57
- comment: %(An input
58
- that allows for user-triggered actions when clicked or pressed.).freeze,
59
- label: "button".freeze,
60
- type: "rdf:Property".freeze
61
- property :chapter,
62
- comment: %(chapter refers to a resource serving
63
- as a chapter in a collction. ).freeze,
64
- label: "chapter".freeze,
65
- "rdfs:member" => %(xhv:relrev-properties).freeze,
66
- type: "rdf:Property".freeze
67
- property :checkbox,
68
- comment: %(An
69
- checkable input that has three possible values: true, false, or
70
- mixed.).freeze,
71
- label: "checkbox".freeze,
72
- type: "rdf:Property".freeze
73
- property :cite,
74
- comment: %(cite refers to a resource that defines
75
- a citation. ).freeze,
76
- label: "cite".freeze,
77
- "rdfs:member" => %(xhv:relrev-properties).freeze,
78
- type: "rdf:Property".freeze
79
- property :columnheader,
80
- comment: %(A
81
- cell containing header information for a column.).freeze,
82
- label: "columnheader".freeze,
83
- type: "rdf:Property".freeze
84
- property :combobox,
85
- comment: %(A
86
- presentation of a select; usually similar to a textbox where users can
87
- type ahead to select an option, or type to enter arbitrary text as a new
88
- item in the list.).freeze,
89
- label: "combobox".freeze,
90
- type: "rdf:Property".freeze
91
- property :complementary,
92
- comment: %(secondary indicates that the section
93
- supports but is separable from the main content of resource.).freeze,
94
- label: "complementary".freeze,
95
- "rdfs:member" => %(xhv:role-properties).freeze,
96
- type: "rdf:Property".freeze
97
- property :contentinfo,
98
- comment: %(contentinfo has meta information about
99
- the content on the page or the page as a whole.).freeze,
100
- label: "contentinfo".freeze,
101
- "rdfs:member" => %(xhv:role-properties).freeze,
102
- type: "rdf:Property".freeze
103
- property :contents,
104
- comment: %(contents refers to a resource serving
105
- as a table of contents. ).freeze,
106
- label: "contents".freeze,
107
- "rdfs:member" => %(xhv:relrev-properties).freeze,
108
- type: "rdf:Property".freeze
109
- property :copyright,
110
- comment: %(copyright refers to a copyright
111
- statement for the resource. ).freeze,
112
- label: "copyright".freeze,
113
- "rdfs:member" => %(xhv:relrev-properties).freeze,
114
- type: "rdf:Property".freeze
115
- property :definition,
116
- comment: %(definition indicates the definition of
117
- a term or concept.).freeze,
118
- label: "definition".freeze,
119
- "rdfs:member" => %(xhv:role-properties).freeze,
120
- type: "rdf:Property".freeze
121
- property :dialog,
122
- comment: %(A dialog
123
- is an application window that is designed to interrupt the current
124
- processing of an application in order to prompt the user to enter
125
- information or require a response. Also see alertdialog.).freeze,
126
- label: "dialog".freeze,
127
- type: "rdf:Property".freeze
128
- property :directory,
129
- comment: %(A list
130
- of references to members of a group, such as a static table of
131
- contents.).freeze,
132
- label: "directory".freeze,
133
- type: "rdf:Property".freeze
134
- property :document,
135
- comment: %(A
136
- region containing related information that is declared as document
137
- content, as opposed to a web application.).freeze,
138
- label: "document".freeze,
139
- type: "rdf:Property".freeze
140
- property :first,
141
- comment: %(first refers the first item in a
142
- collection \(see also start and top\).).freeze,
143
- label: "first".freeze,
144
- "rdfs:member" => %(xhv:relrev-properties).freeze,
145
- type: "rdf:Property".freeze
146
- property :glossary,
147
- comment: %(glossary refers to a resource
148
- providing a glossary of terms. ).freeze,
149
- label: "glossary".freeze,
150
- "rdfs:member" => %(xhv:relrev-properties).freeze,
151
- type: "rdf:Property".freeze
152
- property :grid,
153
- comment: %(A grid
154
- contains cells of tabular data arranged in rows and columns, like a
155
- table.).freeze,
156
- label: "grid".freeze,
157
- type: "rdf:Property".freeze
158
- property :gridcell,
159
- comment: %(A cell
160
- in a grid or treegrid.).freeze,
161
- label: "gridcell".freeze,
162
- type: "rdf:Property".freeze
163
- property :group,
164
- comment: %(A set of
165
- user interface objects which would not be included in a page summary or
166
- table of contents by an assistive technology.).freeze,
167
- label: "group".freeze,
168
- type: "rdf:Property".freeze
169
- property :heading,
170
- comment: %(A
171
- heading for a section of the page.).freeze,
172
- label: "heading".freeze,
173
- type: "rdf:Property".freeze
174
- property :help,
175
- comment: %(help refers to a resource offering
176
- help. ).freeze,
177
- label: "help".freeze,
178
- "rdfs:member" => %(xhv:relrev-properties).freeze,
179
- type: "rdf:Property".freeze
180
- property :icon,
181
- comment: %(icon refers to a resource that
182
- represents an icon. ).freeze,
183
- label: "icon".freeze,
184
- "rdfs:member" => %(xhv:relrev-properties).freeze,
185
- type: "rdf:Property".freeze
186
- property :img,
187
- comment: %(A container
188
- for a collection of elements that form an image.).freeze,
189
- label: "img".freeze,
190
- type: "rdf:Property".freeze
191
- property :index,
192
- comment: %(index refers to a resource providing
193
- an index. ).freeze,
194
- label: "index".freeze,
195
- "rdfs:member" => %(xhv:relrev-properties).freeze,
196
- type: "rdf:Property".freeze
197
- property :itsRules,
198
- comment: %(itsRules indicates that the designated
199
- resource is an [ITS] rule set.).freeze,
200
- label: "itsRules".freeze,
201
- "rdfs:member" => %(xhv:relrev-properties).freeze,
202
- type: "rdf:Property".freeze
203
- property :last,
204
- comment: %(last refers to the last resource in a
205
- collection of resources. ).freeze,
206
- label: "last".freeze,
207
- "rdfs:member" => %(xhv:relrev-properties).freeze,
208
- type: "rdf:Property".freeze
209
- property :license,
210
- comment: %(license refers to a resource that
211
- defines the associated license. ).freeze,
212
- label: "license".freeze,
213
- "rdfs:member" => %(xhv:relrev-properties).freeze,
214
- type: "rdf:Property".freeze
215
- property :link,
216
- comment: %(An
217
- interactive reference to an internal or external resource.).freeze,
218
- label: "link".freeze,
219
- type: "rdf:Property".freeze
220
- property :list,
221
- comment: %(A group of
222
- non-interactive list items.).freeze,
223
- label: "list".freeze,
224
- type: "rdf:Property".freeze
225
- property :listbox,
226
- comment: %(A widget
227
- that allows the user to select one or more items from a list of
228
- choices.).freeze,
229
- label: "listbox".freeze,
230
- type: "rdf:Property".freeze
231
- property :listitem,
232
- comment: %(A
233
- single item in a list, listbox, or directory.).freeze,
234
- label: "listitem".freeze,
235
- type: "rdf:Property".freeze
236
- property :log,
237
- comment: %(A type of
238
- live region where new information is added in meaningful order and old
239
- information may disappear. Also see marquee.).freeze,
240
- label: "log".freeze,
241
- type: "rdf:Property".freeze
242
- property :main,
243
- comment: %(main acts as the main content of the
244
- document. ).freeze,
245
- label: "main".freeze,
246
- "rdfs:member" => %(xhv:role-properties).freeze,
247
- type: "rdf:Property".freeze
248
- property :marquee,
249
- comment: %(A type
250
- of live region where non-essential information changes frequently. Also
251
- see log.).freeze,
252
- label: "marquee".freeze,
253
- type: "rdf:Property".freeze
254
- property :math,
255
- comment: %(An element
256
- that represents a mathematical expression.).freeze,
257
- label: "math".freeze,
258
- type: "rdf:Property".freeze
259
- property :menu,
260
- comment: %(A type of
261
- widget that offers a list of choices to the user.).freeze,
262
- label: "menu".freeze,
263
- type: "rdf:Property".freeze
264
- property :menubar,
265
- comment: %(A
266
- presentation of menu that usually remains visible and is usually
267
- presented horizontally.).freeze,
268
- label: "menubar".freeze,
269
- type: "rdf:Property".freeze
270
- property :menuitem,
271
- comment: %(An
272
- option in a group of choices contained by a menu or menubar.).freeze,
273
- label: "menuitem".freeze,
274
- type: "rdf:Property".freeze
275
- property :menuitemcheckbox,
276
- comment: %(A checkable menuitem that has three possible
277
- values: true, false, or mixed.).freeze,
278
- label: "menuitemcheckbox".freeze,
279
- type: "rdf:Property".freeze
280
- property :menuitemradio,
281
- comment: %(A
282
- checkable menuitem in a group of menuitemradio roles, only one of which
283
- can be checked at a time.).freeze,
284
- label: "menuitemradio".freeze,
285
- type: "rdf:Property".freeze
286
- property :meta,
287
- comment: %(meta refers to a resource that
288
- provides metadata. ).freeze,
289
- label: "meta".freeze,
290
- "rdfs:member" => %(xhv:relrev-properties).freeze,
291
- type: "rdf:Property".freeze
292
- property :navigation,
293
- comment: %(navigation indicates a collection of
294
- items suitable for navigating the document or related documents.).freeze,
295
- label: "navigation".freeze,
296
- "rdfs:member" => %(xhv:role-properties).freeze,
297
- type: "rdf:Property".freeze
298
- property :next,
299
- comment: %(next refers to the next resource
300
- \(after the current one\) in an ordered collection of resources. ).freeze,
301
- label: "next".freeze,
302
- "rdfs:member" => %(xhv:relrev-properties).freeze,
303
- type: "rdf:Property".freeze
304
- property :note,
305
- comment: %(note indicates the content is
306
- parenthetic or ancillary to the main content of the resource. ).freeze,
307
- label: "note".freeze,
308
- "rdfs:member" => %(xhv:role-properties).freeze,
309
- type: "rdf:Property".freeze
310
- property :option,
311
- comment: %(A
312
- selectable item in a select list.).freeze,
313
- label: "option".freeze,
314
- type: "rdf:Property".freeze
315
- property :p3pv1,
316
- comment: %(p3pv1 refers to a P3P Policy Reference
317
- File [P3P]. ).freeze,
318
- label: "p3pv1".freeze,
319
- "rdfs:member" => %(xhv:relrev-properties).freeze,
320
- type: "rdf:Property".freeze
321
- property :presentation,
322
- comment: %(An
323
- element whose role is presentational and does not need to be mapped to
324
- the accessibility API.).freeze,
325
- label: "presentation".freeze,
326
- type: "rdf:Property".freeze
327
- property :prev,
328
- comment: %(prev refers to a previous resource
329
- \(before the current one\) in an ordered collection of resources. ).freeze,
330
- label: "prev".freeze,
331
- "rdfs:member" => %(xhv:relrev-properties).freeze,
332
- type: "rdf:Property".freeze
333
- property :progressbar,
334
- comment: %(An
335
- element that displays the progress status for tasks that take a long
336
- time.).freeze,
337
- label: "progressbar".freeze,
338
- type: "rdf:Property".freeze
339
- property :radio,
340
- comment: %(A
341
- checkable input in a group of radio roles, only one of which can be
342
- checked at a time.).freeze,
343
- label: "radio".freeze,
344
- type: "rdf:Property".freeze
345
- property :radiogroup,
346
- comment: %(A
347
- group of radio buttons.).freeze,
348
- label: "radiogroup".freeze,
349
- type: "rdf:Property".freeze
350
- property :region,
351
- comment: %(A large
352
- perceivable section of a web page or document, that the author feels
353
- should be included in a summary of page features.).freeze,
354
- label: "region".freeze,
355
- type: "rdf:Property".freeze
356
- property :role,
357
- comment: %(role indicates the purpose of the
358
- resource. See the XHTML Role
359
- Vocabulary for roles in this vocabulary space, and XHTMLROLE for information on extending the
360
- collection of roles. ).freeze,
361
- label: "role".freeze,
362
- "rdfs:member" => %(xhv:relrev-properties).freeze,
363
- type: ["rdf:Bag".freeze, "rdf:Property".freeze]
364
- property :row,
365
- comment: %(A row of
366
- cells in a grid.).freeze,
367
- label: "row".freeze,
368
- type: "rdf:Property".freeze
369
- property :rowheader,
370
- comment: %(A cell
371
- containing header information for a row in a grid.).freeze,
372
- label: "rowheader".freeze,
373
- type: "rdf:Property".freeze
374
- property :search,
375
- comment: %(search indicates that the section
376
- provides a search facility. ).freeze,
377
- label: "search".freeze,
378
- "rdfs:member" => %(xhv:role-properties).freeze,
379
- type: "rdf:Property".freeze
380
- property :section,
381
- comment: %(section refers to a resource serving
382
- as a section in a collection. ).freeze,
383
- label: "section".freeze,
384
- "rdfs:member" => %(xhv:relrev-properties).freeze,
385
- type: "rdf:Property".freeze
386
- property :separator,
387
- comment: %(A
388
- divider that separates and distinguishes sections of content or groups of
389
- menuitems.).freeze,
390
- label: "separator".freeze,
391
- type: "rdf:Property".freeze
392
- property :slider,
393
- comment: %(A user
394
- input where the user selects a value from within a given range.).freeze,
395
- label: "slider".freeze,
396
- type: "rdf:Property".freeze
397
- property :spinbutton,
398
- comment: %(A
399
- form of range that expects a user to select from amongst discrete
400
- choices.).freeze,
401
- label: "spinbutton".freeze,
402
- type: "rdf:Property".freeze
403
- property :start,
404
- comment: %(start refers to the first resource in
405
- a collection of resources. ).freeze,
406
- label: "start".freeze,
407
- "rdfs:member" => %(xhv:relrev-properties).freeze,
408
- type: "rdf:Property".freeze
409
- property :status,
410
- comment: %(A
411
- container whose content is advisory information for the user but is not
412
- important enough to justify an alert. Also see alert.).freeze,
413
- label: "status".freeze,
414
- type: "rdf:Property".freeze
415
- property :stylesheet,
416
- comment: %(stylesheet refers to a resource
417
- serving as a stylesheet for a resource. ).freeze,
418
- label: "stylesheet".freeze,
419
- "rdfs:member" => %(xhv:relrev-properties).freeze,
420
- type: "rdf:Property".freeze
421
- property :subsection,
422
- comment: %(subsection refers to a resource
423
- serving as a subsection in a collection. ).freeze,
424
- label: "subsection".freeze,
425
- "rdfs:member" => %(xhv:relrev-properties).freeze,
426
- type: "rdf:Property".freeze
427
- property :tab,
428
- comment: %(A header for
429
- a tabpanel.).freeze,
430
- label: "tab".freeze,
431
- type: "rdf:Property".freeze
432
- property :tablist,
433
- comment: %(A list
434
- of tab elements, which are references to tabpanel elements.).freeze,
435
- label: "tablist".freeze,
436
- type: "rdf:Property".freeze
437
- property :tabpanel,
438
- comment: %(A
439
- container for the resources associated with a tab.).freeze,
440
- label: "tabpanel".freeze,
441
- type: "rdf:Property".freeze
442
- property :textbox,
443
- comment: %(Input
444
- that allows free-form text as their value.).freeze,
445
- label: "textbox".freeze,
446
- type: "rdf:Property".freeze
447
- property :timer,
448
- comment: %(A
449
- numerical counter which indicates an amount of elapsed time from a start
450
- point, or the time remaining until an end point.).freeze,
451
- label: "timer".freeze,
452
- type: "rdf:Property".freeze
453
- property :toolbar,
454
- comment: %(A
455
- collection of commonly used function buttons represented in compact
456
- visual form.).freeze,
457
- label: "toolbar".freeze,
458
- type: "rdf:Property".freeze
459
- property :tooltip,
460
- comment: %(A
461
- contextual popup that displays a description for an element in a mouse
462
- hover or keyboard focused state. Supplement to the normal tooltip
463
- processing of the user agent.).freeze,
464
- label: "tooltip".freeze,
465
- type: "rdf:Property".freeze
466
- property :top,
467
- comment: %(top is a synonym for start. ).freeze,
468
- label: "top".freeze,
469
- "rdfs:member" => %(xhv:relrev-properties).freeze,
470
- type: "rdf:Property".freeze
471
- property :tree,
472
- comment: %(A type of
473
- list that may contain sub-level nested groups that can be collapsed and
474
- expanded.).freeze,
475
- label: "tree".freeze,
476
- type: "rdf:Property".freeze
477
- property :treegrid,
478
- comment: %(A grid
479
- whose rows can be expanded and collapsed in the same manner as for a
480
- tree.).freeze,
481
- label: "treegrid".freeze,
482
- type: "rdf:Property".freeze
483
- property :treeitem,
484
- comment: %(An
485
- option item of a tree. This is an element within a tree that may be
486
- expanded or collapsed if it contains a sub-level group of treeitems.).freeze,
487
- label: "treeitem".freeze,
488
- type: "rdf:Property".freeze
489
- property :up,
490
- comment: %(up refers to a resource "above" in a
491
- hierarchically structured set. ).freeze,
492
- label: "up".freeze,
493
- "rdfs:member" => %(xhv:relrev-properties).freeze,
494
- type: "rdf:Property".freeze
495
-
496
- # Extra definitions
497
- term :"relrev-properties",
498
- label: "relrev-properties".freeze,
499
- "rdfs:member" => %(xhv:role-properties).freeze,
500
- type: "rdf:Bag".freeze
501
- term :"role-properties",
502
- label: "role-properties".freeze,
503
- type: ["rdf:Bag".freeze, "rdfs:member".freeze]
504
- end
505
- end