rdf 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS +1 -0
  3. data/VERSION +1 -1
  4. data/lib/rdf.rb +10 -48
  5. data/lib/rdf/cli/vocab-loader.rb +78 -142
  6. data/lib/rdf/mixin/enumerable.rb +25 -0
  7. data/lib/rdf/mixin/mutable.rb +3 -0
  8. data/lib/rdf/model/graph.rb +1 -1
  9. data/lib/rdf/model/node.rb +25 -2
  10. data/lib/rdf/model/statement.rb +20 -12
  11. data/lib/rdf/model/uri.rb +11 -2
  12. data/lib/rdf/nquads.rb +8 -6
  13. data/lib/rdf/ntriples/writer.rb +14 -10
  14. data/lib/rdf/query/pattern.rb +10 -8
  15. data/lib/rdf/reader.rb +11 -2
  16. data/lib/rdf/repository.rb +1 -1
  17. data/lib/rdf/vocab.rb +396 -96
  18. data/lib/rdf/vocab/cc.rb +117 -25
  19. data/lib/rdf/vocab/cert.rb +230 -117
  20. data/lib/rdf/vocab/dc.rb +930 -233
  21. data/lib/rdf/vocab/dc11.rb +151 -37
  22. data/lib/rdf/vocab/doap.rb +326 -114
  23. data/lib/rdf/vocab/exif.rb +930 -533
  24. data/lib/rdf/vocab/foaf.rb +602 -346
  25. data/lib/rdf/vocab/geo.rb +139 -33
  26. data/lib/rdf/vocab/gr.rb +1551 -1084
  27. data/lib/rdf/vocab/ht.rb +319 -0
  28. data/lib/rdf/vocab/ical.rb +507 -349
  29. data/lib/rdf/vocab/ma.rb +504 -280
  30. data/lib/rdf/vocab/mo.rb +2425 -876
  31. data/lib/rdf/vocab/og.rb +178 -90
  32. data/lib/rdf/vocab/owl.rb +513 -219
  33. data/lib/rdf/vocab/prov.rb +1557 -479
  34. data/lib/rdf/vocab/rdfs.rb +107 -31
  35. data/lib/rdf/vocab/rdfv.rb +165 -0
  36. data/lib/rdf/vocab/rsa.rb +61 -18
  37. data/lib/rdf/vocab/rss.rb +55 -22
  38. data/lib/rdf/vocab/schema.rb +8590 -3995
  39. data/lib/rdf/vocab/sioc.rb +657 -218
  40. data/lib/rdf/vocab/skos.rb +227 -134
  41. data/lib/rdf/vocab/skosxl.rb +47 -33
  42. data/lib/rdf/vocab/vcard.rb +693 -327
  43. data/lib/rdf/vocab/void.rb +175 -132
  44. data/lib/rdf/vocab/vs.rb +27 -0
  45. data/lib/rdf/vocab/wdrs.rb +123 -119
  46. data/lib/rdf/vocab/wot.rb +155 -45
  47. data/lib/rdf/vocab/xhtml.rb +2 -1
  48. data/lib/rdf/vocab/xhv.rb +496 -231
  49. data/lib/rdf/vocab/xsd.rb +382 -53
  50. data/lib/rdf/writer.rb +8 -4
  51. metadata +5 -4
  52. data/lib/rdf/vocab/http.rb +0 -84
  53. data/lib/rdf/vocab/v.rb +0 -154
@@ -1,41 +1,117 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  # This file generated automatically using vocab-fetch from http://www.w3.org/2000/01/rdf-schema#
2
3
  require 'rdf'
3
4
  module RDF
4
5
  class RDFS < StrictVocabulary("http://www.w3.org/2000/01/rdf-schema#")
5
6
 
6
7
  # Class definitions
7
- property :Class, :label => 'Class', :comment =>
8
- %(The class of classes.)
9
- property :Container, :label => 'Container', :comment =>
10
- %(The class of RDF containers.)
11
- property :ContainerMembershipProperty, :label => 'ContainerMembershipProperty', :comment =>
12
- %(The class of container membership properties, rdf:_1, rdf:_2,
13
- ..., all of which are sub-properties of 'member'.)
14
- property :Datatype, :label => 'Datatype', :comment =>
15
- %(The class of RDF datatypes.)
16
- property :Literal, :label => 'Literal', :comment =>
17
- %(The class of literal values, eg. textual strings and integers.)
18
- property :Resource, :label => 'Resource', :comment =>
19
- %(The class resource, everything.)
8
+ term :Class,
9
+ comment: %(The class of classes.).freeze,
10
+ label: "Class".freeze,
11
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
12
+ subClassOf: "rdfs:Resource".freeze,
13
+ type: "rdfs:Class".freeze
14
+ term :Container,
15
+ comment: %(The class of RDF containers.).freeze,
16
+ label: "Container".freeze,
17
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
18
+ subClassOf: "rdfs:Resource".freeze,
19
+ type: "rdfs:Class".freeze
20
+ term :ContainerMembershipProperty,
21
+ comment: %(The class of container membership properties, rdf:_1, rdf:_2, ...,
22
+ all of which are sub-properties of 'member'.).freeze,
23
+ label: "ContainerMembershipProperty".freeze,
24
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
25
+ subClassOf: "rdf:Property".freeze,
26
+ type: "rdfs:Class".freeze
27
+ term :Datatype,
28
+ comment: %(The class of RDF datatypes.).freeze,
29
+ label: "Datatype".freeze,
30
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
31
+ subClassOf: "rdfs:Class".freeze,
32
+ type: "rdfs:Class".freeze
33
+ term :Literal,
34
+ comment: %(The class of literal values, eg. textual strings and integers.).freeze,
35
+ label: "Literal".freeze,
36
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
37
+ subClassOf: "rdfs:Resource".freeze,
38
+ type: "rdfs:Class".freeze
39
+ term :Resource,
40
+ comment: %(The class resource, everything.).freeze,
41
+ label: "Resource".freeze,
42
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
43
+ type: "rdfs:Class".freeze
20
44
 
21
45
  # Property definitions
22
- property :comment, :label => 'comment', :comment =>
23
- %(A description of the subject resource.)
24
- property :domain, :label => 'domain', :comment =>
25
- %(A domain of the subject property.)
26
- property :isDefinedBy, :label => 'isDefinedBy', :comment =>
27
- %(The defininition of the subject resource.)
28
- property :label, :label => 'label', :comment =>
29
- %(A human-readable name for the subject.)
30
- property :member, :label => 'member', :comment =>
31
- %(A member of the subject resource.)
32
- property :range, :label => 'range', :comment =>
33
- %(A range of the subject property.)
34
- property :seeAlso, :label => 'seeAlso', :comment =>
35
- %(Further information about the subject resource.)
36
- property :subClassOf, :label => 'subClassOf', :comment =>
37
- %(The subject is a subclass of a class.)
38
- property :subPropertyOf, :label => 'subPropertyOf', :comment =>
39
- %(The subject is a subproperty of a property.)
46
+ property :comment,
47
+ comment: %(A description of the subject resource.).freeze,
48
+ domain: "rdfs:Resource".freeze,
49
+ label: "comment".freeze,
50
+ range: "rdfs:Literal".freeze,
51
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
52
+ type: "rdf:Property".freeze
53
+ property :domain,
54
+ comment: %(A domain of the subject property.).freeze,
55
+ domain: "rdf:Property".freeze,
56
+ label: "domain".freeze,
57
+ range: "rdfs:Class".freeze,
58
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
59
+ type: "rdf:Property".freeze
60
+ property :isDefinedBy,
61
+ comment: %(The defininition of the subject resource.).freeze,
62
+ domain: "rdfs:Resource".freeze,
63
+ label: "isDefinedBy".freeze,
64
+ range: "rdfs:Resource".freeze,
65
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
66
+ subPropertyOf: "rdfs:seeAlso".freeze,
67
+ type: "rdf:Property".freeze
68
+ property :label,
69
+ comment: %(A human-readable name for the subject.).freeze,
70
+ domain: "rdfs:Resource".freeze,
71
+ label: "label".freeze,
72
+ range: "rdfs:Literal".freeze,
73
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
74
+ type: "rdf:Property".freeze
75
+ property :member,
76
+ comment: %(A member of the subject resource.).freeze,
77
+ domain: "rdfs:Resource".freeze,
78
+ label: "member".freeze,
79
+ range: "rdfs:Resource".freeze,
80
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
81
+ type: "rdf:Property".freeze
82
+ property :range,
83
+ comment: %(A range of the subject property.).freeze,
84
+ domain: "rdf:Property".freeze,
85
+ label: "range".freeze,
86
+ range: "rdfs:Class".freeze,
87
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
88
+ type: "rdf:Property".freeze
89
+ property :seeAlso,
90
+ comment: %(Further information about the subject resource.).freeze,
91
+ domain: "rdfs:Resource".freeze,
92
+ label: "seeAlso".freeze,
93
+ range: "rdfs:Resource".freeze,
94
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
95
+ type: "rdf:Property".freeze
96
+ property :subClassOf,
97
+ comment: %(The subject is a subclass of a class.).freeze,
98
+ domain: "rdfs:Class".freeze,
99
+ label: "subClassOf".freeze,
100
+ range: "rdfs:Class".freeze,
101
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
102
+ type: "rdf:Property".freeze
103
+ property :subPropertyOf,
104
+ comment: %(The subject is a subproperty of a property.).freeze,
105
+ domain: "rdf:Property".freeze,
106
+ label: "subPropertyOf".freeze,
107
+ range: "rdf:Property".freeze,
108
+ "rdfs:isDefinedBy" => %(rdfs:).freeze,
109
+ type: "rdf:Property".freeze
110
+
111
+ # Extra definitions
112
+ term :"",
113
+ "dc11:title" => %(The RDF Schema vocabulary \(RDFS\)).freeze,
114
+ "rdfs:seeAlso" => %(http://www.w3.org/2000/01/rdf-schema-more).freeze,
115
+ type: "owl:Ontology".freeze
40
116
  end
41
117
  end
@@ -0,0 +1,165 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # This file generated automatically using vocab-fetch from http://www.w3.org/1999/02/22-rdf-syntax-ns#
3
+ require 'rdf'
4
+ module RDF
5
+ class RDFV < StrictVocabulary("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
6
+
7
+ class << self
8
+ def name; "RDF"; end
9
+ alias_method :__name__, :name
10
+ end
11
+
12
+ # Class definitions
13
+ term :Alt,
14
+ comment: %(The class of containers of alternatives.).freeze,
15
+ label: "Alt".freeze,
16
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
17
+ subClassOf: "rdfs:Container".freeze,
18
+ type: "rdfs:Class".freeze
19
+ term :Bag,
20
+ comment: %(The class of unordered containers.).freeze,
21
+ label: "Bag".freeze,
22
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
23
+ subClassOf: "rdfs:Container".freeze,
24
+ type: "rdfs:Class".freeze
25
+ term :List,
26
+ comment: %(The class of RDF Lists.).freeze,
27
+ label: "List".freeze,
28
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
29
+ subClassOf: "rdfs:Resource".freeze,
30
+ type: "rdfs:Class".freeze
31
+ term :Property,
32
+ comment: %(The class of RDF properties.).freeze,
33
+ label: "Property".freeze,
34
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
35
+ subClassOf: "rdfs:Resource".freeze,
36
+ type: "rdfs:Class".freeze
37
+ term :Seq,
38
+ comment: %(The class of ordered containers.).freeze,
39
+ label: "Seq".freeze,
40
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
41
+ subClassOf: "rdfs:Container".freeze,
42
+ type: "rdfs:Class".freeze
43
+ term :Statement,
44
+ comment: %(The class of RDF statements.).freeze,
45
+ label: "Statement".freeze,
46
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
47
+ subClassOf: "rdfs:Resource".freeze,
48
+ type: "rdfs:Class".freeze
49
+
50
+ # Property definitions
51
+ property :first,
52
+ comment: %(The first item in the subject RDF list.).freeze,
53
+ domain: "rdf:List".freeze,
54
+ label: "first".freeze,
55
+ range: "rdfs:Resource".freeze,
56
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
57
+ type: "rdf:Property".freeze
58
+ property :object,
59
+ comment: %(The object of the subject RDF statement.).freeze,
60
+ domain: "rdf:Statement".freeze,
61
+ label: "object".freeze,
62
+ range: "rdfs:Resource".freeze,
63
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
64
+ type: "rdf:Property".freeze
65
+ property :predicate,
66
+ comment: %(The predicate of the subject RDF statement.).freeze,
67
+ domain: "rdf:Statement".freeze,
68
+ label: "predicate".freeze,
69
+ range: "rdfs:Resource".freeze,
70
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
71
+ type: "rdf:Property".freeze
72
+ property :rest,
73
+ comment: %(The rest of the subject RDF list after the first item.).freeze,
74
+ domain: "rdf:List".freeze,
75
+ label: "rest".freeze,
76
+ range: "rdf:List".freeze,
77
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
78
+ type: "rdf:Property".freeze
79
+ property :subject,
80
+ comment: %(The subject of the subject RDF statement.).freeze,
81
+ domain: "rdf:Statement".freeze,
82
+ label: "subject".freeze,
83
+ range: "rdfs:Resource".freeze,
84
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
85
+ type: "rdf:Property".freeze
86
+ property :type,
87
+ comment: %(The subject is an instance of a class.).freeze,
88
+ domain: "rdfs:Resource".freeze,
89
+ label: "type".freeze,
90
+ range: "rdfs:Class".freeze,
91
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
92
+ type: "rdf:Property".freeze
93
+ property :value,
94
+ comment: %(Idiomatic property used for structured values.).freeze,
95
+ domain: "rdfs:Resource".freeze,
96
+ label: "value".freeze,
97
+ range: "rdfs:Resource".freeze,
98
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
99
+ type: "rdf:Property".freeze
100
+
101
+ # Datatype definitions
102
+ term :HTML,
103
+ comment: %(The datatype of RDF literals storing fragments of HTML content).freeze,
104
+ label: "HTML".freeze,
105
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
106
+ "rdfs:seeAlso" => %(http://www.w3.org/TR/rdf11-concepts/#section-html).freeze,
107
+ subClassOf: "rdfs:Literal".freeze,
108
+ type: "rdfs:Datatype".freeze
109
+ term :PlainLiteral,
110
+ comment: %(The class of plain \(i.e. untyped\) literal values, as used in RIF and OWL 2).freeze,
111
+ label: "PlainLiteral".freeze,
112
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
113
+ "rdfs:seeAlso" => %(http://www.w3.org/TR/rdf-plain-literal/).freeze,
114
+ subClassOf: "rdfs:Literal".freeze,
115
+ type: "rdfs:Datatype".freeze
116
+ term :XMLLiteral,
117
+ comment: %(The datatype of XML literal values.).freeze,
118
+ label: "XMLLiteral".freeze,
119
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
120
+ subClassOf: "rdfs:Literal".freeze,
121
+ type: "rdfs:Datatype".freeze
122
+ term :langString,
123
+ comment: %(The datatype of language-tagged string values).freeze,
124
+ label: "langString".freeze,
125
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
126
+ "rdfs:seeAlso" => %(http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal).freeze,
127
+ subClassOf: "rdfs:Literal".freeze,
128
+ type: "rdfs:Datatype".freeze
129
+
130
+ # Extra definitions
131
+ term :"",
132
+ "dc11:description" => %(This is the RDF Schema for the RDF vocabulary terms in the RDF Namespace, defined in RDF 1.1 Concepts.).freeze,
133
+ "dc11:title" => %(The RDF Concepts Vocabulary \(RDF\)).freeze,
134
+ type: "owl:Ontology".freeze
135
+ term :Description,
136
+ comment: %(RDF/XML node element).freeze,
137
+ label: "Description".freeze
138
+ term :ID,
139
+ comment: %(RDF/XML attribute creating a Reification).freeze,
140
+ label: "ID".freeze
141
+ term :about,
142
+ comment: %(RDF/XML attribute declaring subject).freeze,
143
+ label: "about".freeze
144
+ term :datatype,
145
+ comment: %(RDF/XML literal datatype).freeze,
146
+ label: "datatype".freeze
147
+ term :li,
148
+ comment: %(RDF/XML container membership list element).freeze,
149
+ label: "li".freeze
150
+ term :nil,
151
+ comment: %(The empty list, with no items in it. If the rest of a list is nil then the list has no more items in it.).freeze,
152
+ label: "nil".freeze,
153
+ "rdfs:isDefinedBy" => %(rdf:).freeze,
154
+ type: "rdf:List".freeze
155
+ term :nodeID,
156
+ comment: %(RDF/XML Blank Node identifier).freeze,
157
+ label: "nodeID".freeze
158
+ term :parseType,
159
+ comment: %(Parse type for RDF/XML, either Collection, Literal or Resource).freeze,
160
+ label: "parseType".freeze
161
+ term :resource,
162
+ comment: %(RDF/XML attribute declaring object).freeze,
163
+ label: "resource".freeze
164
+ end
165
+ end
data/lib/rdf/vocab/rsa.rb CHANGED
@@ -1,28 +1,71 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  # This file generated automatically using vocab-fetch from http://www.w3.org/ns/auth/rsa#
2
3
  require 'rdf'
3
4
  module RDF
4
5
  class RSA < StrictVocabulary("http://www.w3.org/ns/auth/rsa#")
5
6
 
6
7
  # Class definitions
7
- property :RSAKey, :label => 'RSA Key', :comment =>
8
- %(The union of the public and private components of an RSAKey.
9
- Usually those pieces are not kept together)
10
- property :RSAPrivateKey, :label => 'RSA Private Key', :comment =>
11
- %(A Private Key in the RSA framework)
12
- property :RSAPublicKey, :label => 'RSA Public Key', :comment =>
13
- %(The RSA public key. Padded message m are encrypted by applying
14
- the function modulus\(power\(m,exponent\),modulus\))
8
+ term :RSAKey,
9
+ comment: %(
10
+ The union of the public and private components of an RSAKey.
11
+ Usually those pieces are not kept together
12
+ ).freeze,
13
+ label: "RSA Key".freeze,
14
+ subClassOf: "cert:Key".freeze,
15
+ type: "owl:Class".freeze,
16
+ "vs:term_status" => %(unstable).freeze
17
+ term :RSAPrivateKey,
18
+ comment: %(
19
+ A Private Key in the RSA framework
20
+ ).freeze,
21
+ label: "RSA Private Key".freeze,
22
+ "rdfs:seeAlso" => %(http://en.wikipedia.org/wiki/RSA).freeze,
23
+ subClassOf: "cert:PrivateKey".freeze,
24
+ type: "owl:Class".freeze,
25
+ "vs:term_status" => %(unstable).freeze
26
+ term :RSAPublicKey,
27
+ comment: %(
28
+ The RSA public key. Padded message m are encrypted by applying the function
29
+ modulus\(power\(m,exponent\),modulus\)
30
+ ).freeze,
31
+ label: "RSA Public Key".freeze,
32
+ "rdfs:seeAlso" => %(http://en.wikipedia.org/wiki/RSA).freeze,
33
+ subClassOf: "cert:PublicKey".freeze,
34
+ type: "owl:Class".freeze,
35
+ "vs:term_status" => %(unstable).freeze
15
36
 
16
37
  # Property definitions
17
- property :modulus, :label => 'modulus', :comment =>
18
- %(The modulus of an RSA public and private key. This is defined
19
- as n = p*q)
20
- property :private_exponent, :label => 'private', :comment =>
21
- %(The exponent used to decrypt the message calculated as
22
- public_exponent*private_exponent = 1 modulo totient\(p*q\) The
23
- private exponent is often named 'd')
24
- property :public_exponent, :label => 'public_exponent', :comment =>
25
- %(The exponent used to encrypt the message. Number chosen
26
- between 1 and the totient\(p*q\). Often named 'e' .)
38
+ property :modulus,
39
+ comment: %(
40
+ The modulus of an RSA public and private key.
41
+ This is defined as n = p*q
42
+ ).freeze,
43
+ domain: "rsa:RSAKey".freeze,
44
+ label: "modulus".freeze,
45
+ range: "cert:int".freeze,
46
+ type: "owl:DatatypeProperty".freeze,
47
+ "vs:term_status" => %(unstable).freeze
48
+ property :private_exponent,
49
+ comment: %(
50
+ The exponent used to decrypt the message
51
+ calculated as
52
+ public_exponent*private_exponent = 1 modulo totient\(p*q\)
53
+ The private exponent is often named 'd'
54
+ ).freeze,
55
+ domain: "rsa:RSAPrivateKey".freeze,
56
+ label: "private".freeze,
57
+ range: "cert:int".freeze,
58
+ type: "owl:DatatypeProperty".freeze,
59
+ "vs:term_status" => %(unstable).freeze
60
+ property :public_exponent,
61
+ comment: %(
62
+ The exponent used to encrypt the message. Number chosen between
63
+ 1 and the totient\(p*q\). Often named 'e' .
64
+ ).freeze,
65
+ domain: "rsa:RSAPublicKey".freeze,
66
+ label: "public_exponent".freeze,
67
+ range: "cert:int".freeze,
68
+ type: "owl:DatatypeProperty".freeze,
69
+ "vs:term_status" => %(unstable).freeze
27
70
  end
28
71
  end
data/lib/rdf/vocab/rss.rb CHANGED
@@ -1,32 +1,65 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  # This file generated automatically using vocab-fetch from http://purl.org/rss/1.0/schema.rdf
2
3
  require 'rdf'
3
4
  module RDF
4
5
  class RSS < StrictVocabulary("http://purl.org/rss/1.0/")
5
6
 
6
7
  # Class definitions
7
- property :channel, :label => 'Channel', :comment =>
8
- %(An RSS information channel.)
9
- property :image, :label => 'Image', :comment =>
10
- %(An RSS image.)
11
- property :item, :label => 'Item', :comment =>
12
- %(An RSS item.)
13
- property :textinput, :label => 'Text Input', :comment =>
14
- %(An RSS text input.)
8
+ term :channel,
9
+ comment: %(An RSS information channel.).freeze,
10
+ label: "Channel".freeze,
11
+ "rdfs:isDefinedBy" => %(rss:).freeze,
12
+ type: "rdfs:Class".freeze
13
+ term :image,
14
+ comment: %(An RSS image.).freeze,
15
+ label: "Image".freeze,
16
+ "rdfs:isDefinedBy" => %(rss:).freeze,
17
+ type: "rdfs:Class".freeze
18
+ term :item,
19
+ comment: %(An RSS item.).freeze,
20
+ label: "Item".freeze,
21
+ "rdfs:isDefinedBy" => %(rss:).freeze,
22
+ type: "rdfs:Class".freeze
23
+ term :textinput,
24
+ comment: %(An RSS text input.).freeze,
25
+ label: "Text Input".freeze,
26
+ "rdfs:isDefinedBy" => %(rss:).freeze,
27
+ type: "rdfs:Class".freeze
15
28
 
16
29
  # Property definitions
17
- property :description, :label => 'Description', :comment =>
18
- %(A short text description of the subject.)
19
- property :items, :label => 'Items', :comment =>
20
- %(Points to a list of rss:item elements that are members of the
21
- subject channel.)
22
- property :link, :label => 'Link', :comment =>
23
- %(The URL to which an HTML rendering of the subject will link.)
24
- property :name, :label => 'Name', :comment =>
25
- %(The text input field's \(variable\) name.)
26
- property :title, :label => 'Title', :comment =>
27
- %(A descriptive title for the channel.)
28
- property :url, :label => 'URL', :comment =>
29
- %(The URL of the image to used in the 'src' attribute of the
30
- channel's image tag when rendered as HTML.)
30
+ property :description,
31
+ comment: %(A short text description of the subject.).freeze,
32
+ label: "Description".freeze,
33
+ "rdfs:isDefinedBy" => %(rss:).freeze,
34
+ subPropertyOf: "dc11:description".freeze,
35
+ type: "rdf:Property".freeze
36
+ property :items,
37
+ comment: %(Points to a list of rss:item elements that are members of the subject channel.).freeze,
38
+ label: "Items".freeze,
39
+ "rdfs:isDefinedBy" => %(rss:).freeze,
40
+ type: "rdf:Property".freeze
41
+ property :link,
42
+ comment: %(The URL to which an HTML rendering of the subject will link.).freeze,
43
+ label: "Link".freeze,
44
+ "rdfs:isDefinedBy" => %(rss:).freeze,
45
+ subPropertyOf: "dc11:identifier".freeze,
46
+ type: "rdf:Property".freeze
47
+ property :name,
48
+ comment: %(The text input field's \(variable\) name.).freeze,
49
+ label: "Name".freeze,
50
+ "rdfs:isDefinedBy" => %(rss:).freeze,
51
+ type: "rdf:Property".freeze
52
+ property :title,
53
+ comment: %(A descriptive title for the channel.).freeze,
54
+ label: "Title".freeze,
55
+ "rdfs:isDefinedBy" => %(rss:).freeze,
56
+ subPropertyOf: "dc11:title".freeze,
57
+ type: "rdf:Property".freeze
58
+ property :url,
59
+ comment: %(The URL of the image to used in the 'src' attribute of the channel's image tag when rendered as HTML.).freeze,
60
+ label: "URL".freeze,
61
+ "rdfs:isDefinedBy" => %(rss:).freeze,
62
+ subPropertyOf: "dc11:identifier".freeze,
63
+ type: "rdf:Property".freeze
31
64
  end
32
65
  end