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 CHANGED
@@ -1,2 +1,4 @@
1
- /.DS_Store
1
+ .DS_Store
2
+ /doc
2
3
  /pkg
4
+ /.yardoc
@@ -1,3 +1,6 @@
1
+ === 0.0.3
2
+ * Replace require against rdf/rdfxml/patches/* with rdf/n3/patches/*
3
+
1
4
  === 0.0.2
2
5
  * N3 parsing and Turtle serialization substantially complete.
3
6
  * A little more work needed on some tests and some lingering issues in RDF.rb to be resolved.
@@ -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 parser and parse source, specifying type and base-URL
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.2
1
+ 0.0.3
@@ -1,4 +1,4 @@
1
- require 'rdf/rdfxml/patches/graph_properties'
1
+ require 'rdf/n3/patches/graph_properties'
2
2
  module RDF
3
3
  class Graph
4
4
  # Returns ordered rdf:_n objects or rdf:first, rdf:rest for a given subject
@@ -31,4 +31,4 @@ module RDF
31
31
  end
32
32
  end
33
33
  end
34
- end
34
+ end
@@ -1,7 +1,7 @@
1
1
  module RDF::N3::VERSION
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- TINY = 1
4
+ TINY = 3
5
5
  EXTRA = nil
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
@@ -1,4 +1,4 @@
1
- require 'rdf/rdfxml/patches/graph_properties'
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::Write.open("etc/test.n3") do |writer|
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
@@ -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.2"
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-24}
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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-24 00:00:00 -07:00
18
+ date: 2010-06-25 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency