rdf 1.1.5.1 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/cli.rb +5 -0
- data/lib/rdf/model/literal.rb +9 -0
- data/lib/rdf/model/literal/date.rb +46 -4
- data/lib/rdf/model/literal/datetime.rb +41 -8
- data/lib/rdf/model/literal/time.rb +52 -13
- data/lib/rdf/vocab.rb +2 -1
- data/lib/rdf/vocab/schema.rb +71 -41
- data/lib/rdf/writer.rb +1 -0
- metadata +63 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53c1cabe71a5c40333f8b4d25cd8f24772c93cc9
|
4
|
+
data.tar.gz: 1927e009d1d81f1da1e6478ad0bcf28eeb91eebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b67bbc361bb18082d807e0b42f4122db44eef8228e6b4783aacbd8eaa0acdfd96d06fecd833734d2f0e697ec4780ecfe4be1457e6033a80450a1711d8695807
|
7
|
+
data.tar.gz: e14069358869ccb176916ada66e90c911d1380ce77baff1303112fdda6166a8aa3042f43110f0d140d271b42da8d02e10979eb71a460b8bc33d495deb2e8ace0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.6
|
data/lib/rdf/cli.rb
CHANGED
@@ -43,6 +43,7 @@ module RDF
|
|
43
43
|
end
|
44
44
|
end,
|
45
45
|
"objects" => lambda do |argv, opts|
|
46
|
+
$stdout.set_encoding(Encoding::UTF_8) if RUBY_PLATFORM == "java"
|
46
47
|
self.parse(argv, opts) do |reader|
|
47
48
|
reader.each_statement do |statement|
|
48
49
|
$stdout.puts statement.object.to_ntriples
|
@@ -50,6 +51,7 @@ module RDF
|
|
50
51
|
end
|
51
52
|
end,
|
52
53
|
"predicates" => lambda do |argv, opts|
|
54
|
+
$stdout.set_encoding(Encoding::UTF_8) if RUBY_PLATFORM == "java"
|
53
55
|
self.parse(argv, opts) do |reader|
|
54
56
|
reader.each_statement do |statement|
|
55
57
|
$stdout.puts statement.predicate.to_ntriples
|
@@ -59,6 +61,7 @@ module RDF
|
|
59
61
|
"serialize" => lambda do |argv, opts|
|
60
62
|
writer_class = RDF::Writer.for(opts[:output_format]) || RDF::NTriples::Writer
|
61
63
|
out = opts[:output] || $stdout
|
64
|
+
out.set_encoding(Encoding::UTF_8) if out.respond_to?(:set_encoding) && RUBY_PLATFORM == "java"
|
62
65
|
opts = opts.merge(:prefixes => {})
|
63
66
|
writer_opts = opts.merge(:standard_prefixes => true)
|
64
67
|
self.parse(argv, opts) do |reader|
|
@@ -68,6 +71,7 @@ module RDF
|
|
68
71
|
end
|
69
72
|
end,
|
70
73
|
"subjects" => lambda do |argv, opts|
|
74
|
+
$stdout.set_encoding(Encoding::UTF_8) if RUBY_PLATFORM == "java"
|
71
75
|
self.parse(argv, opts) do |reader|
|
72
76
|
reader.each_statement do |statement|
|
73
77
|
$stdout.puts statement.subject.to_ntriples
|
@@ -183,6 +187,7 @@ module RDF
|
|
183
187
|
if files.empty?
|
184
188
|
# If files are empty, either use options[:execute]
|
185
189
|
input = options[:evaluate] ? StringIO.new(options[:evaluate]) : STDIN
|
190
|
+
input.set_encoding(options.fetch(:encoding, Encoding::UTF_8))
|
186
191
|
RDF::Reader.for(options[:format] || :ntriples).new(input, options) do |reader|
|
187
192
|
yield(reader)
|
188
193
|
end
|
data/lib/rdf/model/literal.rb
CHANGED
@@ -401,6 +401,15 @@ module RDF
|
|
401
401
|
@object.to_s
|
402
402
|
end
|
403
403
|
|
404
|
+
##
|
405
|
+
# Returns a human-readable value for the literal
|
406
|
+
#
|
407
|
+
# @return [String]
|
408
|
+
# @since 1.1.6
|
409
|
+
def humanize(lang = :en)
|
410
|
+
to_s
|
411
|
+
end
|
412
|
+
|
404
413
|
##
|
405
414
|
# Returns a developer-friendly representation of `self`.
|
406
415
|
#
|
@@ -6,8 +6,8 @@ module RDF; class Literal
|
|
6
6
|
# @since 0.2.1
|
7
7
|
class Date < Literal
|
8
8
|
DATATYPE = XSD.date
|
9
|
-
GRAMMAR = %r(\A-?\d{4}-\d{2}-\d{2}(([\+\-]\d{2}:\d{2})|UTC|GMT|Z)?\Z).freeze
|
10
|
-
FORMAT = '%Y-%m-%d
|
9
|
+
GRAMMAR = %r(\A(-?\d{4}-\d{2}-\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|GMT|Z)?\Z).freeze
|
10
|
+
FORMAT = '%Y-%m-%d'.freeze
|
11
11
|
|
12
12
|
##
|
13
13
|
# @param [Date] value
|
@@ -26,10 +26,12 @@ module RDF; class Literal
|
|
26
26
|
##
|
27
27
|
# Converts this literal into its canonical lexical representation.
|
28
28
|
#
|
29
|
+
# Note that the timezone is recoverable for xsd:date, where it is not for xsd:dateTime and xsd:time, which are both transformed relative to Z, if a timezone is provided.
|
30
|
+
#
|
29
31
|
# @return [RDF::Literal] `self`
|
30
32
|
# @see http://www.w3.org/TR/xmlschema-2/#date
|
31
33
|
def canonicalize!
|
32
|
-
@string = @object.strftime(FORMAT).
|
34
|
+
@string = @object.strftime(FORMAT) + self.tz.to_s if self.valid?
|
33
35
|
self
|
34
36
|
end
|
35
37
|
|
@@ -45,12 +47,52 @@ module RDF; class Literal
|
|
45
47
|
super && object && value !~ %r(\A0000)
|
46
48
|
end
|
47
49
|
|
50
|
+
##
|
51
|
+
# Does the literal representation include a timezone? Note that this is only possible if initialized using a string, or `:lexical` option.
|
52
|
+
#
|
53
|
+
# @return [Boolean]
|
54
|
+
# @since 1.1.6
|
55
|
+
def has_timezone?
|
56
|
+
md = self.to_s.match(GRAMMAR)
|
57
|
+
md && !!md[2]
|
58
|
+
end
|
59
|
+
alias_method :has_tz?, :has_timezone?
|
60
|
+
|
48
61
|
##
|
49
62
|
# Returns the value as a string.
|
50
63
|
#
|
51
64
|
# @return [String]
|
52
65
|
def to_s
|
53
|
-
@string || @object.strftime(FORMAT)
|
66
|
+
@string || @object.strftime(FORMAT)
|
67
|
+
end
|
68
|
+
|
69
|
+
##
|
70
|
+
# Returns a human-readable value for the literal
|
71
|
+
#
|
72
|
+
# @return [String]
|
73
|
+
# @since 1.1.6
|
74
|
+
def humanize(lang = :en)
|
75
|
+
d = object.strftime("%A, %d %B %Y")
|
76
|
+
if has_timezone?
|
77
|
+
d += if self.tz == 'Z'
|
78
|
+
" UTC"
|
79
|
+
else
|
80
|
+
" #{self.tz}"
|
81
|
+
end
|
82
|
+
end
|
83
|
+
d
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Returns the timezone part of arg as a simple literal. Returns the empty string if there is no timezone.
|
88
|
+
#
|
89
|
+
# @return [RDF::Literal]
|
90
|
+
# @since 1.1.6
|
91
|
+
def tz
|
92
|
+
md = self.to_s.match(GRAMMAR)
|
93
|
+
zone = md[2].to_s
|
94
|
+
zone = "Z" if zone == "+00:00"
|
95
|
+
RDF::Literal(zone)
|
54
96
|
end
|
55
97
|
|
56
98
|
##
|
@@ -6,7 +6,8 @@ module RDF; class Literal
|
|
6
6
|
# @since 0.2.1
|
7
7
|
class DateTime < Literal
|
8
8
|
DATATYPE = XSD.dateTime
|
9
|
-
GRAMMAR = %r(\A-?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(
|
9
|
+
GRAMMAR = %r(\A(-?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?)((?:[\+\-]\d{2}:\d{2})|UTC|GMT|Z)?\Z).freeze
|
10
|
+
FORMAT = '%Y-%m-%dT%H:%M:%SZ'.freeze
|
10
11
|
|
11
12
|
##
|
12
13
|
# @param [DateTime] value
|
@@ -15,9 +16,6 @@ module RDF; class Literal
|
|
15
16
|
@datatype = RDF::URI(options[:datatype] || self.class.const_get(:DATATYPE))
|
16
17
|
@string = options[:lexical] if options.has_key?(:lexical)
|
17
18
|
@string ||= value if value.is_a?(String)
|
18
|
-
@has_timezone = @string.nil? || if md = @string.match(GRAMMAR)
|
19
|
-
!!md[2] # If lexical value contains timezone
|
20
|
-
end
|
21
19
|
@object = case
|
22
20
|
when value.is_a?(::DateTime) then value
|
23
21
|
when value.respond_to?(:to_datetime) then value.to_datetime
|
@@ -32,7 +30,13 @@ module RDF; class Literal
|
|
32
30
|
# @return [RDF::Literal] `self`
|
33
31
|
# @see http://www.w3.org/TR/xmlschema-2/#dateTime
|
34
32
|
def canonicalize!
|
35
|
-
|
33
|
+
if self.valid?
|
34
|
+
@string = if has_timezone?
|
35
|
+
@object.new_offset.strftime(FORMAT)
|
36
|
+
else
|
37
|
+
@object.strftime(FORMAT[0..-2])
|
38
|
+
end
|
39
|
+
end
|
36
40
|
self
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,7 @@ module RDF; class Literal
|
|
42
46
|
# @return [RDF::Literal]
|
43
47
|
# @see http://www.w3.org/TR/sparql11-query/#func-tz
|
44
48
|
def tz
|
45
|
-
zone =
|
49
|
+
zone = has_timezone? ? object.zone : ""
|
46
50
|
zone = "Z" if zone == "+00:00"
|
47
51
|
RDF::Literal(zone)
|
48
52
|
end
|
@@ -61,7 +65,7 @@ module RDF; class Literal
|
|
61
65
|
hour = hour.to_i
|
62
66
|
min = min.to_i
|
63
67
|
res = "#{plus_minus}PT#{hour}H#{"#{min}M" if min > 0}"
|
64
|
-
RDF::Literal(res, :
|
68
|
+
RDF::Literal(res, datatype: RDF::XSD.dayTimeDuration)
|
65
69
|
end
|
66
70
|
end
|
67
71
|
|
@@ -77,6 +81,17 @@ module RDF; class Literal
|
|
77
81
|
super && object && value !~ %r(\A0000)
|
78
82
|
end
|
79
83
|
|
84
|
+
##
|
85
|
+
# Does the literal representation include a timezone? Note that this is only possible if initialized using a string, or `:lexical` option.
|
86
|
+
#
|
87
|
+
# @return [Boolean]
|
88
|
+
# @since 1.1.6
|
89
|
+
def has_timezone?
|
90
|
+
md = self.to_s.match(GRAMMAR)
|
91
|
+
md && !!md[2]
|
92
|
+
end
|
93
|
+
alias_method :has_tz?, :has_timezone?
|
94
|
+
|
80
95
|
##
|
81
96
|
# Returns the `timezone` of the literal. If the
|
82
97
|
##
|
@@ -84,7 +99,25 @@ module RDF; class Literal
|
|
84
99
|
#
|
85
100
|
# @return [String]
|
86
101
|
def to_s
|
87
|
-
@string || @object.strftime(
|
102
|
+
@string || @object.strftime(FORMAT).sub("+00:00", 'Z')
|
103
|
+
end
|
104
|
+
|
105
|
+
##
|
106
|
+
# Returns a human-readable value for the literal
|
107
|
+
#
|
108
|
+
# @return [String]
|
109
|
+
# @since 1.1.6
|
110
|
+
def humanize(lang = :en)
|
111
|
+
d = object.strftime("%r on %A, %d %B %Y")
|
112
|
+
if has_timezone?
|
113
|
+
zone = if self.tz == 'Z'
|
114
|
+
"UTC"
|
115
|
+
else
|
116
|
+
self.tz
|
117
|
+
end
|
118
|
+
d.sub!(" on ", " #{zone} on ")
|
119
|
+
end
|
120
|
+
d
|
88
121
|
end
|
89
122
|
|
90
123
|
##
|
@@ -11,7 +11,8 @@ module RDF; class Literal
|
|
11
11
|
# @since 0.2.1
|
12
12
|
class Time < Literal
|
13
13
|
DATATYPE = XSD.time
|
14
|
-
GRAMMAR = %r(\A\d{2}:\d{2}:\d{2}(
|
14
|
+
GRAMMAR = %r(\A(\d{2}:\d{2}:\d{2}(?:\.\d+)?)((?:[\+\-]\d{2}:\d{2})|UTC|GMT|Z)?\Z).freeze
|
15
|
+
FORMAT = '%H:%M:%SZ'.freeze
|
15
16
|
|
16
17
|
##
|
17
18
|
# @param [Time] value
|
@@ -21,9 +22,9 @@ module RDF; class Literal
|
|
21
22
|
@string = options[:lexical] if options.has_key?(:lexical)
|
22
23
|
@string ||= value if value.is_a?(String)
|
23
24
|
@object = case
|
24
|
-
when value.is_a?(::
|
25
|
-
when value.respond_to?(:
|
26
|
-
else ::
|
25
|
+
when value.is_a?(::DateTime) then value
|
26
|
+
when value.respond_to?(:to_datetime) then value.to_datetime rescue ::DateTime.parse(value.to_s)
|
27
|
+
else ::DateTime.parse(value.to_s)
|
27
28
|
end rescue nil
|
28
29
|
end
|
29
30
|
|
@@ -41,10 +42,27 @@ module RDF; class Literal
|
|
41
42
|
# @return [RDF::Literal] `self`
|
42
43
|
# @see http://www.w3.org/TR/xmlschema-2/#time
|
43
44
|
def canonicalize!
|
44
|
-
|
45
|
+
if self.valid?
|
46
|
+
@string = if has_timezone?
|
47
|
+
@object.new_offset.strftime(FORMAT)
|
48
|
+
else
|
49
|
+
@object.strftime(FORMAT[0..-2])
|
50
|
+
end
|
51
|
+
end
|
45
52
|
self
|
46
53
|
end
|
47
54
|
|
55
|
+
##
|
56
|
+
# Returns the timezone part of arg as a simple literal. Returns the empty string if there is no timezone.
|
57
|
+
#
|
58
|
+
# @return [RDF::Literal]
|
59
|
+
# @see http://www.w3.org/TR/sparql11-query/#func-tz
|
60
|
+
def tz
|
61
|
+
zone = has_timezone? ? object.zone : ""
|
62
|
+
zone = "Z" if zone == "+00:00"
|
63
|
+
RDF::Literal(zone)
|
64
|
+
end
|
65
|
+
|
48
66
|
##
|
49
67
|
# Returns `true` if the value adheres to the defined grammar of the
|
50
68
|
# datatype.
|
@@ -57,20 +75,41 @@ module RDF; class Literal
|
|
57
75
|
super && !object.nil?
|
58
76
|
end
|
59
77
|
|
78
|
+
##
|
79
|
+
# Does the literal representation include a timezone? Note that this is only possible if initialized using a string, or `:lexical` option.
|
80
|
+
#
|
81
|
+
# @return [Boolean]
|
82
|
+
# @since 1.1.6
|
83
|
+
def has_timezone?
|
84
|
+
md = self.to_s.match(GRAMMAR)
|
85
|
+
md && !!md[2]
|
86
|
+
end
|
87
|
+
alias_method :has_tz?, :has_timezone?
|
88
|
+
|
60
89
|
##
|
61
90
|
# Returns the value as a string.
|
62
91
|
# Does not normalize timezone
|
63
92
|
#
|
64
93
|
# @return [String]
|
65
94
|
def to_s
|
66
|
-
@string ||
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
95
|
+
@string || @object.strftime('%H:%M:%S%:z').sub("+00:00", 'Z')
|
96
|
+
end
|
97
|
+
|
98
|
+
##
|
99
|
+
# Returns a human-readable value for the literal
|
100
|
+
#
|
101
|
+
# @return [String]
|
102
|
+
# @since 1.1.6
|
103
|
+
def humanize(lang = :en)
|
104
|
+
t = object.strftime("%r")
|
105
|
+
if has_timezone?
|
106
|
+
t += if self.tz == 'Z'
|
107
|
+
" UTC"
|
108
|
+
else
|
109
|
+
" #{self.tz}"
|
110
|
+
end
|
73
111
|
end
|
112
|
+
t
|
74
113
|
end
|
75
114
|
|
76
115
|
##
|
@@ -84,7 +123,7 @@ module RDF; class Literal
|
|
84
123
|
return super unless other.valid?
|
85
124
|
# Compare as strings, as time includes a date portion, and adjusting for UTC
|
86
125
|
# can create a mismatch in the date portion.
|
87
|
-
self.object.
|
126
|
+
self.object.new_offset.strftime('%H%M%S') == other.object.new_offset.strftime('%H%M%S')
|
88
127
|
when Literal::DateTime, Literal::Date
|
89
128
|
false
|
90
129
|
else
|
data/lib/rdf/vocab.rb
CHANGED
@@ -624,7 +624,8 @@ module RDF
|
|
624
624
|
when :comment
|
625
625
|
prop = RDFS.comment
|
626
626
|
else
|
627
|
-
|
627
|
+
v = RDF::Vocabulary.expand_pname(value)
|
628
|
+
value = v.valid? ? v : RDF::Literal(value)
|
628
629
|
end
|
629
630
|
block.call RDF::Statement(self, prop, value)
|
630
631
|
rescue KeyError
|
data/lib/rdf/vocab/schema.rb
CHANGED
@@ -291,6 +291,7 @@ module RDF
|
|
291
291
|
term :Blog,
|
292
292
|
comment: %(A blog).freeze,
|
293
293
|
label: "Blog".freeze,
|
294
|
+
subClassOf: "schema:CreativeWork".freeze,
|
294
295
|
type: "rdfs:Class".freeze
|
295
296
|
term :BlogPosting,
|
296
297
|
comment: %(A blog post.).freeze,
|
@@ -1968,7 +1969,13 @@ module RDF
|
|
1968
1969
|
subClassOf: "schema:BodyOfWater".freeze,
|
1969
1970
|
type: "rdfs:Class".freeze
|
1970
1971
|
term :Offer,
|
1971
|
-
comment: %(An offer to transfer some rights to an item or to provide a service—for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
|
1972
|
+
comment: %(An offer to transfer some rights to an item or to provide a service—for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
|
1973
|
+
<br/><br/>
|
1974
|
+
For <a href="http://www.gs1.org/barcodes/technical/idkeys/gtin">GTIN</a>-related fields, see
|
1975
|
+
<a href="http://www.gs1.org/barcodes/support/check_digit_calculator">Check Digit calculator</a>
|
1976
|
+
and <a href="http://www.gs1us.org/resources/standards/gtin-validation-guide">validation guide</a>
|
1977
|
+
from <a href="http://www.gs1.org/">GS1</a>.
|
1978
|
+
).freeze,
|
1972
1979
|
"dc:source" => %(http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_GoodRelationsProperties).freeze,
|
1973
1980
|
label: "Offer".freeze,
|
1974
1981
|
subClassOf: "schema:Intangible".freeze,
|
@@ -3283,7 +3290,7 @@ module RDF
|
|
3283
3290
|
domainIncludes: "schema:Muscle".freeze,
|
3284
3291
|
label: "action".freeze,
|
3285
3292
|
rangeIncludes: "schema:Text".freeze,
|
3286
|
-
"schema:
|
3293
|
+
"schema:supersededBy" => %(schema:muscleAction).freeze,
|
3287
3294
|
type: "rdf:Property".freeze
|
3288
3295
|
property :actionStatus,
|
3289
3296
|
comment: %(Indicates the current disposition of the Action.).freeze,
|
@@ -3320,7 +3327,7 @@ module RDF
|
|
3320
3327
|
domainIncludes: ["schema:Movie".freeze, "schema:Episode".freeze, "schema:TVEpisode".freeze, "schema:Series".freeze, "schema:TVSeries".freeze, "schema:RadioEpisode".freeze, "schema:RadioSeries".freeze],
|
3321
3328
|
label: "actors".freeze,
|
3322
3329
|
rangeIncludes: "schema:Person".freeze,
|
3323
|
-
"schema:
|
3330
|
+
"schema:supersededBy" => %(schema:actor).freeze,
|
3324
3331
|
type: "rdf:Property".freeze
|
3325
3332
|
property :addOn,
|
3326
3333
|
comment: %(An additional offer that can only be obtained in combination with the first base offer \(e.g. supplements and extensions that are available for a surcharge\).).freeze,
|
@@ -3429,7 +3436,7 @@ module RDF
|
|
3429
3436
|
domainIncludes: "schema:MusicGroup".freeze,
|
3430
3437
|
label: "albums".freeze,
|
3431
3438
|
rangeIncludes: "schema:MusicAlbum".freeze,
|
3432
|
-
"schema:
|
3439
|
+
"schema:supersededBy" => %(schema:album).freeze,
|
3433
3440
|
type: "rdf:Property".freeze
|
3434
3441
|
property :alcoholWarning,
|
3435
3442
|
comment: %(Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.).freeze,
|
@@ -3660,7 +3667,7 @@ module RDF
|
|
3660
3667
|
domainIncludes: "schema:Event".freeze,
|
3661
3668
|
label: "attendees".freeze,
|
3662
3669
|
rangeIncludes: ["schema:Organization".freeze, "schema:Person".freeze],
|
3663
|
-
"schema:
|
3670
|
+
"schema:supersededBy" => %(schema:attendees).freeze,
|
3664
3671
|
type: "rdf:Property".freeze
|
3665
3672
|
property :audience,
|
3666
3673
|
comment: %(The intended audience of the item, i.e. the group for whom the item was created.).freeze,
|
@@ -3778,7 +3785,7 @@ module RDF
|
|
3778
3785
|
domainIncludes: ["schema:CreativeWork".freeze, "schema:Person".freeze],
|
3779
3786
|
label: "awards".freeze,
|
3780
3787
|
rangeIncludes: "schema:Text".freeze,
|
3781
|
-
"schema:
|
3788
|
+
"schema:supersededBy" => %(schema:award).freeze,
|
3782
3789
|
type: "rdf:Property".freeze
|
3783
3790
|
property :background,
|
3784
3791
|
comment: %(Descriptive information establishing a historical perspective on the supplement. May include the rationale for the name, the population where the supplement first came to prominence, etc.).freeze,
|
@@ -3845,7 +3852,7 @@ module RDF
|
|
3845
3852
|
domainIncludes: "schema:Blog".freeze,
|
3846
3853
|
label: "blogPosts".freeze,
|
3847
3854
|
rangeIncludes: "schema:BlogPosting".freeze,
|
3848
|
-
"schema:
|
3855
|
+
"schema:supersededBy" => %(schema:blogPost).freeze,
|
3849
3856
|
type: "rdf:Property".freeze
|
3850
3857
|
property :bloodSupply,
|
3851
3858
|
comment: %(The blood vessel that carries blood from the heart to the muscle.).freeze,
|
@@ -3882,7 +3889,7 @@ module RDF
|
|
3882
3889
|
domainIncludes: "schema:Reservation".freeze,
|
3883
3890
|
label: "bookingAgent".freeze,
|
3884
3891
|
rangeIncludes: ["schema:Person".freeze, "schema:Organization".freeze],
|
3885
|
-
"schema:
|
3892
|
+
"schema:supersededBy" => %(schema:broker).freeze,
|
3886
3893
|
type: "rdf:Property".freeze
|
3887
3894
|
property :bookingTime,
|
3888
3895
|
comment: %(The date and time the reservation was booked.).freeze,
|
@@ -4012,7 +4019,7 @@ module RDF
|
|
4012
4019
|
domainIncludes: ["schema:ParcelDelivery".freeze, "schema:Flight".freeze],
|
4013
4020
|
label: "carrier".freeze,
|
4014
4021
|
rangeIncludes: "schema:Organization".freeze,
|
4015
|
-
"schema:
|
4022
|
+
"schema:supersededBy" => %(schema:provider).freeze,
|
4016
4023
|
type: "rdf:Property".freeze
|
4017
4024
|
property :carrierRequirements,
|
4018
4025
|
comment: %(Specifies specific carrier\(s\) requirements for the application \(e.g. an application may only work on a specific carrier network\).).freeze,
|
@@ -4152,7 +4159,7 @@ module RDF
|
|
4152
4159
|
domainIncludes: "schema:Person".freeze,
|
4153
4160
|
label: "colleagues".freeze,
|
4154
4161
|
rangeIncludes: "schema:Person".freeze,
|
4155
|
-
"schema:
|
4162
|
+
"schema:supersededBy" => %(schema:colleague).freeze,
|
4156
4163
|
type: "rdf:Property".freeze
|
4157
4164
|
property :collection,
|
4158
4165
|
comment: %(A sub property of object. The collection target of the action.).freeze,
|
@@ -4226,7 +4233,7 @@ module RDF
|
|
4226
4233
|
domainIncludes: ["schema:Organization".freeze, "schema:Person".freeze],
|
4227
4234
|
label: "contactPoints".freeze,
|
4228
4235
|
rangeIncludes: "schema:ContactPoint".freeze,
|
4229
|
-
"schema:
|
4236
|
+
"schema:supersededBy" => %(schema:contactPoint).freeze,
|
4230
4237
|
type: "rdf:Property".freeze
|
4231
4238
|
property :contactType,
|
4232
4239
|
comment: %(A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.).freeze,
|
@@ -4573,7 +4580,7 @@ module RDF
|
|
4573
4580
|
domainIncludes: ["schema:Movie".freeze, "schema:Episode".freeze, "schema:TVEpisode".freeze, "schema:Series".freeze, "schema:TVSeries".freeze, "schema:RadioEpisode".freeze, "schema:RadioSeries".freeze],
|
4574
4581
|
label: "directors".freeze,
|
4575
4582
|
rangeIncludes: "schema:Person".freeze,
|
4576
|
-
"schema:
|
4583
|
+
"schema:supersededBy" => %(schema:director).freeze,
|
4577
4584
|
type: "rdf:Property".freeze
|
4578
4585
|
property :discount,
|
4579
4586
|
comment: %(Any discount applied \(to an Order\).).freeze,
|
@@ -4832,7 +4839,7 @@ module RDF
|
|
4832
4839
|
domainIncludes: "schema:Organization".freeze,
|
4833
4840
|
label: "employees".freeze,
|
4834
4841
|
rangeIncludes: "schema:Person".freeze,
|
4835
|
-
"schema:
|
4842
|
+
"schema:supersededBy" => %(schema:employee).freeze,
|
4836
4843
|
type: "rdf:Property".freeze
|
4837
4844
|
property :employmentType,
|
4838
4845
|
comment: %(Type of employment \(e.g. full-time, part-time, contract, temporary, seasonal, internship\).).freeze,
|
@@ -4869,7 +4876,7 @@ module RDF
|
|
4869
4876
|
domainIncludes: "schema:CreativeWork".freeze,
|
4870
4877
|
label: "encodings".freeze,
|
4871
4878
|
rangeIncludes: "schema:MediaObject".freeze,
|
4872
|
-
"schema:
|
4879
|
+
"schema:supersededBy" => %(schema:encoding).freeze,
|
4873
4880
|
type: "rdf:Property".freeze
|
4874
4881
|
property :endDate,
|
4875
4882
|
comment: %(The end date and time of the role, event or item \(in <a href='http://en.wikipedia.org/wiki/ISO_8601'>ISO 8601 date format</a>\).).freeze,
|
@@ -4930,7 +4937,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
4930
4937
|
domainIncludes: ["schema:Season".freeze, "schema:TVSeason".freeze, "schema:Series".freeze, "schema:TVSeries".freeze, "schema:RadioSeason".freeze, "schema:RadioSeries".freeze],
|
4931
4938
|
label: "episodes".freeze,
|
4932
4939
|
rangeIncludes: "schema:Episode".freeze,
|
4933
|
-
"schema:
|
4940
|
+
"schema:supersededBy" => %(schema:episode).freeze,
|
4934
4941
|
type: "rdf:Property".freeze
|
4935
4942
|
property :equal,
|
4936
4943
|
comment: %(This ordering relation for qualitative values indicates that the subject is equal to the object.).freeze,
|
@@ -4967,7 +4974,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
4967
4974
|
domainIncludes: ["schema:Organization".freeze, "schema:Place".freeze],
|
4968
4975
|
label: "events".freeze,
|
4969
4976
|
rangeIncludes: "schema:Event".freeze,
|
4970
|
-
"schema:
|
4977
|
+
"schema:supersededBy" => %(schema:event).freeze,
|
4971
4978
|
type: "rdf:Property".freeze
|
4972
4979
|
property :evidenceLevel,
|
4973
4980
|
comment: %(Strength of evidence of the data used to formulate the guideline \(enumerated\).).freeze,
|
@@ -5148,7 +5155,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5148
5155
|
domainIncludes: "schema:Organization".freeze,
|
5149
5156
|
label: "founders".freeze,
|
5150
5157
|
rangeIncludes: "schema:Person".freeze,
|
5151
|
-
"schema:
|
5158
|
+
"schema:supersededBy" => %(schema:founder).freeze,
|
5152
5159
|
type: "rdf:Property".freeze
|
5153
5160
|
property :foundingDate,
|
5154
5161
|
comment: %(The date that this organization was founded.).freeze,
|
@@ -5236,19 +5243,19 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5236
5243
|
rangeIncludes: "schema:QualitativeValue".freeze,
|
5237
5244
|
type: "rdf:Property".freeze
|
5238
5245
|
property :gtin13,
|
5239
|
-
comment: %(The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceeding zero.).freeze,
|
5246
|
+
comment: %(The <a href="http://apps.gs1.org/GDD/glossary/Pages/GTIN-13.aspx">GTIN-13</a> code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceeding zero. See <a href="http://www.gs1.org/barcodes/technical/idkeys/gtin">GS1 GTIN Summary</a> for more details.).freeze,
|
5240
5247
|
domainIncludes: ["schema:Offer".freeze, "schema:Product".freeze, "schema:Demand".freeze],
|
5241
5248
|
label: "gtin13".freeze,
|
5242
5249
|
rangeIncludes: "schema:Text".freeze,
|
5243
5250
|
type: "rdf:Property".freeze
|
5244
5251
|
property :gtin14,
|
5245
|
-
comment: %(The GTIN-14 code of the product, or the product to which the offer refers.).freeze,
|
5252
|
+
comment: %(The <a href="http://apps.gs1.org/GDD/glossary/Pages/GTIN-14.aspx">GTIN-14</a> code of the product, or the product to which the offer refers. See <a href="http://www.gs1.org/barcodes/technical/idkeys/gtin">GS1 GTIN Summary</a> for more details.).freeze,
|
5246
5253
|
domainIncludes: ["schema:Offer".freeze, "schema:Product".freeze, "schema:Demand".freeze],
|
5247
5254
|
label: "gtin14".freeze,
|
5248
5255
|
rangeIncludes: "schema:Text".freeze,
|
5249
5256
|
type: "rdf:Property".freeze
|
5250
5257
|
property :gtin8,
|
5251
|
-
comment: %(The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN.).freeze,
|
5258
|
+
comment: %(The <a href="http://apps.gs1.org/GDD/glossary/Pages/GTIN-8.aspx">GTIN-8</a> code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See <a href="http://www.gs1.org/barcodes/technical/idkeys/gtin">GS1 GTIN Summary</a> for more details.).freeze,
|
5252
5259
|
domainIncludes: ["schema:Offer".freeze, "schema:Product".freeze, "schema:Demand".freeze],
|
5253
5260
|
label: "gtin8".freeze,
|
5254
5261
|
rangeIncludes: "schema:Text".freeze,
|
@@ -5406,7 +5413,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5406
5413
|
rangeIncludes: "schema:Person".freeze,
|
5407
5414
|
type: "rdf:Property".freeze
|
5408
5415
|
property :image,
|
5409
|
-
comment: %(
|
5416
|
+
comment: %(An image of the item. This can be a <a href="http://schema.org/URL">URL</a> or a fully described <a href="http://schema.org/ImageObject">ImageObject</a>.).freeze,
|
5410
5417
|
domainIncludes: "schema:Thing".freeze,
|
5411
5418
|
label: "image".freeze,
|
5412
5419
|
rangeIncludes: ["schema:URL".freeze, "schema:ImageObject".freeze],
|
@@ -5816,6 +5823,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5816
5823
|
domainIncludes: ["schema:Organization".freeze, "schema:Place".freeze, "schema:Product".freeze, "schema:Brand".freeze],
|
5817
5824
|
label: "logo".freeze,
|
5818
5825
|
rangeIncludes: ["schema:ImageObject".freeze, "schema:URL".freeze],
|
5826
|
+
subPropertyOf: "schema:image".freeze,
|
5819
5827
|
type: "rdf:Property".freeze
|
5820
5828
|
property :longitude,
|
5821
5829
|
comment: %(The longitude of a location. For example <code>-122.08585</code>.).freeze,
|
@@ -5859,7 +5867,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5859
5867
|
domainIncludes: "schema:Place".freeze,
|
5860
5868
|
label: "map".freeze,
|
5861
5869
|
rangeIncludes: "schema:URL".freeze,
|
5862
|
-
"schema:
|
5870
|
+
"schema:supersededBy" => %(schema:hasMap).freeze,
|
5863
5871
|
type: "rdf:Property".freeze
|
5864
5872
|
property :mapType,
|
5865
5873
|
comment: %(Indicates the kind of Map, from the MapCategoryType Enumeration.).freeze,
|
@@ -5872,7 +5880,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5872
5880
|
domainIncludes: "schema:Place".freeze,
|
5873
5881
|
label: "maps".freeze,
|
5874
5882
|
rangeIncludes: "schema:URL".freeze,
|
5875
|
-
"schema:
|
5883
|
+
"schema:supersededBy" => %(schema:hasMap).freeze,
|
5876
5884
|
type: "rdf:Property".freeze
|
5877
5885
|
property :maxPrice,
|
5878
5886
|
comment: %(The highest price if the price is a range.).freeze,
|
@@ -5935,7 +5943,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5935
5943
|
domainIncludes: ["schema:Organization".freeze, "schema:ProgramMembership".freeze],
|
5936
5944
|
label: "members".freeze,
|
5937
5945
|
rangeIncludes: ["schema:Organization".freeze, "schema:Person".freeze],
|
5938
|
-
"schema:
|
5946
|
+
"schema:supersededBy" => %(schema:member).freeze,
|
5939
5947
|
type: "rdf:Property".freeze
|
5940
5948
|
property :membershipNumber,
|
5941
5949
|
comment: %(A unique identifier for the membership.).freeze,
|
@@ -5966,7 +5974,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
5966
5974
|
domainIncludes: "schema:Order".freeze,
|
5967
5975
|
label: "merchant".freeze,
|
5968
5976
|
rangeIncludes: ["schema:Organization".freeze, "schema:Person".freeze],
|
5969
|
-
"schema:
|
5977
|
+
"schema:supersededBy" => %(schema:seller).freeze,
|
5970
5978
|
type: "rdf:Property".freeze
|
5971
5979
|
property :minPrice,
|
5972
5980
|
comment: %(The lowest price if the price is a range.).freeze,
|
@@ -6021,7 +6029,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
6021
6029
|
domainIncludes: "schema:MusicGroup".freeze,
|
6022
6030
|
label: "musicGroupMember".freeze,
|
6023
6031
|
rangeIncludes: "schema:Person".freeze,
|
6024
|
-
"schema:
|
6032
|
+
"schema:supersededBy" => %(schema:member).freeze,
|
6025
6033
|
type: "rdf:Property".freeze
|
6026
6034
|
property :naics,
|
6027
6035
|
comment: %(The North American Industry Classification System \(NAICS\) code for a particular organization or business person.).freeze,
|
@@ -6324,7 +6332,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
6324
6332
|
domainIncludes: "schema:Person".freeze,
|
6325
6333
|
label: "parents".freeze,
|
6326
6334
|
rangeIncludes: "schema:Person".freeze,
|
6327
|
-
"schema:
|
6335
|
+
"schema:supersededBy" => %(schema:parent).freeze,
|
6328
6336
|
type: "rdf:Property".freeze
|
6329
6337
|
property :partOfEpisode,
|
6330
6338
|
comment: %(The episode to which this clip belongs.).freeze,
|
@@ -6361,7 +6369,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
6361
6369
|
domainIncludes: ["schema:TVEpisode".freeze, "schema:TVSeason".freeze, "schema:TVClip".freeze],
|
6362
6370
|
label: "partOfTVSeries".freeze,
|
6363
6371
|
rangeIncludes: "schema:TVSeries".freeze,
|
6364
|
-
"schema:
|
6372
|
+
"schema:supersededBy" => %(schema:partOfSeries).freeze,
|
6365
6373
|
type: "rdf:Property".freeze
|
6366
6374
|
property :participant,
|
6367
6375
|
comment: %(Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*.).freeze,
|
@@ -6428,7 +6436,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
6428
6436
|
domainIncludes: "schema:Event".freeze,
|
6429
6437
|
label: "performers".freeze,
|
6430
6438
|
rangeIncludes: ["schema:Organization".freeze, "schema:Person".freeze],
|
6431
|
-
"schema:
|
6439
|
+
"schema:supersededBy" => %(schema:performer).freeze,
|
6432
6440
|
type: "rdf:Property".freeze
|
6433
6441
|
property :permissions,
|
6434
6442
|
comment: %(Permission\(s\) required to run the app \(for example, a mobile app may require full internet access or may run only on wifi\).).freeze,
|
@@ -6453,13 +6461,14 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
6453
6461
|
domainIncludes: "schema:Place".freeze,
|
6454
6462
|
label: "photo".freeze,
|
6455
6463
|
rangeIncludes: ["schema:ImageObject".freeze, "schema:Photograph".freeze],
|
6464
|
+
subPropertyOf: "schema:image".freeze,
|
6456
6465
|
type: "rdf:Property".freeze
|
6457
6466
|
property :photos,
|
6458
6467
|
comment: %(Photographs of this place \(legacy spelling; see singular form, photo\).).freeze,
|
6459
6468
|
domainIncludes: "schema:Place".freeze,
|
6460
6469
|
label: "photos".freeze,
|
6461
6470
|
rangeIncludes: ["schema:ImageObject".freeze, "schema:Photograph".freeze],
|
6462
|
-
"schema:
|
6471
|
+
"schema:supersededBy" => %(schema:photo).freeze,
|
6463
6472
|
type: "rdf:Property".freeze
|
6464
6473
|
property :physiologicalBenefits,
|
6465
6474
|
comment: %(Specific physiologic benefits associated to the plan.).freeze,
|
@@ -6594,7 +6603,28 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
6594
6603
|
rangeIncludes: "schema:Date".freeze,
|
6595
6604
|
type: "rdf:Property".freeze
|
6596
6605
|
property :price,
|
6597
|
-
comment: %(The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.
|
6606
|
+
comment: %(The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.
|
6607
|
+
<br />
|
6608
|
+
<br />
|
6609
|
+
Usage guidelines:
|
6610
|
+
<br />
|
6611
|
+
<ul>
|
6612
|
+
<li>Use the <a href="/priceCurrency">priceCurrency</a> property \(with <a href="http://en.wikipedia.org/wiki/ISO_4217#Active_codes">ISO 4217 codes</a> e.g. "USD"\) instead of
|
6613
|
+
including <a href="http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign">ambiguous symbols</a> such as '$' in the value.
|
6614
|
+
</li>
|
6615
|
+
<li>
|
6616
|
+
Use '.' \(Unicode 'FULL STOP' \(U+002E\)\) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
|
6617
|
+
</li>
|
6618
|
+
<li>
|
6619
|
+
Note that both <a href="http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute">RDFa</a> and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values
|
6620
|
+
alongside more human-friendly formatting.
|
6621
|
+
</li>
|
6622
|
+
<li>
|
6623
|
+
Use values from 0123456789 \(Unicode 'DIGIT ZERO' \(U+0030\) to 'DIGIT NINE' \(U+0039\)\) rather than superficially similiar Unicode symbols.
|
6624
|
+
</li>
|
6625
|
+
</ul>
|
6626
|
+
|
6627
|
+
).freeze,
|
6598
6628
|
domainIncludes: ["schema:Offer".freeze, "schema:PriceSpecification".freeze, "schema:TradeAction".freeze],
|
6599
6629
|
label: "price".freeze,
|
6600
6630
|
rangeIncludes: ["schema:Number".freeze, "schema:Text".freeze],
|
@@ -7134,7 +7164,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
7134
7164
|
domainIncludes: ["schema:CreativeWork".freeze, "schema:Organization".freeze, "schema:Place".freeze, "schema:Offer".freeze, "schema:Product".freeze],
|
7135
7165
|
label: "reviews".freeze,
|
7136
7166
|
rangeIncludes: "schema:Review".freeze,
|
7137
|
-
"schema:
|
7167
|
+
"schema:supersededBy" => %(schema:review).freeze,
|
7138
7168
|
type: "rdf:Property".freeze
|
7139
7169
|
property :riskFactor,
|
7140
7170
|
comment: %(A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age, coexisting condition.).freeze,
|
@@ -7220,7 +7250,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
7220
7250
|
domainIncludes: ["schema:Series".freeze, "schema:TVSeries".freeze, "schema:RadioSeries".freeze],
|
7221
7251
|
label: "seasons".freeze,
|
7222
7252
|
rangeIncludes: "schema:Season".freeze,
|
7223
|
-
"schema:
|
7253
|
+
"schema:supersededBy" => %(schema:season).freeze,
|
7224
7254
|
type: "rdf:Property".freeze
|
7225
7255
|
property :seatNumber,
|
7226
7256
|
comment: %(The location of the reserved seat \(e.g., 27\).).freeze,
|
@@ -7367,7 +7397,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
7367
7397
|
domainIncludes: "schema:Person".freeze,
|
7368
7398
|
label: "siblings".freeze,
|
7369
7399
|
rangeIncludes: "schema:Person".freeze,
|
7370
|
-
"schema:
|
7400
|
+
"schema:supersededBy" => %(schema:sibling).freeze,
|
7371
7401
|
type: "rdf:Property".freeze
|
7372
7402
|
property :signDetected,
|
7373
7403
|
comment: %(A sign detected by the test.).freeze,
|
@@ -7398,7 +7428,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
7398
7428
|
domainIncludes: "schema:WebPage".freeze,
|
7399
7429
|
label: "significantLinks".freeze,
|
7400
7430
|
rangeIncludes: "schema:URL".freeze,
|
7401
|
-
"schema:
|
7431
|
+
"schema:supersededBy" => %(schema:significantLink).freeze,
|
7402
7432
|
type: "rdf:Property".freeze
|
7403
7433
|
property :skills,
|
7404
7434
|
comment: %(Skills required to fulfill this role.).freeze,
|
@@ -7597,7 +7627,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
7597
7627
|
domainIncludes: "schema:Event".freeze,
|
7598
7628
|
label: "subEvents".freeze,
|
7599
7629
|
rangeIncludes: "schema:Event".freeze,
|
7600
|
-
"schema:
|
7630
|
+
"schema:supersededBy" => %(schema:subEvent).freeze,
|
7601
7631
|
type: "rdf:Property".freeze
|
7602
7632
|
property :subOrganization,
|
7603
7633
|
comment: %(A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property.).freeze,
|
@@ -7677,10 +7707,10 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
7677
7707
|
label: "superEvent".freeze,
|
7678
7708
|
rangeIncludes: "schema:Event".freeze,
|
7679
7709
|
type: "rdf:Property".freeze
|
7680
|
-
property :
|
7681
|
-
comment: %(Relates a property to one that
|
7710
|
+
property :supersededBy,
|
7711
|
+
comment: %(Relates a property to one that supersedes it.).freeze,
|
7682
7712
|
domainIncludes: "schema:Property".freeze,
|
7683
|
-
label: "
|
7713
|
+
label: "supersededBy".freeze,
|
7684
7714
|
rangeIncludes: "schema:Property".freeze,
|
7685
7715
|
type: "rdf:Property".freeze
|
7686
7716
|
property :supplyTo,
|
@@ -7851,7 +7881,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
7851
7881
|
domainIncludes: ["schema:MusicPlaylist".freeze, "schema:MusicGroup".freeze],
|
7852
7882
|
label: "tracks".freeze,
|
7853
7883
|
rangeIncludes: "schema:MusicRecording".freeze,
|
7854
|
-
"schema:
|
7884
|
+
"schema:supersededBy" => %(schema:track).freeze,
|
7855
7885
|
type: "rdf:Property".freeze
|
7856
7886
|
property :trailer,
|
7857
7887
|
comment: %(The trailer of a movie or tv/radio series, season, or episode.).freeze,
|
@@ -8062,7 +8092,7 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
|
|
8062
8092
|
domainIncludes: "schema:BuyAction".freeze,
|
8063
8093
|
label: "vendor".freeze,
|
8064
8094
|
rangeIncludes: ["schema:Organization".freeze, "schema:Person".freeze],
|
8065
|
-
"schema:
|
8095
|
+
"schema:supersededBy" => %(schema:seller).freeze,
|
8066
8096
|
subPropertyOf: "schema:participant".freeze,
|
8067
8097
|
type: "rdf:Property".freeze
|
8068
8098
|
property :version,
|
data/lib/rdf/writer.rb
CHANGED
@@ -145,6 +145,7 @@ module RDF
|
|
145
145
|
# @raise [ArgumentError] if no block is provided
|
146
146
|
def self.buffer(*args, &block)
|
147
147
|
options = args.last.is_a?(Hash) ? args.last : {}
|
148
|
+
options[:encoding] ||= Encoding::UTF_8 if RUBY_PLATFORM == "java"
|
148
149
|
raise ArgumentError, "block expected" unless block_given?
|
149
150
|
|
150
151
|
StringIO.open do |buffer|
|
metadata
CHANGED
@@ -1,150 +1,151 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
8
8
|
- Ben Lavender
|
9
9
|
- Gregg Kellogg
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-09-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf-spec
|
17
|
-
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '1.1'
|
22
|
-
- -
|
22
|
+
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: 1.1.5
|
25
|
-
|
25
|
+
type: :development
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
28
|
requirements:
|
27
|
-
- - ~>
|
29
|
+
- - "~>"
|
28
30
|
- !ruby/object:Gem::Version
|
29
31
|
version: '1.1'
|
30
|
-
- -
|
32
|
+
- - ">="
|
31
33
|
- !ruby/object:Gem::Version
|
32
34
|
version: 1.1.5
|
33
|
-
prerelease: false
|
34
|
-
type: :development
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rdf-rdfxml
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1.1'
|
42
37
|
requirement: !ruby/object:Gem::Requirement
|
43
38
|
requirements:
|
44
|
-
- - ~>
|
39
|
+
- - "~>"
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '1.1'
|
47
|
-
prerelease: false
|
48
42
|
type: :development
|
49
|
-
|
50
|
-
name: rdf-rdfa
|
43
|
+
prerelease: false
|
51
44
|
version_requirements: !ruby/object:Gem::Requirement
|
52
45
|
requirements:
|
53
|
-
- - ~>
|
46
|
+
- - "~>"
|
54
47
|
- !ruby/object:Gem::Version
|
55
48
|
version: '1.1'
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rdf-rdfa
|
56
51
|
requirement: !ruby/object:Gem::Requirement
|
57
52
|
requirements:
|
58
|
-
- - ~>
|
53
|
+
- - "~>"
|
59
54
|
- !ruby/object:Gem::Version
|
60
55
|
version: '1.1'
|
61
|
-
prerelease: false
|
62
56
|
type: :development
|
63
|
-
|
64
|
-
name: rdf-turtle
|
57
|
+
prerelease: false
|
65
58
|
version_requirements: !ruby/object:Gem::Requirement
|
66
59
|
requirements:
|
67
|
-
- - ~>
|
60
|
+
- - "~>"
|
68
61
|
- !ruby/object:Gem::Version
|
69
62
|
version: '1.1'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rdf-turtle
|
70
65
|
requirement: !ruby/object:Gem::Requirement
|
71
66
|
requirements:
|
72
|
-
- - ~>
|
67
|
+
- - "~>"
|
73
68
|
- !ruby/object:Gem::Version
|
74
69
|
version: '1.1'
|
75
|
-
prerelease: false
|
76
70
|
type: :development
|
77
|
-
|
78
|
-
name: rdf-xsd
|
71
|
+
prerelease: false
|
79
72
|
version_requirements: !ruby/object:Gem::Requirement
|
80
73
|
requirements:
|
81
|
-
- - ~>
|
74
|
+
- - "~>"
|
82
75
|
- !ruby/object:Gem::Version
|
83
76
|
version: '1.1'
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: rdf-xsd
|
84
79
|
requirement: !ruby/object:Gem::Requirement
|
85
80
|
requirements:
|
86
|
-
- - ~>
|
81
|
+
- - "~>"
|
87
82
|
- !ruby/object:Gem::Version
|
88
83
|
version: '1.1'
|
89
|
-
prerelease: false
|
90
84
|
type: :development
|
91
|
-
|
92
|
-
name: rspec
|
85
|
+
prerelease: false
|
93
86
|
version_requirements: !ruby/object:Gem::Requirement
|
94
87
|
requirements:
|
95
|
-
- - ~>
|
88
|
+
- - "~>"
|
96
89
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
90
|
+
version: '1.1'
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rspec
|
98
93
|
requirement: !ruby/object:Gem::Requirement
|
99
94
|
requirements:
|
100
|
-
- - ~>
|
95
|
+
- - "~>"
|
101
96
|
- !ruby/object:Gem::Version
|
102
97
|
version: '3.0'
|
103
|
-
prerelease: false
|
104
98
|
type: :development
|
105
|
-
|
106
|
-
name: rspec-its
|
99
|
+
prerelease: false
|
107
100
|
version_requirements: !ruby/object:Gem::Requirement
|
108
101
|
requirements:
|
109
|
-
- - ~>
|
102
|
+
- - "~>"
|
110
103
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
104
|
+
version: '3.0'
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: rspec-its
|
112
107
|
requirement: !ruby/object:Gem::Requirement
|
113
108
|
requirements:
|
114
|
-
- - ~>
|
109
|
+
- - "~>"
|
115
110
|
- !ruby/object:Gem::Version
|
116
111
|
version: '1.0'
|
117
|
-
prerelease: false
|
118
112
|
type: :development
|
119
|
-
|
120
|
-
name: webmock
|
113
|
+
prerelease: false
|
121
114
|
version_requirements: !ruby/object:Gem::Requirement
|
122
115
|
requirements:
|
123
|
-
- - ~>
|
116
|
+
- - "~>"
|
124
117
|
- !ruby/object:Gem::Version
|
125
|
-
version: '1.
|
118
|
+
version: '1.0'
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: webmock
|
126
121
|
requirement: !ruby/object:Gem::Requirement
|
127
122
|
requirements:
|
128
|
-
- - ~>
|
123
|
+
- - "~>"
|
129
124
|
- !ruby/object:Gem::Version
|
130
125
|
version: '1.17'
|
131
|
-
prerelease: false
|
132
126
|
type: :development
|
133
|
-
|
134
|
-
name: yard
|
127
|
+
prerelease: false
|
135
128
|
version_requirements: !ruby/object:Gem::Requirement
|
136
129
|
requirements:
|
137
|
-
- - ~>
|
130
|
+
- - "~>"
|
138
131
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
132
|
+
version: '1.17'
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: yard
|
140
135
|
requirement: !ruby/object:Gem::Requirement
|
141
136
|
requirements:
|
142
|
-
- - ~>
|
137
|
+
- - "~>"
|
143
138
|
- !ruby/object:Gem::Version
|
144
139
|
version: '0.8'
|
145
|
-
prerelease: false
|
146
140
|
type: :development
|
147
|
-
|
141
|
+
prerelease: false
|
142
|
+
version_requirements: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0.8'
|
147
|
+
description: RDF.rb is a pure-Ruby library for working with Resource Description Framework
|
148
|
+
(RDF) data.
|
148
149
|
email: public-rdf-ruby@w3.org
|
149
150
|
executables:
|
150
151
|
- rdf
|
@@ -251,24 +252,24 @@ homepage: http://ruby-rdf.github.com/
|
|
251
252
|
licenses:
|
252
253
|
- Public Domain
|
253
254
|
metadata: {}
|
254
|
-
post_install_message:
|
255
|
+
post_install_message:
|
255
256
|
rdoc_options: []
|
256
257
|
require_paths:
|
257
258
|
- lib
|
258
259
|
required_ruby_version: !ruby/object:Gem::Requirement
|
259
260
|
requirements:
|
260
|
-
- -
|
261
|
+
- - ">="
|
261
262
|
- !ruby/object:Gem::Version
|
262
263
|
version: 1.9.2
|
263
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
264
265
|
requirements:
|
265
|
-
- -
|
266
|
+
- - ">="
|
266
267
|
- !ruby/object:Gem::Version
|
267
268
|
version: '0'
|
268
269
|
requirements: []
|
269
270
|
rubyforge_project: rdf
|
270
271
|
rubygems_version: 2.2.2
|
271
|
-
signing_key:
|
272
|
+
signing_key:
|
272
273
|
specification_version: 4
|
273
274
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|
274
275
|
test_files: []
|