rdf-raptor 2.0.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f524bedbbad075002013ef85da611107b1fbc9c
4
- data.tar.gz: c6588defdb51badb022569508b072cc6e16e1482
3
+ metadata.gz: e4024c120a6e8446c7005d1fe0dd26ff2324217a
4
+ data.tar.gz: eb27b27c8569b47fcb9f8a9cf2ceddb043f3cae3
5
5
  SHA512:
6
- metadata.gz: 0253224a82c7202453af159b3fba9941791a4647a5314bdbbe6e5a6eb7ba325a61ddc8e7420d03de46eb2f1998ae833fd35bbd3314833f30acbb4b19723618e9
7
- data.tar.gz: 0d5b7581ad861980985e47905d4470c2be745d4f644270a258443a07cb65656dcbae1ed0e8a758496bf29264e5131ef4a32bac9a2b1c2e5ea25a64bfb136c777
6
+ metadata.gz: 066e90c8325d4a366203eb172a340a2427b95ccddb8faafd369356d3b0436fe4e9b99db42236fd3aae06cd2769a74d5e21fb2dcefce97c043a7dbaa10bdf6db1
7
+ data.tar.gz: 219ef70aac776f72b92dbb560b8dedca56baa71193208a228c12ce312d18417c701aa55ccccf425069c827651ee720a3b8508d97d14827b6f437cc1ee3252e89
data/README ADDED
@@ -0,0 +1 @@
1
+ ./README.md
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.2.0
@@ -72,7 +72,7 @@ module RDF
72
72
  # `RDF_RAPTOR_BINPATH` environment variables appropriately before
73
73
  # requiring `rdf/raptor`.
74
74
  #
75
- # @see http://rdf.rubyforge.org/
75
+ # @see http://www.rubydoc.info/github/ruby-rdf/rdf/
76
76
  # @see http://librdf.org/raptor/
77
77
  # @see http://wiki.github.com/ffi/ffi/
78
78
  #
@@ -32,7 +32,6 @@ module RDF::Raptor
32
32
  rapper_format :dot
33
33
 
34
34
  writer { RDF::Raptor::Graphviz::Writer }
35
- reader { RDF::Raptor::Graphviz::Reader }
36
35
  end # Format
37
36
 
38
37
  ##
@@ -55,13 +54,5 @@ module RDF::Raptor
55
54
  class Writer < RDF::Raptor::Writer
56
55
  format RDF::Raptor::Graphviz::Format
57
56
  end # Writer
58
-
59
- ##
60
- # Raptor does not implement a Graphviz reader, but we need one in
61
- # order for the Format to pass specs. This class should always
62
- # raise a NoMethodError to indicate it shouldn't be used.
63
- #
64
- class Reader
65
- end
66
57
  end # Graphviz
67
58
  end # RDF::Raptor
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-raptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-10 00:00:00.000000000 Z
12
+ date: 2017-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -29,44 +29,50 @@ dependencies:
29
29
  name: rdf
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '2.2'
35
+ - - "<"
33
36
  - !ruby/object:Gem::Version
34
- version: '2.0'
37
+ version: '4.0'
35
38
  type: :runtime
36
39
  prerelease: false
37
40
  version_requirements: !ruby/object:Gem::Requirement
38
41
  requirements:
39
- - - "~>"
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '2.2'
45
+ - - "<"
40
46
  - !ruby/object:Gem::Version
41
- version: '2.0'
47
+ version: '4.0'
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: yard
44
50
  requirement: !ruby/object:Gem::Requirement
45
51
  requirements:
46
52
  - - "~>"
47
53
  - !ruby/object:Gem::Version
48
- version: '0.8'
54
+ version: '0.9'
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
52
58
  requirements:
53
59
  - - "~>"
54
60
  - !ruby/object:Gem::Version
55
- version: '0.8'
61
+ version: '0.9'
56
62
  - !ruby/object:Gem::Dependency
57
63
  name: rspec
58
64
  requirement: !ruby/object:Gem::Requirement
59
65
  requirements:
60
66
  - - "~>"
61
67
  - !ruby/object:Gem::Version
62
- version: '3.2'
68
+ version: '3.7'
63
69
  type: :development
64
70
  prerelease: false
65
71
  version_requirements: !ruby/object:Gem::Requirement
66
72
  requirements:
67
73
  - - "~>"
68
74
  - !ruby/object:Gem::Version
69
- version: '3.2'
75
+ version: '3.7'
70
76
  - !ruby/object:Gem::Dependency
71
77
  name: rspec-its
72
78
  requirement: !ruby/object:Gem::Requirement
@@ -85,30 +91,36 @@ dependencies:
85
91
  name: rdf-spec
86
92
  requirement: !ruby/object:Gem::Requirement
87
93
  requirements:
88
- - - "~>"
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '2.2'
97
+ - - "<"
89
98
  - !ruby/object:Gem::Version
90
- version: '2.0'
99
+ version: '4.0'
91
100
  type: :development
92
101
  prerelease: false
93
102
  version_requirements: !ruby/object:Gem::Requirement
94
103
  requirements:
95
- - - "~>"
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '2.2'
107
+ - - "<"
96
108
  - !ruby/object:Gem::Version
97
- version: '2.0'
109
+ version: '4.0'
98
110
  - !ruby/object:Gem::Dependency
99
111
  name: rake
100
112
  requirement: !ruby/object:Gem::Requirement
101
113
  requirements:
102
114
  - - "~>"
103
115
  - !ruby/object:Gem::Version
104
- version: '10.0'
116
+ version: '12.0'
105
117
  type: :development
106
118
  prerelease: false
107
119
  version_requirements: !ruby/object:Gem::Requirement
108
120
  requirements:
109
121
  - - "~>"
110
122
  - !ruby/object:Gem::Version
111
- version: '10.0'
123
+ version: '12.0'
112
124
  description: RDF.rb plugin for parsing/serializing NTriples, RDF/XML, Turtle and RDFa
113
125
  data using the Raptor RDF Parser library.
114
126
  email: public-rdf-ruby@w3.org
@@ -163,7 +175,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
175
  requirements:
164
176
  - - ">="
165
177
  - !ruby/object:Gem::Version
166
- version: '2.0'
178
+ version: 2.2.2
167
179
  required_rubygems_version: !ruby/object:Gem::Requirement
168
180
  requirements:
169
181
  - - ">="
@@ -171,10 +183,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
183
  version: '0'
172
184
  requirements:
173
185
  - libraptor2 (>= 2.0)
174
- rubyforge_project: rdf
175
- rubygems_version: 2.4.8
186
+ rubyforge_project:
187
+ rubygems_version: 2.6.14
176
188
  signing_key:
177
189
  specification_version: 4
178
190
  summary: Raptor RDF Parser plugin for RDF.rb.
179
191
  test_files: []
180
- has_rdoc: false
data/README DELETED
@@ -1,222 +0,0 @@
1
- Raptor RDF Extension for RDF.rb
2
- ===================================
3
-
4
- This is an [RDF.rb][] extension that adds support for parsing/serializing [NTriples][],
5
- [RDF/XML][], [Turtle][], [RDFa][], and [Graphviz][] data using the [Raptor RDF Parser][Raptor]
6
- library.
7
-
8
- * <https://github.com/ruby-rdf/rdf-raptor>
9
- * <http://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
10
-
11
- [![Gem Version](https://badge.fury.io/rb/rdf-raptor.png)](http://badge.fury.io/rb/rdf-raptor)
12
- [![Build Status](https://travis-ci.org/ruby-rdf/rdf-raptor.png?branch=master)](http://travis-ci.org/ruby-rdf/rdf-raptor)
13
-
14
- Features
15
- --------
16
-
17
- * Uses the fast [Raptor][] C library.
18
- * Parses and serializes RDF data from/into the NTriples, RDF/XML, and Turtle formats.
19
- * Extracts RDF statements from XHTML+RDFa documents.
20
- * Serializes RDF statements into Graphviz format.
21
- * Provides serialization format autodetection for RDF/XML, Turtle and RDFa.
22
- * Compatible with any operating system supported by Raptor and Ruby.
23
- * Compatible with MRI 2.x, REE, JRuby and Rubinius.
24
-
25
- Examples
26
- --------
27
-
28
- require 'rdf/raptor'
29
-
30
- ### Ensuring Raptor is installed and obtaining the version number
31
-
32
- RDF::Raptor.available? #=> true
33
- RDF::Raptor.version #=> "2.0.8"
34
-
35
- ### Parsing RDF statements from an NTriples file
36
-
37
- RDF::Reader.open("http://datagraph.org/jhacker/foaf.nt") do |reader|
38
- reader.each_statement do |statement|
39
- puts statement.inspect
40
- end
41
- end
42
-
43
- ### Parsing RDF statements from an RDF/XML file
44
-
45
- RDF::Reader.open("http://datagraph.org/jhacker/foaf.rdf") do |reader|
46
- reader.each_statement do |statement|
47
- puts statement.inspect
48
- end
49
- end
50
-
51
- ### Parsing RDF statements from a Turtle file
52
-
53
- RDF::Reader.open("http://datagraph.org/jhacker/foaf.ttl") do |reader|
54
- reader.each_statement do |statement|
55
- puts statement.inspect
56
- end
57
- end
58
-
59
- ### Extracting RDF statements from an HTML+RDFa document
60
-
61
- RDF::Reader.open(url = "http://bblfish.net/", format: :rdfa, base_uri: url) do |reader|
62
- reader.each_statement do |statement|
63
- puts statement.inspect
64
- end
65
- end
66
-
67
- ### Serializing RDF statements into an RDF/XML file
68
-
69
- data = RDF::Repository.load("http://datagraph.org/jhacker/foaf.nt")
70
-
71
- RDF::Writer.open("output.rdf") do |writer|
72
- data.each_statement do |statement|
73
- writer << statement
74
- end
75
- end
76
-
77
- ### Serializing RDF statements into a Turtle file
78
-
79
- data = RDF::Repository.load("http://datagraph.org/jhacker/foaf.nt")
80
-
81
- RDF::Writer.open("output.ttl") do |writer|
82
- data.each_statement do |statement|
83
- writer << statement
84
- end
85
- end
86
-
87
- ### Obtaining the NTriples format specification class
88
-
89
- RDF::Format.for(:ntriples) #=> RDF::Raptor::NTriples::Format
90
- RDF::Format.for("input.nt")
91
- RDF::Format.for(file_name: "input.nt")
92
- RDF::Format.for(file_extension: "nt")
93
- RDF::Format.for(content_type: "application/n-triples")
94
-
95
- ### Obtaining the RDF/XML format specification class
96
-
97
- RDF::Format.for(:rdfxml) #=> RDF::Raptor::RDFXML::Format
98
- RDF::Format.for("input.rdf")
99
- RDF::Format.for(file_name: "input.rdf")
100
- RDF::Format.for(file_extension: "rdf")
101
- RDF::Format.for(content_type: "application/rdf+xml")
102
-
103
- ### Obtaining the Turtle format specification class
104
-
105
- RDF::Format.for(:turtle) #=> RDF::Raptor::Turtle::Format
106
- RDF::Format.for("input.ttl")
107
- RDF::Format.for(file_name: "input.ttl")
108
- RDF::Format.for(file_extension: "ttl")
109
- RDF::Format.for(content_type: "text/turtle")
110
-
111
- ### Obtaining the RDFa format specification class
112
-
113
- RDF::Format.for(:rdfa) #=> RDF::Raptor::RDFa::Format
114
- RDF::Format.for("input.html")
115
- RDF::Format.for(file_name: "input.html")
116
- RDF::Format.for(file_extension: "html")
117
- RDF::Format.for(content_type: "application/xhtml+xml")
118
-
119
- ### Obtaining the Graphviz format specification class
120
-
121
- RDF::Format.for(:graphviz) #=> RDF::Raptor::Graphviz::Format
122
- RDF::Format.for("output.dot")
123
- RDF::Format.for(file_name: "output.dot")
124
- RDF::Format.for(file_extension: "")
125
- RDF::Format.for(content_type: "text/vnd.graphviz")
126
-
127
- Documentation
128
- -------------
129
-
130
- <http://rdf.rubyforge.org/raptor/>
131
-
132
- * {RDF::Raptor}
133
- * {RDF::Raptor::NTriples}
134
- * {RDF::Raptor::Turtle}
135
- * {RDF::Raptor::RDFXML}
136
- * {RDF::Raptor::RDFa}
137
- * {RDF::Raptor::Graphviz}
138
-
139
- Dependencies
140
- ------------
141
-
142
- * [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.0.0)
143
- * [FFI](http://rubygems.org/gems/ffi) (>= 1.0.0)
144
- * [Raptor][] (>= 2.0), the `libraptor` library or the `rapper` binary
145
-
146
- Installation
147
- ------------
148
-
149
- The recommended installation method is via [RubyGems](http://rubygems.org/).
150
- To install the latest official release of the `RDF::Raptor` gem, do:
151
-
152
- % [sudo] gem install rdf-raptor
153
-
154
- To install the required [Raptor][] command-line tools themselves, look for a
155
- `raptor` or `raptor-utils` package in your platform's package management
156
- system. For your convenience, here follow installation instructions for the
157
- Mac and the most common Linux and BSD distributions:
158
-
159
- % [sudo] port install raptor # Mac OS X with MacPorts
160
- % [sudo] fink install raptor-bin # Mac OS X with Fink
161
- % brew install raptor # Mac OS X with Homebrew
162
- % [sudo] aptitude install raptor-utils # Ubuntu / Debian with aptitude
163
- % [sudo] apt-get install libraptor2-0 # Ubuntu / Debian with apt-get
164
- % [sudo] yum install raptor2 # Fedora / CentOS / RHEL
165
- % [sudo] zypper install raptor # openSUSE
166
- % [sudo] emerge raptor # Gentoo Linux
167
- % [sudo] pacman -S raptor # Arch Linux
168
- % [sudo] pkg_add -r raptor # FreeBSD
169
- % [sudo] pkg_add raptor # OpenBSD / NetBSD
170
-
171
- If the `libraptor2` library is in the standard library search path, and
172
- the `rapper` command is in the standard command search path, all should
173
- be well and work fine out of the box. However, if either is in a
174
- non-standard location, be sure to set the `RDF_RAPTOR_LIBPATH` and/or
175
- `RDF_RAPTOR_BINPATH` environment variables appropriately before
176
- requiring `rdf/raptor`.
177
-
178
- Download
179
- --------
180
-
181
- To get a local working copy of the development repository, do:
182
-
183
- % git clone git@github.com:ruby-rdf/rdf-raptor.git
184
-
185
- Alternatively, download the latest development version as a tarball as
186
- follows:
187
-
188
- % wget https://github.com/ruby-rdf/rdf-raptor/tarball/master
189
-
190
- Mailing List
191
- ------------
192
-
193
- * <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
194
-
195
- Authors
196
- -------
197
-
198
- * [Arto Bendiken](https://github.com/bendiken) - <http://ar.to/>
199
- * [John Fieber](https://github.com/jfieber) - <http://github.com/jfieber>
200
-
201
- Contributors
202
- ------------
203
-
204
- * [Ben Lavender](https://github.com/bhuga) - <http://bhuga.net/>
205
- * [David Butler](https://github.com/dwbutler) - <http://github.com/dwbutler>
206
- * [Gregg Kellogg](https://github.com/gkellogg) - <http://greggkellogg.net/>
207
-
208
- License
209
- -------
210
-
211
- This is free and unencumbered public domain software. For more information,
212
- see <http://unlicense.org/> or the accompanying [UNLICENSE][] file.
213
-
214
- [RDF.rb]: https://ruby-rdf.github.io/rdf
215
- [NTriples]: https://en.wikipedia.org/wiki/N-Triples
216
- [RDF/XML]: http://www.w3.org/TR/REC-rdf-syntax/
217
- [Turtle]: https://en.wikipedia.org/wiki/Turtle_(syntax)
218
- [RDFa]: http://rdfa.info/
219
- [Graphviz]: http://www.graphviz.org/
220
- [Raptor]: http://librdf.org/raptor/
221
- [rapper]: http://librdf.org/raptor/rapper.html
222
- [UNLICENSE]:https://github.com/ruby-rdf/rdf-raptor/blob/master/UNLICENSE