rdf-n3 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/History.markdown CHANGED
@@ -84,7 +84,7 @@
84
84
  * Compatible with RDF.rb 0.2.1
85
85
 
86
86
  ## 0.0.3
87
- * Replace require against rdf/rdfxml/patches/* with rdf/n3/patches/*
87
+ * Replace require against rdf/rdfxml/patches/\* with rdf/n3/patches/\*
88
88
 
89
89
  ## 0.0.2
90
90
  * N3 parsing and Turtle serialization substantially complete.
data/README.markdown CHANGED
@@ -68,13 +68,13 @@ The parser is driven through a rules table contained in lib/rdf/n3/reader/meta.r
68
68
  branch rules to indicate productions to be taken based on a current production. Terminals are denoted
69
69
  through a set of regular expressions used to match each type of terminal.
70
70
 
71
- The [meta.rb][file:lib/rdf/n3/reader/meta.rb] file is generated from lib/rdf/n3/reader/n3-selectors.n3
71
+ The [meta.rb](file:lib/rdf/n3/reader/meta.rb) file is generated from lib/rdf/n3/reader/n3-selectors.n3
72
72
  (taken from http://www.w3.org/2000/10/swap/grammar/n3-selectors.n3) which is the result of parsing
73
73
  http://www.w3.org/2000/10/swap/grammar/n3.n3 (along with bnf-rules.n3) using cwm using the following command sequence:
74
74
 
75
75
  cwm n3.n3 bnf-rules.n3 --think --purge --data > n3-selectors.n3
76
76
 
77
- [n3-selectors.n3][file:lib/rdf/n3/reader/n3-selectors.rb] is itself used to generate meta.rb using script/build_meta.
77
+ [n3-selectors.n3](file:lib/rdf/n3/reader/n3-selectors.rb) is itself used to generate meta.rb using script/build_meta.
78
78
 
79
79
  ## TODO
80
80
  * Generate Formulae and solutions using BGP and SPARQL CONSTRUCT mechanisms
@@ -84,7 +84,7 @@ http://www.w3.org/2000/10/swap/grammar/n3.n3 (along with bnf-rules.n3) using cwm
84
84
  * [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.3.4)
85
85
 
86
86
  ## Documentation
87
- Full documentation available on [RubyForge](http://rdf.rubyforge.org/n3)
87
+ Full documentation available on [RubyDoc.info](http://rubydoc.info/github/ruby-rdf/rdf-n3/frames)
88
88
 
89
89
  ### Principle Classes
90
90
  * {RDF::N3}
@@ -117,7 +117,7 @@ Full documentation available on [RubyForge](http://rdf.rubyforge.org/n3)
117
117
  * [Gregg Kellogg](http://github.com/gkellogg) - <http://greggkellogg.net/>
118
118
 
119
119
  ## Contributors
120
- * [Nicholas Humfrey](http://github.com/njh)
120
+ * [Nicholas Humfrey](http://github.com/njh) - <http://njh.me/>
121
121
 
122
122
  ## Contributing
123
123
 
@@ -145,7 +145,7 @@ see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
145
145
  * <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
146
146
 
147
147
  [RDF.rb]: http://rdf.rubyforge.org/
148
- [RDF::Turtle] http://github.com/ruby-rdf/rdf-turtle/
148
+ [RDF::Turtle]:http://github.com/ruby-rdf/rdf-turtle/
149
149
  [N3]: http://www.w3.org/DesignIssues/Notation3.html "Notation-3"
150
150
  [Turtle]: http://www.w3.org/TeamSubmission/turtle/
151
151
  [N-Triples]: http://www.w3.org/2001/sw/RDFCore/ntriples/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
data/lib/rdf/n3/reader.rb CHANGED
@@ -43,7 +43,7 @@ module RDF::N3
43
43
  # @yield [reader] `self`
44
44
  # @yieldparam [RDF::Reader] reader
45
45
  # @yieldreturn [void] ignored
46
- # @raise [Error]:: Raises RDF::ReaderError if validating and an error is found
46
+ # @raise [Error] Raises RDF::ReaderError if validating and an error is found
47
47
  def initialize(input = $stdin, options = {}, &block)
48
48
  super do
49
49
  input.rewind if input.respond_to?(:rewind)
@@ -613,8 +613,8 @@ module RDF::N3
613
613
 
614
614
  # Add debug event to debug array, if specified
615
615
  #
616
- # @param [XML Node, any] node:: XML Node or string for showing context
617
- # @param [String] message::
616
+ # @param [XML Node, any] node XML Node or string for showing context
617
+ # @param [String] message
618
618
  # @yieldreturn [String] appended to message, to allow for lazy-evaulation of message
619
619
  def add_debug(node, message = "")
620
620
  return unless ::RDF::N3.debug? || @options[:debug]
@@ -625,12 +625,12 @@ module RDF::N3
625
625
 
626
626
  # add a statement, object can be literal or URI or bnode
627
627
  #
628
- # @param [Nokogiri::XML::Node, any] node:: XML Node or string for showing context
629
- # @param [URI, Node] subject:: the subject of the statement
630
- # @param [URI] predicate:: the predicate of the statement
631
- # @param [URI, Node, Literal] object:: the object of the statement
632
- # @return [Statement]:: Added statement
633
- # @raise [RDF::ReaderError]:: Checks parameter types and raises if they are incorrect if parsing mode is _validate_.
628
+ # @param [Nokogiri::XML::Node, any] node XML Node or string for showing context
629
+ # @param [URI, Node] subject the subject of the statement
630
+ # @param [URI] predicate the predicate of the statement
631
+ # @param [URI, Node, Literal] object the object of the statement
632
+ # @return [Statement] Added statement
633
+ # @raise [RDF::ReaderError] Checks parameter types and raises if they are incorrect if parsing mode is _validate_.
634
634
  def add_triple(node, subject, predicate, object)
635
635
  context_opts = {:context => @formulae.last.context} if @formulae.last
636
636
 
data/lib/rdf/n3/writer.rb CHANGED
@@ -78,7 +78,7 @@ module RDF::N3
78
78
  # @option options [Boolean] :standard_prefixes (false)
79
79
  # Add standard prefixes to @prefixes, if necessary.
80
80
  # @option options [String] :default_namespace (nil)
81
- # URI to use as default namespace, same as prefixes[nil]
81
+ # URI to use as default namespace, same as `prefixes\[nil\]`
82
82
  # @yield [writer] `self`
83
83
  # @yieldparam [RDF::Writer] writer
84
84
  # @yieldreturn [void]
@@ -246,7 +246,7 @@ module RDF::N3
246
246
  ##
247
247
  # Returns the Turtle/N3 representation of a URI reference.
248
248
  #
249
- # @param [RDF::URI] literal
249
+ # @param [RDF::URI] uri
250
250
  # @param [Hash{Symbol => Object}] options
251
251
  # @return [String]
252
252
  def format_uri(uri, options = {})
@@ -291,7 +291,7 @@ module RDF::N3
291
291
  def top_classes; [RDF::RDFS.Class]; end
292
292
 
293
293
  # Defines order of predicates to to emit at begninning of a resource description. Defaults to
294
- # [rdf:type, rdfs:label, dc:title]
294
+ # `\[rdf:type, rdfs:label, dc:title\]`
295
295
  # @return [Array<URI>]
296
296
  def predicate_order; [RDF.type, RDF::RDFS.label, RDF::DC.title]; end
297
297
 
@@ -406,7 +406,7 @@ module RDF::N3
406
406
 
407
407
  # Add debug event to debug array, if specified
408
408
  #
409
- # @param [String] message::
409
+ # @param [String] message
410
410
  # @yieldreturn [String] appended to message, to allow for lazy-evaulation of message
411
411
  def add_debug(message = "")
412
412
  return unless ::RDF::N3.debug? || @debug
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-n3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,33 +10,43 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-14 00:00:00.000000000Z
13
+ date: 2012-12-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf
17
- requirement: &70163227694360 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.3.4
22
+ version: 0.3.11
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70163227694360
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 0.3.11
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: open-uri-cached
28
- requirement: &70163227693840 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
32
37
  - !ruby/object:Gem::Version
33
- version: 0.0.4
38
+ version: 0.0.5
34
39
  type: :development
35
40
  prerelease: false
36
- version_requirements: *70163227693840
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 0.0.5
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: spira
39
- requirement: &70163227693260 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,54 +54,79 @@ dependencies:
44
54
  version: 0.0.12
45
55
  type: :development
46
56
  prerelease: false
47
- version_requirements: *70163227693260
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: 0.0.12
48
63
  - !ruby/object:Gem::Dependency
49
64
  name: rspec
50
- requirement: &70163227692660 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
51
66
  none: false
52
67
  requirements:
53
68
  - - ! '>='
54
69
  - !ruby/object:Gem::Version
55
- version: 2.8.0
70
+ version: 2.12.0
56
71
  type: :development
57
72
  prerelease: false
58
- version_requirements: *70163227692660
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: 2.12.0
59
79
  - !ruby/object:Gem::Dependency
60
80
  name: rdf-spec
61
- requirement: &70163227692080 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
62
82
  none: false
63
83
  requirements:
64
84
  - - ! '>='
65
85
  - !ruby/object:Gem::Version
66
- version: 0.3.4
86
+ version: 0.3.11
67
87
  type: :development
68
88
  prerelease: false
69
- version_requirements: *70163227692080
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: 0.3.11
70
95
  - !ruby/object:Gem::Dependency
71
96
  name: rdf-rdfxml
72
- requirement: &70163227691560 !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
73
98
  none: false
74
99
  requirements:
75
100
  - - ! '>='
76
101
  - !ruby/object:Gem::Version
77
- version: 0.3.3
102
+ version: 0.3.9
78
103
  type: :development
79
104
  prerelease: false
80
- version_requirements: *70163227691560
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 0.3.9
81
111
  - !ruby/object:Gem::Dependency
82
112
  name: rdf-turtle
83
- requirement: &70163227691040 !ruby/object:Gem::Requirement
113
+ requirement: !ruby/object:Gem::Requirement
84
114
  none: false
85
115
  requirements:
86
116
  - - ! '>='
87
117
  - !ruby/object:Gem::Version
88
- version: 0.1.0
118
+ version: 0.3.2
89
119
  type: :development
90
120
  prerelease: false
91
- version_requirements: *70163227691040
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: 0.3.2
92
127
  - !ruby/object:Gem::Dependency
93
128
  name: rdf-isomorphic
94
- requirement: &70163227690480 !ruby/object:Gem::Requirement
129
+ requirement: !ruby/object:Gem::Requirement
95
130
  none: false
96
131
  requirements:
97
132
  - - ! '>='
@@ -99,18 +134,28 @@ dependencies:
99
134
  version: 0.3.4
100
135
  type: :development
101
136
  prerelease: false
102
- version_requirements: *70163227690480
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: 0.3.4
103
143
  - !ruby/object:Gem::Dependency
104
144
  name: yard
105
- requirement: &70163227689900 !ruby/object:Gem::Requirement
145
+ requirement: !ruby/object:Gem::Requirement
106
146
  none: false
107
147
  requirements:
108
148
  - - ! '>='
109
149
  - !ruby/object:Gem::Version
110
- version: 0.6.0
150
+ version: 0.8.3
111
151
  type: :development
112
152
  prerelease: false
113
- version_requirements: *70163227689900
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: 0.8.3
114
159
  description: RDF::N3 is an Notation-3 reader/writer for the RDF.rb library suite.
115
160
  email: public-rdf-ruby@w3.org
116
161
  executables: []
@@ -153,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
198
  version: '0'
154
199
  requirements: []
155
200
  rubyforge_project: rdf-n3
156
- rubygems_version: 1.8.17
201
+ rubygems_version: 1.8.24
157
202
  signing_key:
158
203
  specification_version: 3
159
204
  summary: Notation3 reader/writer for RDF.rb.