Skip to content

Commit 49f6b9e

Browse files
committed
Minor documentation/example and message changes.
1 parent 0f28ea6 commit 49f6b9e

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Release 2.0.0
5555

5656
* Enumerables vs. Enumerators
5757

58-
- `RDF::Queryable#query` and `RDF::Query#execute` not return an enumerable, which may be an enumerator. Most internal uses return an Array now, which aides performance for small result sets, but potentially causes problems for large result sets. Implementations may still return an Enumerator, and Enumerators may be passed as arguments.
58+
- `RDF::Queryable#query` and `RDF::Query#execute` did not return an enumerable, which may be an enumerator. Most internal uses return an Array now, which aides performance for small result sets, but potentially causes problems for large result sets. Implementations may still return an Enumerator, and Enumerators may be passed as arguments.
5959
- `RDF::Enumerable#statements`, `#quads`, `#triples`, `#subjects`, `#predicates`, `#objects`, and `#contexts` now return an array rather than an Enumerator.
6060

6161
* The following vocabularies are deprecated and have been moved to the rdf-vocab gem.

lib/rdf/vocab/writer.rb

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,16 @@ class Format < RDF::Format
5252
# "vs:term_status": "testing"
5353
#
5454
# @example term definition with language-tagged strings
55-
# @example A term definition with tagged values
56-
# property :actor,
57-
# comment: {en: "Subproperty of as:attributedTo that identifies the primary actor"},
58-
# domain: "https://www.w3.org/ns/activitystreams#Activity",
59-
# label: {en: "actor"},
60-
# range: term(
61-
# type: "http://www.w3.org/2002/07/owl#Class",
62-
# unionOf: list("https://www.w3.org/ns/activitystreams#Object", "https://www.w3.org/ns/activitystreams#Link")
63-
# ),
64-
# subPropertyOf: "https://www.w3.org/ns/activitystreams#attributedTo",
65-
# type: "http://www.w3.org/2002/07/owl#ObjectProperty"
55+
# property :actor,
56+
# comment: {en: "Subproperty of as:attributedTo that identifies the primary actor"},
57+
# domain: "https://www.w3.org/ns/activitystreams#Activity",
58+
# label: {en: "actor"},
59+
# range: term(
60+
# type: "http://www.w3.org/2002/07/owl#Class",
61+
# unionOf: list("https://www.w3.org/ns/activitystreams#Object", "https://www.w3.org/ns/activitystreams#Link")
62+
# ),
63+
# subPropertyOf: "https://www.w3.org/ns/activitystreams#attributedTo",
64+
# type: "http://www.w3.org/2002/07/owl#ObjectProperty"
6665
class Writer < RDF::Writer
6766
include RDF::Util::Logger
6867
format RDF::Vocabulary::Format

lib/rdf/vocabulary.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ def strict?; true; end
13251325
def [](name)
13261326
props.fetch(name.to_sym)
13271327
rescue KeyError
1328-
raise KeyError, "#{name} not found in vocabulary #{self.__name__}"
1328+
raise KeyError, "#{name.inspect} not found in vocabulary #{self.__name__}"
13291329
end
13301330
end
13311331
end # StrictVocabulary

0 commit comments

Comments
 (0)