rdf-raptor 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ module RDF::Raptor
30
30
  rapper_format :dot
31
31
 
32
32
  writer { RDF::Raptor::Graphviz::Writer }
33
- end
33
+ end # Format
34
34
 
35
35
  ##
36
36
  # Graphviz serializer.
@@ -51,6 +51,6 @@ module RDF::Raptor
51
51
  #
52
52
  class Writer < RDF::Raptor::Writer
53
53
  format RDF::Raptor::Graphviz::Format
54
- end
55
- end
56
- end
54
+ end # Writer
55
+ end # Graphviz
56
+ end # RDF::Raptor
@@ -0,0 +1,85 @@
1
+ module RDF::Raptor
2
+ ##
3
+ # N-Triples support.
4
+ #
5
+ # @example Requiring the `RDF::Raptor` module
6
+ # require 'rdf/raptor'
7
+ #
8
+ # @example Parsing RDF statements from an N-Triples file
9
+ # RDF::Reader.open("input.nt") do |reader|
10
+ # reader.each_statement do |statement|
11
+ # puts statement.inspect
12
+ # end
13
+ # end
14
+ #
15
+ # @example Serializing RDF statements into an N-Triples file
16
+ # RDF::Writer.open("output.nt") do |writer|
17
+ # graph.each_statement do |statement|
18
+ # writer << statement
19
+ # end
20
+ # end
21
+ #
22
+ # @see http://www.w3.org/TR/rdf-testcases/#ntriples
23
+ module NTriples
24
+ ##
25
+ # N-Triples format specification.
26
+ #
27
+ # @example Obtaining an N-Triples format class
28
+ # RDF::Format.for(:ntriples) #=> RDF::Raptor::NTriples::Format
29
+ # RDF::Format.for("input.nt")
30
+ # RDF::Format.for(:file_name => "input.nt")
31
+ # RDF::Format.for(:file_extension => "nt")
32
+ # RDF::Format.for(:content_type => "text/plain")
33
+ #
34
+ class Format < RDF::Raptor::Format
35
+ content_type 'text/plain', :extension => :nt
36
+ content_encoding 'ascii'
37
+ rapper_format :ntriples
38
+
39
+ reader { RDF::Raptor::NTriples::Reader }
40
+ writer { RDF::Raptor::NTriples::Writer }
41
+ end # Format
42
+
43
+ ##
44
+ # N-Triples parser.
45
+ #
46
+ # @example Obtaining an N-Triples reader class
47
+ # RDF::Reader.for(:ntriples) #=> RDF::Raptor::NTriples::Reader
48
+ # RDF::Reader.for("input.nt")
49
+ # RDF::Reader.for(:file_name => "input.nt")
50
+ # RDF::Reader.for(:file_extension => "nt")
51
+ # RDF::Reader.for(:content_type => "text/plain")
52
+ #
53
+ # @example Parsing RDF statements from an N-Triples file
54
+ # RDF::Reader.open("input.nt") do |reader|
55
+ # reader.each_statement do |statement|
56
+ # puts statement.inspect
57
+ # end
58
+ # end
59
+ #
60
+ class Reader < RDF::Raptor::Reader
61
+ format RDF::Raptor::NTriples::Format
62
+ end # Reader
63
+
64
+ ##
65
+ # N-Triples serializer.
66
+ #
67
+ # @example Obtaining an N-Triples writer class
68
+ # RDF::Writer.for(:ntriples) #=> RDF::Raptor::NTriples::Writer
69
+ # RDF::Writer.for("output.nt")
70
+ # RDF::Writer.for(:file_name => "output.nt")
71
+ # RDF::Writer.for(:file_extension => "nt")
72
+ # RDF::Writer.for(:content_type => "text/plain")
73
+ #
74
+ # @example Serializing RDF statements into an N-Triples file
75
+ # RDF::Writer.open("output.nt") do |writer|
76
+ # graph.each_statement do |statement|
77
+ # writer << statement
78
+ # end
79
+ # end
80
+ #
81
+ class Writer < RDF::Raptor::Writer
82
+ format RDF::Raptor::NTriples::Format
83
+ end # Writer
84
+ end # NTriples
85
+ end # RDF::Raptor
@@ -25,12 +25,12 @@ module RDF::Raptor
25
25
  # RDF::Format.for(:content_type => "application/xhtml+xml")
26
26
  #
27
27
  class Format < RDF::Raptor::Format
28
- content_type 'application/xhtml+xml', :extension => :html
28
+ content_type 'application/xhtml+xml', :aliases => ['text/html'], :extension => :html
29
29
  content_encoding 'utf-8'
30
30
  rapper_format :rdfa
31
31
 
32
32
  reader { RDF::Raptor::RDFa::Reader }
33
- end
33
+ end # Format
34
34
 
35
35
  ##
36
36
  # RDFa extractor.
@@ -51,6 +51,6 @@ module RDF::Raptor
51
51
  #
52
52
  class Reader < RDF::Raptor::Reader
53
53
  format RDF::Raptor::RDFa::Format
54
- end
55
- end
56
- end
54
+ end # Reader
55
+ end # RDFa
56
+ end # RDF::Raptor
@@ -38,7 +38,7 @@ module RDF::Raptor
38
38
 
39
39
  reader { RDF::Raptor::RDFXML::Reader }
40
40
  writer { RDF::Raptor::RDFXML::Writer }
41
- end
41
+ end # Format
42
42
 
43
43
  ##
44
44
  # RDF/XML parser.
@@ -59,7 +59,7 @@ module RDF::Raptor
59
59
  #
60
60
  class Reader < RDF::Raptor::Reader
61
61
  format RDF::Raptor::RDFXML::Format
62
- end
62
+ end # Reader
63
63
 
64
64
  ##
65
65
  # RDF/XML serializer.
@@ -80,6 +80,6 @@ module RDF::Raptor
80
80
  #
81
81
  class Writer < RDF::Raptor::Writer
82
82
  format RDF::Raptor::RDFXML::Format
83
- end
84
- end
85
- end
83
+ end # Writer
84
+ end # RDFXML
85
+ end # RDF::Raptor
@@ -23,7 +23,6 @@ module RDF::Raptor
23
23
  module Turtle
24
24
  ##
25
25
  # Turtle format specification.
26
- # @see http://www.w3.org/TeamSubmission/turtle/
27
26
  #
28
27
  # @example Obtaining a Turtle format class
29
28
  # RDF::Format.for(:turtle) #=> RDF::Raptor::Turtle::Format
@@ -39,7 +38,7 @@ module RDF::Raptor
39
38
 
40
39
  reader { RDF::Raptor::Turtle::Reader }
41
40
  writer { RDF::Raptor::Turtle::Writer }
42
- end
41
+ end # Format
43
42
 
44
43
  ##
45
44
  # Turtle parser.
@@ -60,7 +59,7 @@ module RDF::Raptor
60
59
  #
61
60
  class Reader < RDF::Raptor::Reader
62
61
  format RDF::Raptor::Turtle::Format
63
- end
62
+ end # Reader
64
63
 
65
64
  ##
66
65
  # Turtle serializer.
@@ -81,6 +80,6 @@ module RDF::Raptor
81
80
  #
82
81
  class Writer < RDF::Raptor::Writer
83
82
  format RDF::Raptor::Turtle::Format
84
- end
85
- end
86
- end
83
+ end # Writer
84
+ end # Turtle
85
+ end # RDF::Raptor
@@ -2,7 +2,7 @@ module RDF; module Raptor
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 0
5
+ TINY = 1
6
6
  EXTRA = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arto Bendiken
@@ -15,65 +15,78 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-22 00:00:00 +02:00
18
+ date: 2010-12-27 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rdf
22
+ name: ffi
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 0
31
+ version: "1.0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: rdf
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
25
38
  requirements:
26
39
  - - ~>
27
40
  - !ruby/object:Gem::Version
28
41
  segments:
29
42
  - 0
30
- - 2
43
+ - 3
31
44
  - 0
32
- version: 0.2.0
45
+ version: 0.3.0
33
46
  type: :runtime
34
- version_requirements: *id001
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: yard
37
50
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
51
+ requirement: &id003 !ruby/object:Gem::Requirement
39
52
  requirements:
40
53
  - - ">="
41
54
  - !ruby/object:Gem::Version
42
55
  segments:
43
56
  - 0
44
- - 5
45
57
  - 6
46
- version: 0.5.6
58
+ - 0
59
+ version: 0.6.0
47
60
  type: :development
48
- version_requirements: *id002
61
+ version_requirements: *id003
49
62
  - !ruby/object:Gem::Dependency
50
63
  name: rspec
51
64
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
65
+ requirement: &id004 !ruby/object:Gem::Requirement
53
66
  requirements:
54
67
  - - ">="
55
68
  - !ruby/object:Gem::Version
56
69
  segments:
70
+ - 2
57
71
  - 1
58
- - 3
59
72
  - 0
60
- version: 1.3.0
73
+ version: 2.1.0
61
74
  type: :development
62
- version_requirements: *id003
75
+ version_requirements: *id004
63
76
  - !ruby/object:Gem::Dependency
64
77
  name: rdf-spec
65
78
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
79
+ requirement: &id005 !ruby/object:Gem::Requirement
67
80
  requirements:
68
81
  - - ~>
69
82
  - !ruby/object:Gem::Version
70
83
  segments:
71
84
  - 0
72
- - 2
85
+ - 3
73
86
  - 0
74
- version: 0.2.0
87
+ version: 0.3.0
75
88
  type: :development
76
- version_requirements: *id004
89
+ version_requirements: *id005
77
90
  description: RDF.rb plugin for parsing/serializing RDF/XML, Turtle and RDFa data using the Raptor RDF Parser library.
78
91
  email: public-rdf-ruby@w3.org
79
92
  executables: []
@@ -84,21 +97,29 @@ extra_rdoc_files: []
84
97
 
85
98
  files:
86
99
  - AUTHORS
87
- - CONTRIBUTORS
100
+ - CREDITS
88
101
  - README
89
102
  - UNLICENSE
90
103
  - VERSION
91
104
  - etc/doap.ttl
92
105
  - lib/rdf/raptor/cli.rb
106
+ - lib/rdf/raptor/ffi/v1/iostream.rb
107
+ - lib/rdf/raptor/ffi/v1/iostream_handler.rb
108
+ - lib/rdf/raptor/ffi/v1/parser.rb
109
+ - lib/rdf/raptor/ffi/v1/serializer.rb
110
+ - lib/rdf/raptor/ffi/v1/statement.rb
111
+ - lib/rdf/raptor/ffi/v1/uri.rb
112
+ - lib/rdf/raptor/ffi/v1.rb
93
113
  - lib/rdf/raptor/ffi.rb
94
114
  - lib/rdf/raptor/graphviz.rb
115
+ - lib/rdf/raptor/ntriples.rb
95
116
  - lib/rdf/raptor/rdfa.rb
96
117
  - lib/rdf/raptor/rdfxml.rb
97
118
  - lib/rdf/raptor/turtle.rb
98
119
  - lib/rdf/raptor/version.rb
99
120
  - lib/rdf/raptor.rb
100
121
  has_rdoc: false
101
- homepage: http://rdf.rubyforge.org/
122
+ homepage: http://rdf.rubyforge.org/raptor/
102
123
  licenses:
103
124
  - Public Domain
104
125
  post_install_message:
@@ -128,6 +149,6 @@ rubyforge_project: rdf
128
149
  rubygems_version: 1.3.6
129
150
  signing_key:
130
151
  specification_version: 3
131
- summary: Raptor RDF Parser wrapper for RDF.rb.
152
+ summary: Raptor RDF Parser plugin for RDF.rb.
132
153
  test_files: []
133
154