rdf_context 0.5.7 → 0.5.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. data/History.rdoc +15 -1
  2. data/README.rdoc +2 -0
  3. data/Rakefile +2 -4
  4. data/VERSION +1 -1
  5. data/bin/rdf_context +5 -54
  6. data/lib/rdf_context.rb +5 -0
  7. data/lib/rdf_context/graph.rb +68 -49
  8. data/lib/rdf_context/n3parser.rb +2 -2
  9. data/lib/rdf_context/namespace.rb +1 -1
  10. data/lib/rdf_context/nokogiri_hacks.rb +7 -0
  11. data/lib/rdf_context/parser.rb +57 -13
  12. data/lib/rdf_context/rdfaparser.rb +200 -130
  13. data/lib/rdf_context/rdfxmlparser.rb +8 -8
  14. data/lib/rdf_context/serializer/recursive_serializer.rb +1 -1
  15. data/lib/rdf_context/serializer/turtle_serializer.rb +15 -15
  16. data/lib/rdf_context/serializer/xml_serializer.rb +8 -8
  17. data/lib/rdf_context/store/memory_store.rb +14 -14
  18. data/lib/rdf_context/store/sqlite3_store.rb +4 -4
  19. data/lib/rdf_context/uriref.rb +11 -4
  20. data/script/console +1 -3
  21. data/script/tc +44 -0
  22. data/spec/.gitignore +1 -0
  23. data/spec/aggregate_graph_spec.rb +1 -0
  24. data/spec/bnode_spec.rb +2 -1
  25. data/spec/conjunctive_graph_spec.rb +1 -0
  26. data/spec/cwm_spec.rb +1 -0
  27. data/spec/duration_spec.rb +1 -0
  28. data/spec/graph_spec.rb +27 -0
  29. data/spec/list_store_spec.rb +1 -0
  30. data/spec/literal_spec.rb +1 -0
  31. data/spec/matchers.rb +1 -1
  32. data/spec/memory_store_spec.rb +1 -0
  33. data/spec/n3parser_spec.rb +1 -0
  34. data/spec/namespaces_spec.rb +1 -0
  35. data/spec/parser_spec.rb +1 -0
  36. data/spec/rdf_helper.rb +4 -4
  37. data/spec/rdfa_helper.rb +24 -0
  38. data/spec/rdfa_parser_spec.rb +6 -36
  39. data/spec/rdfcore/.gitignore +1 -0
  40. data/spec/rdfxml_spec.rb +1 -0
  41. data/spec/sqlite3_store_spec.rb +1 -0
  42. data/spec/string_hacks_spec.rb +2 -0
  43. data/spec/swap_test/.gitignore +1 -0
  44. data/spec/triple_spec.rb +1 -0
  45. data/spec/turtle/.gitignore +1 -0
  46. data/spec/turtle_serializer_spec.rb +3 -2
  47. data/spec/turtle_spec.rb +1 -0
  48. data/spec/uriref_spec.rb +13 -12
  49. data/spec/xml_serializer_spec.rb +7 -6
  50. metadata +26 -61
  51. data/spec/html4-manifest.yml +0 -4937
  52. data/spec/html5-manifest.yml +0 -4937
  53. data/spec/rdfcore/Manifest.yml +0 -6242
  54. data/spec/swap_test/n3parser.yml +0 -773
  55. data/spec/swap_test/regression.yml +0 -902
  56. data/spec/turtle/manifest-bad.yml +0 -807
  57. data/spec/turtle/manifest.yml +0 -807
  58. data/spec/xhtml-manifest.yml +0 -3901
  59. data/spec/xhtml11-manifest.yml +0 -4405
data/spec/.gitignore ADDED
@@ -0,0 +1 @@
1
+ /*.yml
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
 
3
4
  describe "AggregateGraph" do
data/spec/bnode_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  describe "Blank nodes" do
3
4
  before(:all) { @context = {} }
@@ -25,7 +26,7 @@ describe "Blank nodes" do
25
26
  end
26
27
 
27
28
  it "should be able to determine inequality" do
28
- other = URIRef.new('http://somehost.com/wherever.xml')
29
+ other = URIRef.intern('http://somehost.com/wherever.xml')
29
30
  should_not == other
30
31
  end
31
32
 
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
 
3
4
  describe "ConjunctiveGraph" do
data/spec/cwm_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  include RdfContext
3
4
 
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  describe "Duration" do
3
4
  it "should create from Hash" do
data/spec/graph_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
 
3
4
  describe "Graphs" do
@@ -454,6 +455,32 @@ HERE
454
455
  g.add_seq(@ex.List, RDF_NS.first, [])
455
456
  g.seq(@ex.List).should == []
456
457
  end
458
+
459
+ it "should return a list with a predicate" do
460
+ g = Graph.new(:store => ListStore.new)
461
+ g.add_seq(@ex.List, @ex.includes, [@ex.john, @ex.jane, @ex.rick])
462
+ g.seq(@ex.List, @ex.includes).should == [@ex.john, @ex.jane, @ex.rick]
463
+ end
464
+
465
+ it "should add a list with a predicate" do
466
+ g = Graph.new(:store => ListStore.new)
467
+ g.add_seq(@ex.List, @ex.includes, [@ex.john, @ex.jane, @ex.rick])
468
+ l = g.properties(@ex.List)[@ex.includes.to_s].first
469
+ l.should be_a(BNode)
470
+ g.seq(l).should == [@ex.john, @ex.jane, @ex.rick]
471
+ end
472
+
473
+ it "should remove existing sequence when adding entry to sequence" do
474
+ g = Graph.new(:store => ListStore.new)
475
+ g.add_seq(@ex.List, @ex.includes, [@ex.john, @ex.jane, @ex.rick])
476
+ g.add_seq(@ex.List, @ex.includes, [@ex.john, @ex.jane, @ex.rick, @ex.julie])
477
+ puts g.properties(@ex.List).inspect
478
+ l = g.properties(@ex.List)[@ex.includes.to_s].first
479
+ l.should be_a(BNode)
480
+ g.seq(l).should == [@ex.john, @ex.jane, @ex.rick, @ex.julie]
481
+
482
+ g.triples(Triple.new(nil, RDF_NS.first, @ex.john)).length.should == 1
483
+ end
457
484
  end
458
485
  end
459
486
 
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  require File.join(File.dirname(__FILE__), 'store_helper')
3
4
 
data/spec/literal_spec.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ $:.unshift "."
2
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
3
4
 
4
5
  describe "Literals: " do
data/spec/matchers.rb CHANGED
@@ -111,7 +111,7 @@ module Matchers
111
111
 
112
112
  @results = @query.execute(model)
113
113
  #puts "Redland query results: #{@results.inspect}"
114
- if @expected_results
114
+ if @expected_results && @results
115
115
  @results.is_boolean? && @results.get_boolean?
116
116
  else
117
117
  @results.nil? || @results.is_boolean? && !@results.get_boolean?
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  require File.join(File.dirname(__FILE__), 'store_helper')
3
4
 
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ $:.unshift "."
2
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
3
4
  include RdfContext
4
5
 
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
 
3
4
  describe "Namespace" do
data/spec/parser_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  include RdfContext
3
4
 
data/spec/rdf_helper.rb CHANGED
@@ -55,17 +55,17 @@ module RdfHelper
55
55
  if statement.is_type?
56
56
  self.rdf_type = statement.object.short_name
57
57
  elsif statement.predicate.short_name =~ /Document\Z/i
58
- puts "#{statement.predicate.short_name}: #{statement.object.inspect}" if $DEBUG
58
+ puts "#{statement.predicate.short_name}: #{statement.object.inspect}" if ::RdfContext::debug?
59
59
  self.send("#{statement.predicate.short_name}=", statement.object.to_s.sub(uri_prefix, test_dir))
60
- puts "#{statement.predicate.short_name}: " + self.send("#{statement.predicate.short_name}") if $DEBUG
60
+ puts "#{statement.predicate.short_name}: " + self.send("#{statement.predicate.short_name}") if ::RdfContext::debug?
61
61
  if statement.predicate.short_name == "inputDocument"
62
62
  self.about ||= statement.object
63
63
  self.name ||= statement.subject.short_name
64
64
  end
65
65
  elsif statement.predicate.short_name == "referenceOutput"
66
- puts "referenceOutput: #{statement.object.inspect}" if $DEBUG
66
+ puts "referenceOutput: #{statement.object.inspect}" if ::RdfContext::debug?
67
67
  outputDocument = statement.object.to_s.sub(uri_prefix, test_dir)
68
- puts "referenceOutput: " + self.send("#{statement.predicate.short_name}") if $DEBUG
68
+ puts "referenceOutput: " + self.send("#{statement.predicate.short_name}") if ::RdfContext::debug?
69
69
  elsif self.respond_to?("#{statement.predicate.short_name}=")
70
70
  self.send("#{statement.predicate.short_name}=", statement.object.to_s)
71
71
  end
data/spec/rdfa_helper.rb CHANGED
@@ -141,6 +141,10 @@ module RdfaHelper
141
141
  def inputDocument; self.name + ".txt"; end
142
142
  def outputDocument; self.name + ".sparql"; end
143
143
 
144
+ def version
145
+ suite == "xhtml11" ? :rdfa_1_1 : :rdfa_1_0
146
+ end
147
+
144
148
  # Run test case, yields input for parser to create triples
145
149
  def run_test
146
150
  rdfa_string = input
@@ -225,3 +229,23 @@ module RdfaHelper
225
229
  end
226
230
  end
227
231
  end
232
+
233
+ module OpenURI
234
+ #alias_method :open_uri_orig, :open_uri
235
+ def self.open_uri(uri)
236
+ case uri
237
+ when %r(http://rdfa.digitalbazaar.com/test-suite/test-cases/\w+)
238
+ file = uri.to_s.sub(%r(http://rdfa.digitalbazaar.com/test-suite/test-cases/\w+),
239
+ File.join(File.expand_path(File.dirname(__FILE__)), 'rdfa-test-suite', 'tests'))
240
+ puts "file: #{file}"
241
+ File.open(file)
242
+ when "http://www.w3.org/1999/xhtml/vocab"
243
+ file = File.join(File.expand_path(File.dirname(__FILE__)), 'rdfa-test-suite', 'profile', "xhv")
244
+ File.open(file)
245
+ when "http://www.w3.org/2005/10/profile"
246
+ "PROFILE"
247
+ end
248
+ end
249
+ end
250
+
251
+
@@ -1,44 +1,13 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
 
3
4
  require 'rdfa_helper'
4
- require 'patron'
5
5
 
6
6
  # Time to add your specs!
7
7
  # http://rspec.info/
8
8
  describe "RDFa parser" do
9
9
  before(:each) do
10
10
  @parser = RdfaParser.new
11
-
12
- # Don't load external profiles when testing
13
- basic_resp = mock("basic_resp")
14
- basic_resp.stub(:status).and_return(200)
15
- basic_resp.stub(:body).and_return(File.read(File.join(RDFA_DIR, "profiles", "basic.html")))
16
-
17
- foaf_resp = mock("foaf_resp")
18
- foaf_resp.stub(:status).and_return(200)
19
- foaf_resp.stub(:body).and_return(File.read(File.join(RDFA_DIR, "profiles", "foaf.html")))
20
-
21
- hcard_resp = mock("hcard_resp")
22
- hcard_resp.stub(:status).and_return(200)
23
- hcard_resp.stub(:body).and_return("HCARD")
24
-
25
- profile_resp = mock("profile_resp")
26
- profile_resp.stub(:status).and_return(200)
27
- profile_resp.stub(:body).and_return("PROFILE")
28
-
29
- xhv_resp = mock("xhv_resp")
30
- xhv_resp.stub(:status).and_return(200)
31
- xhv_resp.stub(:body).and_return(File.read(File.join(RDFA_DIR, "profiles", "xhv.html")))
32
-
33
- sess = mock("session")
34
- sess.stub(:base_url=)
35
- sess.stub(:timeout=)
36
- sess.stub(:get).with("http://www.w3.org/2007/08/pyRdfa/profiles/foaf").and_return(foaf_resp)
37
- sess.stub(:get).with("http://www.w3.org/2007/08/pyRdfa/profiles/basic").and_return(basic_resp)
38
- sess.stub(:get).with("http://www.w3.org/1999/xhtml/vocab").and_return(xhv_resp)
39
- sess.stub(:get).with("http://microformats.org/profiles/hcard").and_return(hcard_resp)
40
- sess.stub(:get).with("http://www.w3.org/2005/10/profile").and_return(profile_resp)
41
- Patron::Session.stub!(:new).and_return(sess)
42
11
  end
43
12
 
44
13
  it "should parse simple doc" do
@@ -85,14 +54,15 @@ describe "RDFa parser" do
85
54
  <?xml version="1.0" encoding="UTF-8"?>
86
55
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
87
56
  <html xmlns="http://www.w3.org/1999/xhtml"
88
- xmlns:dc="http://purl.org/dc/elements/1.1/">
57
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
58
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
89
59
  <head>
90
60
  <title>Test 0011</title>
91
61
  </head>
92
62
  <body>
93
63
  <div about="">
94
64
  Author: <span property="dc:creator">Albert Einstein</span>
95
- <h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
65
+ <h2 property="dc:title" datatype="rdf:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
96
66
  </div>
97
67
  </body>
98
68
  </html>
@@ -155,7 +125,7 @@ describe "RDFa parser" do
155
125
  #puts t.results
156
126
  begin
157
127
  t.run_test do |rdfa_string, rdfa_parser|
158
- rdfa_parser.parse(rdfa_string, t.informationResourceInput, :debug => [])
128
+ rdfa_parser.parse(rdfa_string, t.informationResourceInput, :debug => [], :version => t.version)
159
129
  end
160
130
  rescue SparqlException => e
161
131
  pending(e.message) { raise }
@@ -171,7 +141,7 @@ describe "RDFa parser" do
171
141
  specify "test #{t.name}: #{t.title}#{", (negative test)" unless t.expectedResults}" do
172
142
  begin
173
143
  t.run_test do |rdfa_string, rdfa_parser|
174
- rdfa_parser.parse(rdfa_string, t.informationResourceInput, :debug => [])
144
+ rdfa_parser.parse(rdfa_string, t.informationResourceInput, :debug => [], :version => t.version)
175
145
  end
176
146
  rescue SparqlException => e
177
147
  pending(e.message) { raise }
@@ -0,0 +1 @@
1
+ /*.yml
data/spec/rdfxml_spec.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ $:.unshift "."
2
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
3
4
  include RdfContext
4
5
 
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  require File.join(File.dirname(__FILE__), 'store_helper')
3
4
 
@@ -1,5 +1,7 @@
1
1
  # coding: utf-8
2
+ $:.unshift "."
2
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
4
+
3
5
  describe "String RDF encoding" do
4
6
  {
5
7
  "Gregg" => 'Gregg',
@@ -0,0 +1 @@
1
+ /*.yml
data/spec/triple_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
 
3
4
  describe "Triples" do
@@ -0,0 +1 @@
1
+ /*.yml
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  include RdfContext
3
4
 
@@ -25,9 +26,9 @@ describe "Turtle Serializer" do
25
26
  end
26
27
 
27
28
  it "should use qname URIs with empty prefix" do
28
- input = %(@prefix : <http://a/> . <http://a/b> <http://a/c> <http://a/d> .)
29
+ input = %(@prefix : <http://np/> . <http://np/b> <http://np/c> <http://np/d> .)
29
30
  serialize(input, nil,
30
- %r(^@prefix : <http://a/> \.$),
31
+ %r(^@prefix : <http://np/> \.$),
31
32
  %r(^:b :c :d \.$)
32
33
  )
33
34
  end
data/spec/turtle_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  include RdfContext
3
4
 
data/spec/uriref_spec.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ $:.unshift "."
2
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
3
4
  require 'webrick'
4
5
  include WEBrick
@@ -58,21 +59,21 @@ describe "URI References" do
58
59
  end
59
60
 
60
61
  describe "QName" do
61
- it "should find with trailing /" do
62
- ex = Namespace.new("http://example.org/foo/", "ex")
63
- ex.bar.to_qname(ex.uri.to_s => ex).should == "ex:bar"
64
- end
62
+ it "should find with trailing /" do
63
+ ex = Namespace.new("http://example.org/foo/", "ex")
64
+ ex.bar.to_qname(ex.uri.to_s => ex).should == "ex:bar"
65
+ end
65
66
 
66
- it "should find with trailing #" do
67
- ex = Namespace.new("http://example.org/foo#", "ex")
68
- ex.bar.to_qname(ex.uri.to_s => ex).should == "ex:bar"
69
- end
67
+ it "should find with trailing #" do
68
+ ex = Namespace.new("http://example.org/foo#", "ex")
69
+ ex.bar.to_qname(ex.uri.to_s => ex).should == "ex:bar"
70
+ end
70
71
 
71
- it "should find with trailing word" do
72
- ex = Namespace.new("http://example.org/foo", "ex")
73
- ex.bar.to_qname(ex.uri.to_s => ex).should == "ex:bar"
74
- end
72
+ it "should find with trailing word" do
73
+ ex = Namespace.new("http://example.org/foo", "ex")
74
+ ex.bar.to_qname(ex.uri.to_s => ex).should == "ex:bar"
75
75
  end
76
+ end
76
77
 
77
78
  describe "namespace" do
78
79
  it "should find with trailing /" do
@@ -1,3 +1,4 @@
1
+ $:.unshift "."
1
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
3
  include RdfContext
3
4
 
@@ -297,7 +298,7 @@ describe "XML Serializer" do
297
298
  @graph.add_triple("http://release/", FOO_NS.pred, FOO_NS.obj)
298
299
  @graph.bind(Namespace.new(FOO_NS.uri, ""))
299
300
 
300
- #$DEBUG = true
301
+ #::RdfContext::debug = true
301
302
  xml = serialize(:max_depth => 1, :attributes => :untyped)
302
303
  #puts xml
303
304
  xml.should =~ /<Release/
@@ -350,13 +351,13 @@ describe "XML Serializer" do
350
351
  end
351
352
 
352
353
  def check_xpaths(doc, paths)
353
- puts doc if $DEBUG || $verbose
354
+ puts doc if ::RdfContext::debug? || $verbose
354
355
  doc = Nokogiri::XML.parse(doc)
355
356
  #puts "doc: #{doc.to_s}"
356
357
  doc.should be_a(Nokogiri::XML::Document)
357
358
  paths.each_pair do |path, value|
358
- puts "xpath: #{path.inspect}" if $DEBUG
359
- puts doc.root.at_xpath(path, @namespaces).inspect if $DEBUG
359
+ puts "xpath: #{path.inspect}" if ::RdfContext::debug?
360
+ puts doc.root.at_xpath(path, @namespaces).inspect if ::RdfContext::debug?
360
361
  case value
361
362
  when false
362
363
  doc.root.at_xpath(path, doc.namespaces).should be_nil
@@ -378,9 +379,9 @@ describe "XML Serializer" do
378
379
 
379
380
  # Serialize ntstr to a string and compare against regexps
380
381
  def serialize(options)
381
- #$DEBUG = true
382
+ #::RdfContext::debug = true
382
383
  result = @graph.serialize(options.merge(:format => :xml))
383
- #$DEBUG = false
384
+ #::RdfContext::debug = false
384
385
  result
385
386
  end
386
387
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf_context
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 69
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 8
10
+ - 1
11
+ version: 0.5.8.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Gregg Kellogg
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-07-24 00:00:00 -07:00
19
+ date: 2010-09-01 00:00:00 -07:00
19
20
  default_executable: rdf_context
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -26,12 +27,12 @@ dependencies:
26
27
  requirements:
27
28
  - - ">="
28
29
  - !ruby/object:Gem::Version
29
- hash: 15
30
+ hash: 7
30
31
  segments:
31
32
  - 2
33
+ - 2
32
34
  - 0
33
- - 0
34
- version: 2.0.0
35
+ version: 2.2.0
35
36
  type: :runtime
36
37
  version_requirements: *id001
37
38
  - !ruby/object:Gem::Dependency
@@ -50,42 +51,26 @@ dependencies:
50
51
  version: 1.4.0
51
52
  type: :runtime
52
53
  version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: whatlanguage
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 23
62
- segments:
63
- - 1
64
- - 0
65
- - 0
66
- version: 1.0.0
67
- type: :runtime
68
- version_requirements: *id003
69
54
  - !ruby/object:Gem::Dependency
70
55
  name: nokogiri
71
56
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ requirement: &id003 !ruby/object:Gem::Requirement
73
58
  none: false
74
59
  requirements:
75
60
  - - ">="
76
61
  - !ruby/object:Gem::Version
77
- hash: 29
62
+ hash: 1
78
63
  segments:
79
64
  - 1
65
+ - 4
80
66
  - 3
81
- - 3
82
- version: 1.3.3
67
+ version: 1.4.3
83
68
  type: :runtime
84
- version_requirements: *id004
69
+ version_requirements: *id003
85
70
  - !ruby/object:Gem::Dependency
86
71
  name: builder
87
72
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
73
+ requirement: &id004 !ruby/object:Gem::Requirement
89
74
  none: false
90
75
  requirements:
91
76
  - - ">="
@@ -97,27 +82,11 @@ dependencies:
97
82
  - 2
98
83
  version: 2.1.2
99
84
  type: :runtime
100
- version_requirements: *id005
101
- - !ruby/object:Gem::Dependency
102
- name: patron
103
- prerelease: false
104
- requirement: &id006 !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- hash: 3
110
- segments:
111
- - 0
112
- - 4
113
- - 6
114
- version: 0.4.6
115
- type: :runtime
116
- version_requirements: *id006
85
+ version_requirements: *id004
117
86
  - !ruby/object:Gem::Dependency
118
87
  name: rspec
119
88
  prerelease: false
120
- requirement: &id007 !ruby/object:Gem::Requirement
89
+ requirement: &id005 !ruby/object:Gem::Requirement
121
90
  none: false
122
91
  requirements:
123
92
  - - ">="
@@ -127,11 +96,11 @@ dependencies:
127
96
  - 0
128
97
  version: "0"
129
98
  type: :development
130
- version_requirements: *id007
99
+ version_requirements: *id005
131
100
  - !ruby/object:Gem::Dependency
132
101
  name: activesupport
133
102
  prerelease: false
134
- requirement: &id008 !ruby/object:Gem::Requirement
103
+ requirement: &id006 !ruby/object:Gem::Requirement
135
104
  none: false
136
105
  requirements:
137
106
  - - ">="
@@ -143,11 +112,11 @@ dependencies:
143
112
  - 0
144
113
  version: 2.3.0
145
114
  type: :development
146
- version_requirements: *id008
115
+ version_requirements: *id006
147
116
  - !ruby/object:Gem::Dependency
148
117
  name: yard
149
118
  prerelease: false
150
- requirement: &id009 !ruby/object:Gem::Requirement
119
+ requirement: &id007 !ruby/object:Gem::Requirement
151
120
  none: false
152
121
  requirements:
153
122
  - - ">="
@@ -157,7 +126,7 @@ dependencies:
157
126
  - 0
158
127
  version: "0"
159
128
  type: :development
160
- version_requirements: *id009
129
+ version_requirements: *id007
161
130
  description: " RdfContext parses RDF/XML, RDFa and N3-rdf into a Graph object. It also serializes RDF/XML and N-Triples from the Graph.\n\n * Fully compliant RDF/XML parser.\n * Fully compliant XHTML/RDFa 1.0 parser.\n * N3-rdf parser\n * N-Triples and RDF/XML serializer\n * Graph serializes into RDF/XML and N-Triples.\n * ConjunctiveGraph, named Graphs and contextual storage modules.\n \n Install with 'gem install rdf_context'\n"
162
131
  email: gregg@kellogg-assoc.com
163
132
  executables:
@@ -208,14 +177,14 @@ files:
208
177
  - lib/rdf_context/triple.rb
209
178
  - lib/rdf_context/uriref.rb
210
179
  - script/console
180
+ - script/tc
181
+ - spec/.gitignore
211
182
  - spec/aggregate_graph_spec.rb
212
183
  - spec/bnode_spec.rb
213
184
  - spec/conjunctive_graph_spec.rb
214
185
  - spec/cwm_spec.rb
215
186
  - spec/duration_spec.rb
216
187
  - spec/graph_spec.rb
217
- - spec/html4-manifest.yml
218
- - spec/html5-manifest.yml
219
188
  - spec/list_store_spec.rb
220
189
  - spec/literal_spec.rb
221
190
  - spec/matchers.rb
@@ -340,8 +309,8 @@ files:
340
309
  - spec/rdfa-triples/1001.nt
341
310
  - spec/rdfa_helper.rb
342
311
  - spec/rdfa_parser_spec.rb
312
+ - spec/rdfcore/.gitignore
343
313
  - spec/rdfcore/Manifest.rdf
344
- - spec/rdfcore/Manifest.yml
345
314
  - spec/rdfcore/amp-in-url/test001.nt
346
315
  - spec/rdfcore/amp-in-url/test001.rdf
347
316
  - spec/rdfcore/datatypes-intensional/test001.nt
@@ -700,6 +669,7 @@ files:
700
669
  - spec/store_helper.rb
701
670
  - spec/string_hacks_spec.rb
702
671
  - spec/swap_spec.rb
672
+ - spec/swap_test/.gitignore
703
673
  - spec/swap_test/animal.rdf
704
674
  - spec/swap_test/anon-prop.n3
705
675
  - spec/swap_test/anonymous_loop.n3
@@ -731,7 +701,6 @@ files:
731
701
  - spec/swap_test/n3/n3parser.tests_n3_10019.nt
732
702
  - spec/swap_test/n3/n3parser.tests_n3_10020.nt
733
703
  - spec/swap_test/n3parser.tests
734
- - spec/swap_test/n3parser.yml
735
704
  - spec/swap_test/nodeID/classes.n3
736
705
  - spec/swap_test/nodeID/classes.ref.rdf
737
706
  - spec/swap_test/nodeID/ex1.rdf
@@ -771,7 +740,6 @@ files:
771
740
  - spec/swap_test/ref/xml-syntax-basic-serialization.rdf
772
741
  - spec/swap_test/ref/xmllit.nt
773
742
  - spec/swap_test/regression.n3
774
- - spec/swap_test/regression.yml
775
743
  - spec/swap_test/reluri-1.n3
776
744
  - spec/swap_test/strquot.n3
777
745
  - spec/swap_test/syntax/colon-in-uri.rdf
@@ -809,6 +777,7 @@ files:
809
777
  - spec/swap_test/xml-syntax/xmlbase3.rdf
810
778
  - spec/swap_test/xml-syntax/xmllit.rdf
811
779
  - spec/triple_spec.rb
780
+ - spec/turtle/.gitignore
812
781
  - spec/turtle/README.txt
813
782
  - spec/turtle/bad-00.ttl
814
783
  - spec/turtle/bad-01.ttl
@@ -826,9 +795,7 @@ files:
826
795
  - spec/turtle/bad-13.ttl
827
796
  - spec/turtle/bad-14.ttl
828
797
  - spec/turtle/manifest-bad.ttl
829
- - spec/turtle/manifest-bad.yml
830
798
  - spec/turtle/manifest.ttl
831
- - spec/turtle/manifest.yml
832
799
  - spec/turtle/rdf-schema.out
833
800
  - spec/turtle/rdf-schema.ttl
834
801
  - spec/turtle/rdfq-results.out
@@ -901,8 +868,6 @@ files:
901
868
  - spec/turtle_serializer_spec.rb
902
869
  - spec/turtle_spec.rb
903
870
  - spec/uriref_spec.rb
904
- - spec/xhtml-manifest.yml
905
- - spec/xhtml11-manifest.yml
906
871
  - spec/xml_serializer_spec.rb
907
872
  - test/longtests_spec.rb
908
873
  - test/n3_tests/lcsh/sh85062913.n3