rdf-raptor 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +8 -6
- data/README.md +22 -24
- data/UNLICENSE +1 -1
- data/VERSION +1 -1
- data/etc/doap.ttl +30 -25
- data/lib/rdf/raptor/cli.rb +2 -2
- data/lib/rdf/raptor/ffi/v1/iostream.rb +1 -1
- data/lib/rdf/raptor/ffi/v1/iostream_handler.rb +1 -1
- data/lib/rdf/raptor/ffi/v1/parser.rb +1 -1
- data/lib/rdf/raptor/ffi/v1/serializer.rb +1 -1
- data/lib/rdf/raptor/ffi/v1/statement.rb +1 -1
- data/lib/rdf/raptor/ffi/v1/uri.rb +1 -1
- data/lib/rdf/raptor/ffi/v1.rb +10 -10
- data/lib/rdf/raptor/ffi/v2/iostream.rb +1 -1
- data/lib/rdf/raptor/ffi/v2/iostream_handler.rb +1 -1
- data/lib/rdf/raptor/ffi/v2/namespace.rb +1 -1
- data/lib/rdf/raptor/ffi/v2/parser.rb +1 -1
- data/lib/rdf/raptor/ffi/v2/serializer.rb +1 -1
- data/lib/rdf/raptor/ffi/v2/statement.rb +1 -1
- data/lib/rdf/raptor/ffi/v2/term.rb +1 -1
- data/lib/rdf/raptor/ffi/v2/uri.rb +1 -1
- data/lib/rdf/raptor/ffi/v2.rb +10 -10
- data/lib/rdf/raptor/ffi.rb +1 -1
- data/lib/rdf/raptor/graphviz.rb +1 -1
- data/lib/rdf/raptor/ntriples.rb +1 -1
- data/lib/rdf/raptor/rdfa.rb +1 -1
- data/lib/rdf/raptor/rdfxml.rb +1 -1
- data/lib/rdf/raptor/turtle.rb +1 -1
- data/lib/rdf/raptor.rb +6 -6
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5317a1ad191f7cee2d2c5d355b8a95340a9ccc97eb6b4bce85fa167bd4537e92
|
4
|
+
data.tar.gz: 2244894750cbede3dc7691c2ae936b2c3dd9f7fd3190d6cc47cab1784a35b946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef346f8c5c2a30069f75ccdc4224d065b14a9b581693cc1caa495730acab3540fdbd62508fc3a7dec8b2bfb37cc368c0e278a3c9751981c4d5025f8ec1157fe
|
7
|
+
data.tar.gz: 6ee8542ca51db2ad90679b15afa000be9b6206eee8c31db1a3c820bd28e15be81e8365027031a4dedb6a8dadb3f63d9279c4b9e0db165d485bdea7d110171807
|
data/CONTRIBUTING.md
CHANGED
@@ -6,7 +6,7 @@ Community contributions are essential for keeping Ruby RDF great. We want to kee
|
|
6
6
|
|
7
7
|
This repository uses [Git Flow](https://github.com/nvie/gitflow) to manage development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
|
8
8
|
|
9
|
-
* create or respond to an issue on the [Github Repository](
|
9
|
+
* create or respond to an issue on the [Github Repository](https://github.com/ruby-rdf/rdf-raptor/issues)
|
10
10
|
* Fork and clone the repo:
|
11
11
|
`git clone git@github.com:your-username/rdf-raptor.git`
|
12
12
|
* Install bundle:
|
@@ -28,9 +28,11 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to manage devel
|
|
28
28
|
enough, be assured we will eventually add you in there.
|
29
29
|
* Do note that in order for us to merge any non-trivial changes (as a rule
|
30
30
|
of thumb, additions larger than about 15 lines of code), we need an
|
31
|
-
explicit [public domain dedication][PDD] on record from you
|
31
|
+
explicit [public domain dedication][PDD] on record from you,
|
32
|
+
which you will be asked to agree to on the first commit to a repo within the organization.
|
33
|
+
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
|
32
34
|
|
33
|
-
[YARD]:
|
34
|
-
[YARD-GS]:
|
35
|
-
[PDD]:
|
36
|
-
[pr]: https://github.com/ruby-rdf/rdf
|
35
|
+
[YARD]: https://yardoc.org/
|
36
|
+
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
|
37
|
+
[PDD]: https://unlicense.org/#unlicensing-contributions
|
38
|
+
[pr]: https://github.com/ruby-rdf/rdf/compare/
|
data/README.md
CHANGED
@@ -5,11 +5,9 @@ This is an [RDF.rb][] extension that adds support for parsing/serializing [NTrip
|
|
5
5
|
[RDF/XML][], [Turtle][], [RDFa][], and [Graphviz][] data using the [Raptor RDF Parser][Raptor]
|
6
6
|
library.
|
7
7
|
|
8
|
-
|
9
|
-
|
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)
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/rdf-raptor.png)](https://badge.fury.io/rb/rdf-raptor)
|
9
|
+
[![Build Status](https://github.com/ruby-rdf/rdf-raptor/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-raptor/actions?query=workflow%3ACI)
|
10
|
+
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
|
13
11
|
|
14
12
|
Features
|
15
13
|
--------
|
@@ -18,9 +16,9 @@ Features
|
|
18
16
|
* Parses and serializes RDF data from/into the NTriples, RDF/XML, and Turtle formats.
|
19
17
|
* Extracts RDF statements from XHTML+RDFa documents.
|
20
18
|
* Serializes RDF statements into Graphviz format.
|
21
|
-
* Provides serialization format
|
19
|
+
* Provides serialization format auto-detection for RDF/XML, Turtle and RDFa.
|
22
20
|
* Compatible with any operating system supported by Raptor and Ruby.
|
23
|
-
* Compatible with MRI >= 2.
|
21
|
+
* Compatible with MRI >= 2.6, JRuby and Rubinius.
|
24
22
|
|
25
23
|
Examples
|
26
24
|
--------
|
@@ -30,7 +28,7 @@ Examples
|
|
30
28
|
### Ensuring Raptor is installed and obtaining the version number
|
31
29
|
|
32
30
|
RDF::Raptor.available? #=> true
|
33
|
-
RDF::Raptor.version #=> "2.0
|
31
|
+
RDF::Raptor.version #=> "3.2.0"
|
34
32
|
|
35
33
|
### Parsing RDF statements from an NTriples file
|
36
34
|
|
@@ -127,7 +125,7 @@ Examples
|
|
127
125
|
Documentation
|
128
126
|
-------------
|
129
127
|
|
130
|
-
<
|
128
|
+
<https://www.rubydoc.info/github/ruby-rdf/rdf-raptor/>
|
131
129
|
|
132
130
|
* {RDF::Raptor}
|
133
131
|
* {RDF::Raptor::NTriples}
|
@@ -139,14 +137,14 @@ Documentation
|
|
139
137
|
Dependencies
|
140
138
|
------------
|
141
139
|
|
142
|
-
* [RDF.rb](
|
143
|
-
* [FFI](
|
140
|
+
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
|
141
|
+
* [FFI](https://rubygems.org/gems/ffi) (~> 1.15)
|
144
142
|
* [Raptor][] (>= 2.0), the `libraptor` library or the `rapper` binary
|
145
143
|
|
146
144
|
Installation
|
147
145
|
------------
|
148
146
|
|
149
|
-
The recommended installation method is via [RubyGems](
|
147
|
+
The recommended installation method is via [RubyGems](https://rubygems.org/).
|
150
148
|
To install the latest official release of the `RDF::Raptor` gem, do:
|
151
149
|
|
152
150
|
% [sudo] gem install rdf-raptor
|
@@ -190,33 +188,33 @@ follows:
|
|
190
188
|
Mailing List
|
191
189
|
------------
|
192
190
|
|
193
|
-
* <
|
191
|
+
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
194
192
|
|
195
193
|
Authors
|
196
194
|
-------
|
197
195
|
|
198
|
-
* [Arto Bendiken](https://github.com/
|
199
|
-
* [John Fieber](https://github.com/jfieber) - <
|
196
|
+
* [Arto Bendiken](https://github.com/artob) - <https://ar.to/>
|
197
|
+
* [John Fieber](https://github.com/jfieber) - <https://github.com/jfieber>
|
200
198
|
|
201
199
|
Contributors
|
202
200
|
------------
|
203
201
|
|
204
|
-
* [Ben Lavender](https://github.com/bhuga) - <
|
205
|
-
* [David Butler](https://github.com/dwbutler) - <
|
206
|
-
* [Gregg Kellogg](https://github.com/gkellogg) - <
|
202
|
+
* [Ben Lavender](https://github.com/bhuga) - <https://bhuga.net/>
|
203
|
+
* [David Butler](https://github.com/dwbutler) - <https://github.com/dwbutler>
|
204
|
+
* [Gregg Kellogg](https://github.com/gkellogg) - <https://greggkellogg.net/>
|
207
205
|
|
208
206
|
License
|
209
207
|
-------
|
210
208
|
|
211
209
|
This is free and unencumbered public domain software. For more information,
|
212
|
-
see <
|
210
|
+
see <https://unlicense.org/> or the accompanying [UNLICENSE][] file.
|
213
211
|
|
214
212
|
[RDF.rb]: https://ruby-rdf.github.io/rdf
|
215
213
|
[NTriples]: https://en.wikipedia.org/wiki/N-Triples
|
216
|
-
[RDF/XML]:
|
214
|
+
[RDF/XML]: https://www.w3.org/TR/REC-rdf-syntax/
|
217
215
|
[Turtle]: https://en.wikipedia.org/wiki/Turtle_(syntax)
|
218
|
-
[RDFa]:
|
219
|
-
[Graphviz]:
|
220
|
-
[Raptor]:
|
221
|
-
[rapper]:
|
216
|
+
[RDFa]: https://rdfa.info/
|
217
|
+
[Graphviz]: https://www.graphviz.org/
|
218
|
+
[Raptor]: https://librdf.org/raptor/
|
219
|
+
[rapper]: https://librdf.org/raptor/rapper.html
|
222
220
|
[UNLICENSE]:https://github.com/ruby-rdf/rdf-raptor/blob/master/UNLICENSE
|
data/UNLICENSE
CHANGED
@@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
21
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
22
|
OTHER DEALINGS IN THE SOFTWARE.
|
23
23
|
|
24
|
-
For more information, please refer to <
|
24
|
+
For more information, please refer to <https://unlicense.org/>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.0
|
data/etc/doap.ttl
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
@base <
|
1
|
+
@base <https://rubygems.org/gems/rdf-raptor> .
|
2
2
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
3
3
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
4
4
|
@prefix dc: <http://purl.org/dc/terms/> .
|
@@ -7,49 +7,54 @@
|
|
7
7
|
|
8
8
|
<> a doap:Project ;
|
9
9
|
doap:name "RDF::Raptor" ;
|
10
|
-
doap:homepage <
|
11
|
-
doap:license <
|
10
|
+
doap:homepage <https://ruby-rdf.github.com/rdf-raptor> ;
|
11
|
+
doap:license <https://unlicense.org/1.0/> ;
|
12
12
|
doap:shortdesc "Raptor RDF Parser plugin for RDF.rb."@en ;
|
13
13
|
doap:description "RDF.rb plugin for parsing/serializing RDF/XML, Turtle and RDFa data using the Raptor RDF Parser library."@en ;
|
14
14
|
doap:created "2010-03-23" ;
|
15
|
-
doap:
|
16
|
-
doap:download-page
|
17
|
-
doap:bug-database <
|
18
|
-
doap:blog <
|
19
|
-
doap:developer <
|
15
|
+
doap:programming-language "Ruby" ;
|
16
|
+
doap:download-page <> ;
|
17
|
+
doap:bug-database <https://github.com/ruby-rdf/rdf-raptor/issues> ;
|
18
|
+
doap:blog <https://greggkellogg.net/> ;
|
19
|
+
doap:developer <https://ar.to/#self>,
|
20
20
|
_:jfieber,
|
21
|
-
|
22
|
-
|
23
|
-
doap:
|
24
|
-
doap:
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
_:dwbutler,
|
22
|
+
<https://greggkellogg.net/foaf#me> ;
|
23
|
+
doap:maintainer _:dwbutler, <https://greggkellogg.net/> ;
|
24
|
+
doap:documenter <https://ar.to/#self> ;
|
25
|
+
doap:helper <https://bhuga.net/#ben>,
|
26
|
+
<https://greggkellogg.net/foaf#me> ;
|
27
|
+
foaf:maker <https://ar.to/#self> ;
|
28
|
+
dc:creator <https://ar.to/#self> .
|
28
29
|
|
29
|
-
<
|
30
|
+
<https://ar.to/#self> a foaf:Person ;
|
30
31
|
foaf:name "Arto Bendiken" ;
|
31
32
|
foaf:mbox <mailto:arto.bendiken@gmail.com> ;
|
32
33
|
foaf:mbox_sha1sum "d0737cceb55eb7d740578d2db1bc0727e3ed49ce",
|
33
34
|
"a033f652c84a4d73b8c26d318c2395699dd2bdfb" ;
|
34
|
-
foaf:homepage <
|
35
|
-
rdfs:isDefinedBy <http://datagraph.org/bendiken/foaf> .
|
35
|
+
foaf:homepage <https://ar.to/> .
|
36
36
|
|
37
|
-
<
|
37
|
+
<https://bhuga.net/#ben> a foaf:Person ;
|
38
38
|
foaf:name "Ben Lavender" ;
|
39
39
|
foaf:mbox <mailto:blavender@gmail.com> ;
|
40
40
|
foaf:mbox_sha1sum "dbf45f4ffbd27b67aa84f02a6a31c144727d10af" ;
|
41
|
-
foaf:homepage <
|
42
|
-
|
41
|
+
foaf:homepage <https://bhuga.net/> .
|
42
|
+
|
43
|
+
_:dwbutler a foaf:Person ;
|
44
|
+
foaf:name "David Butler" ;
|
45
|
+
#foaf:mbox <mailto:david.william.butler@gmail.com> ;
|
46
|
+
foaf:mbox_sha1sum "8125fe100c2ed5f6ced2a88bd09a244e1c91682b" ;
|
47
|
+
foaf:homepage <https://github.com/dwbutler> .
|
43
48
|
|
44
49
|
_:jfieber a foaf:Person ;
|
45
50
|
foaf:name "John Fieber" ;
|
46
|
-
foaf:mbox <mailto:jrf@ursamaris.org> ;
|
51
|
+
#foaf:mbox <mailto:jrf@ursamaris.org> ;
|
47
52
|
foaf:mbox_sha1sum "f7653fc1ac0e82ebb32f092389bd5fc728eaae12" ;
|
48
53
|
foaf:homepage <http://ursamaris.org/> .
|
49
54
|
|
50
|
-
<
|
55
|
+
<https://greggkellogg.net/foaf#me> a foaf:Person ;
|
51
56
|
foaf:name "Gregg Kellogg" ;
|
52
57
|
foaf:mbox <mailto:gregg@greggkellogg.net> ;
|
53
58
|
foaf:mbox_sha1sum "35bc44e6d0070e5ad50ccbe0d24403c96af2b9bd" ;
|
54
|
-
foaf:homepage <
|
55
|
-
rdfs:isDefinedBy <
|
59
|
+
foaf:homepage <https://greggkellogg.net/>;
|
60
|
+
rdfs:isDefinedBy <https://greggkellogg.net/foaf> .
|
data/lib/rdf/raptor/cli.rb
CHANGED
@@ -27,7 +27,7 @@ module RDF::Raptor
|
|
27
27
|
# Initializes the CLI reader instance.
|
28
28
|
#
|
29
29
|
# @param [IO, File, RDF::URI, String] input
|
30
|
-
# @param [String, #to_s]
|
30
|
+
# @param [String, #to_s] base_uri ("file:///dev/stdin")
|
31
31
|
# @param [Hash{Symbol => Object}] options
|
32
32
|
# any additional options (see `RDF::Reader#initialize`)
|
33
33
|
# @yield [reader] `self`
|
@@ -113,7 +113,7 @@ module RDF::Raptor
|
|
113
113
|
#
|
114
114
|
# @private
|
115
115
|
# @see RDF::NTriples::Reader#read_node
|
116
|
-
# @see https://github.com/
|
116
|
+
# @see https://github.com/ruby-rdf/rdf-raptor/issues/#issue/9
|
117
117
|
def read_node
|
118
118
|
if node_id = match(NODEID)
|
119
119
|
@nodes ||= {}
|
@@ -3,7 +3,7 @@ module RDF::Raptor::FFI::V1
|
|
3
3
|
# This class provides an I/O stream that can write to filenames, `FILE*`,
|
4
4
|
# strings and user-defined output via callbacks.
|
5
5
|
#
|
6
|
-
# @see
|
6
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-iostream.html
|
7
7
|
class IOStream < ::FFI::ManagedStruct
|
8
8
|
include RDF::Raptor::FFI
|
9
9
|
layout :user_data, :pointer # the actual layout is private
|
@@ -3,7 +3,7 @@ module RDF::Raptor::FFI::V1
|
|
3
3
|
# This class provides the functionality of turning syntaxes into RDF
|
4
4
|
# triples - RDF parsing.
|
5
5
|
#
|
6
|
-
# @see
|
6
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-parser.html
|
7
7
|
class Parser < ::FFI::ManagedStruct
|
8
8
|
include RDF::Raptor::FFI
|
9
9
|
layout :world, :pointer # the actual layout is private
|
@@ -3,7 +3,7 @@ module RDF::Raptor::FFI::V1
|
|
3
3
|
# This class provides the functionality of turning RDF triples into
|
4
4
|
# syntaxes - RDF serializing.
|
5
5
|
#
|
6
|
-
# @see
|
6
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-serializer.html
|
7
7
|
class Serializer < ::FFI::ManagedStruct
|
8
8
|
include RDF::Raptor::FFI
|
9
9
|
layout :world, :pointer # the actual layout is private
|
@@ -4,7 +4,7 @@ module RDF::Raptor::FFI::V1
|
|
4
4
|
# passing URI references. The default internal implementation uses `char*`
|
5
5
|
# strings for URIs, manipulating them and constructing them.
|
6
6
|
#
|
7
|
-
# @see
|
7
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-uri.html
|
8
8
|
class URI < ::FFI::ManagedStruct
|
9
9
|
include RDF::Raptor::FFI
|
10
10
|
include RDF::Resource
|
data/lib/rdf/raptor/ffi/v1.rb
CHANGED
@@ -2,7 +2,7 @@ module RDF::Raptor::FFI
|
|
2
2
|
##
|
3
3
|
# A foreign-function interface (FFI) to `libraptor` 1.4.x.
|
4
4
|
#
|
5
|
-
# @see
|
5
|
+
# @see https://librdf.org/raptor/libraptor.html
|
6
6
|
module V1
|
7
7
|
autoload :IOStream, 'rdf/raptor/ffi/v1/iostream'
|
8
8
|
autoload :IOStreamHandler, 'rdf/raptor/ffi/v1/iostream_handler'
|
@@ -22,27 +22,27 @@ module RDF::Raptor::FFI
|
|
22
22
|
RAPTOR_IDENTIFIER_TYPE_ANONYMOUS = 2
|
23
23
|
RAPTOR_IDENTIFIER_TYPE_LITERAL = 5
|
24
24
|
|
25
|
-
# @see
|
25
|
+
# @see https://librdf.org/raptor/api-1.4/tutorial-initialising-finishing.html
|
26
26
|
attach_function :raptor_init, [], :void
|
27
27
|
attach_function :raptor_finish, [], :void
|
28
28
|
attach_function :raptor_alloc_memory, [:size_t], :pointer
|
29
29
|
attach_function :raptor_calloc_memory, [:size_t, :size_t], :pointer
|
30
30
|
attach_function :raptor_free_memory, [:pointer], :void
|
31
31
|
|
32
|
-
# @see
|
32
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-locator.html
|
33
33
|
typedef :pointer, :raptor_locator
|
34
34
|
attach_function :raptor_locator_line, [:raptor_locator], :int
|
35
35
|
attach_function :raptor_locator_column, [:raptor_locator], :int
|
36
36
|
attach_function :raptor_locator_byte, [:raptor_locator], :int
|
37
37
|
|
38
|
-
# @see
|
38
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-general.html
|
39
39
|
attach_variable :raptor_version_major, :int
|
40
40
|
attach_variable :raptor_version_minor, :int
|
41
41
|
attach_variable :raptor_version_release, :int
|
42
42
|
attach_variable :raptor_version_decimal, :int
|
43
43
|
callback :raptor_message_handler, [:pointer, :raptor_locator, :string], :void
|
44
44
|
|
45
|
-
# @see
|
45
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-uri.html
|
46
46
|
typedef :pointer, :raptor_uri
|
47
47
|
attach_function :raptor_new_uri, [:string], :raptor_uri
|
48
48
|
attach_function :raptor_uri_copy, [:raptor_uri], :raptor_uri
|
@@ -52,7 +52,7 @@ module RDF::Raptor::FFI
|
|
52
52
|
attach_function :raptor_uri_print, [:raptor_uri, :pointer], :void
|
53
53
|
attach_function :raptor_free_uri, [:raptor_uri], :void
|
54
54
|
|
55
|
-
# @see
|
55
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-triples.html
|
56
56
|
typedef :int, :raptor_identifier_type
|
57
57
|
typedef :pointer, :raptor_identifier
|
58
58
|
typedef :pointer, :raptor_statement
|
@@ -61,7 +61,7 @@ module RDF::Raptor::FFI
|
|
61
61
|
attach_function :raptor_print_statement_as_ntriples, [:pointer, :pointer], :void
|
62
62
|
attach_function :raptor_statement_part_as_string, [:pointer, :raptor_identifier_type, :raptor_uri, :pointer], :string
|
63
63
|
|
64
|
-
# @see
|
64
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-parser.html
|
65
65
|
callback :raptor_statement_handler, [:pointer, :raptor_statement], :void
|
66
66
|
typedef :pointer, :raptor_parser
|
67
67
|
typedef :string, :mime_type
|
@@ -81,7 +81,7 @@ module RDF::Raptor::FFI
|
|
81
81
|
attach_function :raptor_get_need_base_uri, [:raptor_parser], :int
|
82
82
|
attach_function :raptor_free_parser, [:raptor_parser], :void
|
83
83
|
|
84
|
-
# @see
|
84
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-iostream.html
|
85
85
|
typedef :pointer, :raptor_iostream
|
86
86
|
attach_function :raptor_new_iostream_from_handler2, [:pointer, :pointer], :raptor_iostream
|
87
87
|
attach_function :raptor_free_iostream, [:raptor_iostream], :void
|
@@ -93,10 +93,10 @@ module RDF::Raptor::FFI
|
|
93
93
|
callback :raptor_iostream_read_bytes_func, [:pointer, :pointer, :size_t, :size_t], :int
|
94
94
|
callback :raptor_iostream_read_eof_func, [:pointer], :int
|
95
95
|
|
96
|
-
# @see
|
96
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-xml-namespace.html
|
97
97
|
typedef :pointer, :raptor_namespace
|
98
98
|
|
99
|
-
# @see
|
99
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-serializer.html
|
100
100
|
typedef :pointer, :raptor_serializer
|
101
101
|
attach_function :raptor_new_serializer, [:string], :raptor_serializer
|
102
102
|
attach_function :raptor_free_serializer, [:raptor_serializer], :void
|
@@ -3,7 +3,7 @@ module RDF::Raptor::FFI::V2
|
|
3
3
|
# This class provides an I/O stream that can write to filenames, `FILE*`,
|
4
4
|
# strings and user-defined output via callbacks.
|
5
5
|
#
|
6
|
-
# @see
|
6
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-iostream.html
|
7
7
|
class IOStream < ::FFI::ManagedStruct
|
8
8
|
include RDF::Raptor::FFI
|
9
9
|
layout :world, :pointer,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module RDF::Raptor::FFI::V2
|
2
2
|
##
|
3
|
-
# @see
|
3
|
+
# @see https://librdf.org/raptor/api/raptor2-section-xml-namespace.html
|
4
4
|
class Namespace < ::FFI::Struct
|
5
5
|
include RDF::Raptor::FFI
|
6
6
|
# @see https://github.com/dajobe/raptor/blob/f4b2597d4279dcb283bf5c32e5435696fd28a8ec/src/raptor_internal.h#L428
|
@@ -3,7 +3,7 @@ module RDF::Raptor::FFI::V2
|
|
3
3
|
# This class provides the functionality of turning syntaxes into RDF
|
4
4
|
# triples - RDF parsing.
|
5
5
|
#
|
6
|
-
# @see
|
6
|
+
# @see https://librdf.org/raptor/api/raptor2-section-parser.html
|
7
7
|
class Parser < ::FFI::ManagedStruct
|
8
8
|
include RDF::Raptor::FFI
|
9
9
|
layout :world, :pointer # the actual layout is private
|
@@ -3,7 +3,7 @@ module RDF::Raptor::FFI::V2
|
|
3
3
|
# This class provides the functionality of turning RDF triples into
|
4
4
|
# syntaxes - RDF serializing.
|
5
5
|
#
|
6
|
-
# @see
|
6
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-serializer.html
|
7
7
|
class Serializer < ::FFI::ManagedStruct
|
8
8
|
include RDF::Raptor::FFI
|
9
9
|
|
@@ -4,7 +4,7 @@ module RDF::Raptor::FFI::V2
|
|
4
4
|
# passing URI references. The default internal implementation uses `char*`
|
5
5
|
# strings for URIs, manipulating them and constructing them.
|
6
6
|
#
|
7
|
-
# @see
|
7
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-uri.html
|
8
8
|
class URI < ::FFI::ManagedStruct
|
9
9
|
include RDF::Raptor::FFI
|
10
10
|
include RDF::Resource
|
data/lib/rdf/raptor/ffi/v2.rb
CHANGED
@@ -2,7 +2,7 @@ module RDF::Raptor::FFI
|
|
2
2
|
##
|
3
3
|
# A foreign-function interface (FFI) to `libraptor` 2.x.
|
4
4
|
#
|
5
|
-
# @see
|
5
|
+
# @see https://librdf.org/raptor/libraptor.html
|
6
6
|
module V2
|
7
7
|
autoload :IOStream, 'rdf/raptor/ffi/v2/iostream'
|
8
8
|
autoload :IOStreamHandler, 'rdf/raptor/ffi/v2/iostream_handler'
|
@@ -25,7 +25,7 @@ module RDF::Raptor::FFI
|
|
25
25
|
RAPTOR_TERM_TYPE_LITERAL = 2
|
26
26
|
RAPTOR_TERM_TYPE_BLANK = 4
|
27
27
|
|
28
|
-
# @see
|
28
|
+
# @see https://librdf.org/raptor/api/tutorial-initialising-finishing.html
|
29
29
|
typedef :pointer, :raptor_world
|
30
30
|
typedef :int, :raptor_version
|
31
31
|
typedef :pointer, :raptor_iostream
|
@@ -35,13 +35,13 @@ module RDF::Raptor::FFI
|
|
35
35
|
attach_function :raptor_calloc_memory, [:size_t, :size_t], :pointer
|
36
36
|
attach_function :raptor_free_memory, [:pointer], :void
|
37
37
|
|
38
|
-
# @see
|
38
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-locator.html
|
39
39
|
typedef :pointer, :raptor_locator
|
40
40
|
attach_function :raptor_locator_line, [:raptor_locator], :int
|
41
41
|
attach_function :raptor_locator_column, [:raptor_locator], :int
|
42
42
|
attach_function :raptor_locator_byte, [:raptor_locator], :int
|
43
43
|
|
44
|
-
# @see
|
44
|
+
# @see https://librdf.org/raptor/api/raptor2-section-general.html
|
45
45
|
attach_variable :raptor_version_string, :string
|
46
46
|
attach_variable :raptor_version_major, :int
|
47
47
|
attach_variable :raptor_version_minor, :int
|
@@ -49,7 +49,7 @@ module RDF::Raptor::FFI
|
|
49
49
|
attach_variable :raptor_version_decimal, :int
|
50
50
|
callback :raptor_message_handler, [:pointer, :raptor_locator, :string], :void
|
51
51
|
|
52
|
-
# @see
|
52
|
+
# @see https://librdf.org/raptor/api-1.4/raptor-section-uri.html
|
53
53
|
typedef :pointer, :raptor_uri
|
54
54
|
attach_function :raptor_new_uri, [:raptor_world, :string], :raptor_uri
|
55
55
|
attach_function :raptor_uri_copy, [:raptor_uri], :raptor_uri
|
@@ -59,7 +59,7 @@ module RDF::Raptor::FFI
|
|
59
59
|
attach_function :raptor_uri_print, [:raptor_uri, :pointer], :void
|
60
60
|
attach_function :raptor_free_uri, [:raptor_uri], :void
|
61
61
|
|
62
|
-
# @see
|
62
|
+
# @see https://librdf.org/raptor/api/raptor2-section-triples.html
|
63
63
|
typedef :int, :raptor_identifier_type
|
64
64
|
typedef :pointer, :raptor_identifier
|
65
65
|
typedef :pointer, :raptor_statement
|
@@ -80,11 +80,11 @@ module RDF::Raptor::FFI
|
|
80
80
|
attach_function :raptor_free_term, [:raptor_term], :void
|
81
81
|
attach_function :raptor_term_ntriples_write, [:raptor_term, :raptor_iostream], :int
|
82
82
|
|
83
|
-
# @see
|
83
|
+
# @see https://librdf.org/raptor/api/raptor2-section-xml-namespace.html
|
84
84
|
typedef :pointer, :raptor_namespace
|
85
85
|
attach_function :raptor_free_namespace, [:raptor_namespace], :void
|
86
86
|
|
87
|
-
# @see
|
87
|
+
# @see https://librdf.org/raptor/api/raptor2-section-parser.html
|
88
88
|
callback :raptor_statement_handler, [:pointer, :raptor_statement], :void
|
89
89
|
callback :raptor_namespace_handler, [:pointer, :raptor_namespace], :void
|
90
90
|
typedef :pointer, :raptor_parser
|
@@ -107,7 +107,7 @@ module RDF::Raptor::FFI
|
|
107
107
|
attach_function :raptor_parser_parse_abort, [], :void
|
108
108
|
attach_function :raptor_free_parser, [:raptor_parser], :void
|
109
109
|
|
110
|
-
# @see
|
110
|
+
# @see https://librdf.org/raptor/api/raptor2-section-iostream.html
|
111
111
|
attach_function :raptor_new_iostream_from_handler, [:raptor_world, :pointer, :pointer], :raptor_iostream
|
112
112
|
attach_function :raptor_new_iostream_to_filename, [:raptor_world, :string], :raptor_iostream
|
113
113
|
attach_function :raptor_new_iostream_to_sink, [:raptor_world], :raptor_iostream
|
@@ -120,7 +120,7 @@ module RDF::Raptor::FFI
|
|
120
120
|
callback :raptor_iostream_read_bytes_func, [:pointer, :pointer, :size_t, :size_t], :int
|
121
121
|
callback :raptor_iostream_read_eof_func, [:pointer], :int
|
122
122
|
|
123
|
-
# @see
|
123
|
+
# @see https://librdf.org/raptor/api/raptor2-section-serializer.html
|
124
124
|
typedef :pointer, :raptor_serializer
|
125
125
|
typedef :string, :prefix
|
126
126
|
attach_function :raptor_new_serializer, [:raptor_world, :string], :raptor_serializer
|
data/lib/rdf/raptor/ffi.rb
CHANGED
data/lib/rdf/raptor/graphviz.rb
CHANGED
@@ -23,7 +23,7 @@ module RDF::Raptor
|
|
23
23
|
# RDF::Format.for(file_extension: "dot")
|
24
24
|
# RDF::Format.for(content_type: "text/vnd.graphviz")
|
25
25
|
#
|
26
|
-
# @see
|
26
|
+
# @see https://www.iana.org/assignments/media-types/text/vnd.graphviz
|
27
27
|
class Format < RDF::Format
|
28
28
|
extend RDF::Raptor::Format
|
29
29
|
|
data/lib/rdf/raptor/ntriples.rb
CHANGED
data/lib/rdf/raptor/rdfa.rb
CHANGED
data/lib/rdf/raptor/rdfxml.rb
CHANGED
data/lib/rdf/raptor/turtle.rb
CHANGED
data/lib/rdf/raptor.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'rdf' # @see
|
1
|
+
require 'rdf' # @see https://rubygems.org/gems/rdf
|
2
2
|
require 'rdf/raptor/format'
|
3
3
|
|
4
4
|
module RDF
|
@@ -72,12 +72,12 @@ module RDF
|
|
72
72
|
# `RDF_RAPTOR_BINPATH` environment variables appropriately before
|
73
73
|
# requiring `rdf/raptor`.
|
74
74
|
#
|
75
|
-
# @see
|
76
|
-
# @see
|
77
|
-
# @see
|
75
|
+
# @see https://www.rubydoc.info/github/ruby-rdf/rdf/
|
76
|
+
# @see https://librdf.org/raptor/
|
77
|
+
# @see https://wiki.github.com/ffi/ffi/
|
78
78
|
#
|
79
|
-
# @author [Arto Bendiken](
|
80
|
-
# @author [John Fieber](
|
79
|
+
# @author [Arto Bendiken](https://github.com/artob)
|
80
|
+
# @author [John Fieber](https://github.com/jfieber)
|
81
81
|
module Raptor
|
82
82
|
LIBRAPTOR = ENV['RDF_RAPTOR_LIBPATH'] || ['libraptor2', 'libraptor2.so.0'] unless const_defined?(:LIBRAPTOR)
|
83
83
|
RAPPER = ENV['RDF_RAPTOR_BINPATH'] || 'rapper' unless const_defined?(:RAPPER)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-raptor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
8
8
|
- John Fieber
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -17,56 +17,56 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.15'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.15'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rdf
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '3.
|
34
|
+
version: '3.2'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '3.
|
41
|
+
version: '3.2'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: yard
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.9
|
48
|
+
version: '0.9'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.9
|
55
|
+
version: '0.9'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '3.
|
62
|
+
version: '3.10'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '3.
|
69
|
+
version: '3.10'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec-its
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,14 +87,14 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '3.
|
90
|
+
version: '3.2'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '3.
|
97
|
+
version: '3.2'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,9 +150,9 @@ files:
|
|
150
150
|
- lib/rdf/raptor/rdfxml.rb
|
151
151
|
- lib/rdf/raptor/turtle.rb
|
152
152
|
- lib/rdf/raptor/version.rb
|
153
|
-
homepage:
|
153
|
+
homepage: https://github.com/ruby-rdf/rdf-raptor
|
154
154
|
licenses:
|
155
|
-
-
|
155
|
+
- Unlicense
|
156
156
|
metadata: {}
|
157
157
|
post_install_message: |2
|
158
158
|
NOTE: RDF::Raptor requires libraptor2 to be installed on the system. Please see the Installation
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
requirements:
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: '2.
|
167
|
+
version: '2.6'
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - ">="
|
@@ -172,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements:
|
174
174
|
- libraptor2 (>= 2.0)
|
175
|
-
rubygems_version: 3.
|
176
|
-
signing_key:
|
175
|
+
rubygems_version: 3.3.3
|
176
|
+
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Raptor RDF Parser plugin for RDF.rb.
|
179
179
|
test_files: []
|