rdf-n3 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -1
- data/History.txt +3 -0
- data/README.rdoc +7 -1
- data/VERSION +1 -1
- data/lib/rdf/n3/patches/seq.rb +2 -2
- data/lib/rdf/n3/version.rb +1 -1
- data/lib/rdf/n3/writer.rb +3 -3
- data/rdf-n3.gemspec +2 -2
- metadata +4 -4
data/.gitignore
CHANGED
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -18,7 +18,7 @@ Install with 'gem install rdf-n3'
|
|
18
18
|
Based on original parser by Patrick Sinclair (metade)
|
19
19
|
|
20
20
|
== Usage:
|
21
|
-
Instantiate a
|
21
|
+
Instantiate a reader from a local file:
|
22
22
|
|
23
23
|
RDF::N3::Reader.open("etc/foaf.n3") do |reader|
|
24
24
|
reader.each_statement do |statement|
|
@@ -26,6 +26,12 @@ Instantiate a parser and parse source, specifying type and base-URL
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
Write a graph to a file:
|
30
|
+
|
31
|
+
RDF::N3::Writer.open("etc/test.n3") do |writer|
|
32
|
+
writer << graph
|
33
|
+
end
|
34
|
+
|
29
35
|
== Dependencies
|
30
36
|
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.2.0)
|
31
37
|
* [Treetop](http://rubygems.org/gems/treetop) (>= 1.4.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/rdf/n3/patches/seq.rb
CHANGED
data/lib/rdf/n3/version.rb
CHANGED
data/lib/rdf/n3/writer.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'rdf/
|
1
|
+
require 'rdf/n3/patches/graph_properties'
|
2
2
|
|
3
3
|
module RDF::N3
|
4
4
|
##
|
@@ -20,7 +20,7 @@ module RDF::N3
|
|
20
20
|
# RDF::Writer.for(:content_type => "text/turtle")
|
21
21
|
#
|
22
22
|
# @example Serializing RDF graph into an Turtle file
|
23
|
-
# RDF::N3::
|
23
|
+
# RDF::N3::Writer.open("etc/test.n3") do |writer|
|
24
24
|
# writer << graph
|
25
25
|
# end
|
26
26
|
#
|
@@ -441,4 +441,4 @@ module RDF::N3
|
|
441
441
|
@stream.write(text)
|
442
442
|
end
|
443
443
|
end
|
444
|
-
end
|
444
|
+
end
|
data/rdf-n3.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rdf-n3}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gregg Kellogg"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-25}
|
13
13
|
s.description = %q{ RDF::N3 is an Notation-3 (n3-rdf) parser for Ruby using the RDF.rb library suite.
|
14
14
|
}
|
15
15
|
s.email = %q{gregg@kellogg-assoc.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-n3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gregg Kellogg
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-06-
|
18
|
+
date: 2010-06-25 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|