rdf_context 0.5.9.1 → 0.5.10

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 (63) hide show
  1. data/.gitignore +0 -1
  2. data/History.rdoc +23 -2
  3. data/Rakefile +17 -17
  4. data/VERSION +1 -1
  5. data/bin/rdf_context +1 -4
  6. data/lib/rdf_context.rb +55 -19
  7. data/lib/rdf_context/aggregate_graph.rb +0 -2
  8. data/lib/rdf_context/bnode.rb +14 -1
  9. data/lib/rdf_context/conjunctive_graph.rb +0 -2
  10. data/lib/rdf_context/graph.rb +9 -10
  11. data/lib/rdf_context/literal.rb +39 -56
  12. data/lib/rdf_context/n3_grammar.treetop +2 -2
  13. data/lib/rdf_context/n3parser.rb +7 -5
  14. data/lib/rdf_context/parser.rb +2 -3
  15. data/lib/rdf_context/quoted_graph.rb +0 -2
  16. data/lib/rdf_context/rdfaparser.rb +93 -68
  17. data/lib/rdf_context/rdfxmlparser.rb +1 -1
  18. data/lib/rdf_context/resource.rb +56 -0
  19. data/lib/rdf_context/serializer/abstract_serializer.rb +0 -2
  20. data/lib/rdf_context/serializer/nt_serializer.rb +0 -2
  21. data/lib/rdf_context/serializer/recursive_serializer.rb +0 -4
  22. data/lib/rdf_context/serializer/turtle_serializer.rb +0 -2
  23. data/lib/rdf_context/serializer/xml_serializer.rb +0 -2
  24. data/lib/rdf_context/store/abstract_sql_store.rb +3 -1
  25. data/lib/rdf_context/store/active_record_store.rb +272 -0
  26. data/lib/rdf_context/store/list_store.rb +2 -2
  27. data/lib/rdf_context/store/memory_store.rb +2 -2
  28. data/lib/rdf_context/store/sqlite3_store.rb +112 -48
  29. data/lib/rdf_context/term_utils.rb +0 -4
  30. data/lib/rdf_context/triple.rb +1 -3
  31. data/lib/rdf_context/uriref.rb +14 -1
  32. data/rdf_context.gemspec +872 -0
  33. data/script/tc +4 -4
  34. data/spec/active_record_store_spec.rb +61 -0
  35. data/spec/aggregate_graph_spec.rb +1 -1
  36. data/spec/bnode_spec.rb +37 -1
  37. data/spec/conjunctive_graph_spec.rb +1 -1
  38. data/spec/cwm_spec.rb +5 -5
  39. data/spec/duration_spec.rb +1 -1
  40. data/spec/graph_spec.rb +16 -2
  41. data/spec/list_store_spec.rb +1 -1
  42. data/spec/literal_spec.rb +47 -14
  43. data/spec/memory_store_spec.rb +1 -1
  44. data/spec/n3parser_spec.rb +19 -5
  45. data/spec/namespaces_spec.rb +1 -1
  46. data/spec/parser_spec.rb +1 -1
  47. data/spec/rdf_helper.rb +18 -15
  48. data/spec/rdfa_helper.rb +27 -14
  49. data/spec/rdfa_parser_spec.rb +28 -9
  50. data/spec/rdfxml_spec.rb +3 -3
  51. data/spec/spec_helper.rb +10 -5
  52. data/spec/sqlite3_store_spec.rb +1 -1
  53. data/spec/string_hacks_spec.rb +2 -1
  54. data/spec/swap_spec.rb +7 -7
  55. data/spec/swap_test/ref/contexts-1.n3 +12 -0
  56. data/spec/swap_test/ref/prefix2.rdf +33 -0
  57. data/spec/swap_test/ref/xmllit.nt +1 -1
  58. data/spec/swap_test/regression.n3 +18 -18
  59. data/spec/triple_spec.rb +1 -1
  60. data/spec/turtle_serializer_spec.rb +3 -3
  61. data/spec/turtle_spec.rb +3 -3
  62. data/spec/uriref_spec.rb +31 -1
  63. metadata +13 -15
@@ -22,6 +22,7 @@ module RdfaHelper
22
22
  attr_accessor :informationResourceResults
23
23
  attr_accessor :purpose
24
24
  attr_accessor :reviewStatus
25
+ attr_accessor :classification
25
26
  attr_accessor :suite
26
27
  attr_accessor :specificationReference
27
28
  attr_accessor :expectedResults
@@ -36,7 +37,7 @@ module RdfaHelper
36
37
  next if statement.subject.is_a?(BNode)
37
38
  #next unless statement.subject.uri.to_s.match(/0001/)
38
39
  unless self.about
39
- self.about = Addressable::URI.parse(statement.subject.uri.to_s)
40
+ self.about = statement.subject.uri.to_s
40
41
  self.name = statement.subject.short_name || self.about
41
42
  end
42
43
 
@@ -60,6 +61,7 @@ module RdfaHelper
60
61
  informationResourceResults
61
62
  purpose
62
63
  reviewStatus
64
+ classification
63
65
  specificationReference
64
66
  expectedResults
65
67
  ).map {|a| v = self.send(a); "#{a}='#{v}'" if v}.compact.join(", ") +
@@ -90,6 +92,7 @@ module RdfaHelper
90
92
  if found_head
91
93
  line.chop
92
94
  else
95
+ found_head ||= line.match(%r(http://www.w3.org/2000/svg))
93
96
  namespaces << line
94
97
  nil
95
98
  end
@@ -99,26 +102,25 @@ module RdfaHelper
99
102
 
100
103
  case suite
101
104
  when "xhtml"
102
- head = "" +
103
- %(<?xml version="1.0" encoding="UTF-8"?>\n) +
104
- %(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">\n) +
105
- %(<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.0"\n)
106
- head + "#{namespaces}>\n#{body.gsub(TCPATHRE, tcpath)}\n</html>"
107
- when "xhtml11"
108
105
  head = "" +
109
106
  %(<?xml version="1.0" encoding="UTF-8"?>\n) +
110
107
  %(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">\n) +
111
- %(<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1"\n)
108
+ %(<html xmlns="http://www.w3.org/1999/xhtml"\n)
112
109
  head + "#{namespaces}>\n#{body.gsub(TCPATHRE, tcpath)}\n</html>"
113
110
  when "html4"
114
111
  head ="" +
115
- %(<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n) +
116
- %(<html version="XHTML+RDFa 1.0"\n)
112
+ %(<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">\n) +
113
+ %(<html\n)
117
114
  head + "#{namespaces}>\n#{body.gsub(TCPATHRE, tcpath).gsub(HTMLRE, '\1.html')}\n</html>"
118
115
  when "html5"
119
116
  head = "<!DOCTYPE html>\n"
120
- head += namespaces.empty? ? %(<html version="HTML+RDFa 1.0">) : "<html\n#{namespaces}>"
117
+ head += namespaces.empty? ? %(<html>) : "<html\n#{namespaces}>"
121
118
  head + "\n#{body.gsub(TCPATHRE, tcpath).gsub(HTMLRE, '\1.html')}\n</html>"
119
+ when "svgtiny"
120
+ head = "" +
121
+ %(<?xml version="1.0" encoding="UTF-8"?>\n)
122
+ head += namespaces.empty? ? %(<svg>) : "<svg\n#{namespaces}>"
123
+ head + "\n#{body.gsub(TCPATHRE, tcpath).gsub(HTMLRE, '\1.svg')}\n</svg>"
122
124
  else
123
125
  nil
124
126
  end
@@ -129,20 +131,28 @@ module RdfaHelper
129
131
  f = self.name + ".sparql"
130
132
  body = File.read(File.join(RDFA_DIR, "tests", f)).gsub(TCPATHRE, tcpath)
131
133
 
132
- suite =~ /xhtml/ ? body : body.gsub(HTMLRE, '\1.html')
134
+ case suite
135
+ when /xhtml/ then body
136
+ when /svg/ then body.gsub(HTMLRE, '\1.svg')
137
+ else body.gsub(HTMLRE, '\1.html')
138
+ end
133
139
  end
134
140
 
135
141
  def triples
136
142
  f = self.name + ".nt"
137
143
  body = File.read(File.join(RDFA_NT_DIR, f)).gsub(TCPATHRE, tcpath)
138
- suite =~ /xhtml/ ? body : body.gsub(HTMLRE, '\1.html')
144
+ case suite
145
+ when /xhtml/ then body
146
+ when /svg/ then body.gsub(HTMLRE, '\1.svg')
147
+ else body.gsub(HTMLRE, '\1.html')
148
+ end
139
149
  end
140
150
 
141
151
  def inputDocument; self.name + ".txt"; end
142
152
  def outputDocument; self.name + ".sparql"; end
143
153
 
144
154
  def version
145
- suite == "xhtml11" ? :rdfa_1_1 : :rdfa_1_0
155
+ :rdfa_1_1
146
156
  end
147
157
 
148
158
  # Run test case, yields input for parser to create triples
@@ -185,6 +195,7 @@ module RdfaHelper
185
195
  yaml_file = File.join(File.dirname(__FILE__), "#{suite}-manifest.yml")
186
196
 
187
197
  @test_cases = unless File.file?(yaml_file)
198
+ t = Time.now
188
199
  puts "parse #{manifest_file} @#{Time.now}"
189
200
  parser = RdfXmlParser.new
190
201
 
@@ -194,6 +205,8 @@ module RdfaHelper
194
205
  raise "Parse error: #{$!}\n\t#{parser.debug.to_a.join("\t\n")}\n\n"
195
206
  end
196
207
  graph = parser.graph
208
+ diff = Time.now - t
209
+ puts "parsed #{graph.size} statements in #{diff} seconds (#{(graph.size / diff).to_i} statements/sec) @#{Time.now}"
197
210
 
198
211
  # Group by subject
199
212
  test_hash = graph.triples.inject({}) do |hash, st|
@@ -5,7 +5,7 @@ require 'rdfa_helper'
5
5
 
6
6
  # Time to add your specs!
7
7
  # http://rspec.info/
8
- describe "RDFa parser" do
8
+ describe RdfaParser do
9
9
  before(:each) do
10
10
  @parser = RdfaParser.new
11
11
  end
@@ -219,13 +219,12 @@ describe "RDFa parser" do
219
219
  end
220
220
 
221
221
  # W3C Test suite from http://www.w3.org/2006/07/SWD/RDFa/testsuite/
222
- %w(xhtml xhtml11).each do |suite| #html4 html5
222
+ %w(xhtml html5 html5 svgtiny).each do |suite| #html4 html5
223
223
  describe "w3c #{suite} testcases" do
224
- describe "that are approved" do
224
+ describe "that are required" do
225
225
  test_cases(suite).each do |t|
226
- next unless t.status == "approved"
227
- #next unless t.name =~ /0140/
228
- #puts t.inspect
226
+ next unless t.classification =~ /required/
227
+ #next unless t.name =~ /0001/
229
228
  specify "test #{t.name}: #{t.title}#{", (negative test)" unless t.expectedResults}" do
230
229
  #puts t.input
231
230
  #puts t.results
@@ -239,9 +238,10 @@ describe "RDFa parser" do
239
238
  end
240
239
  end
241
240
  end
242
- describe "that are unreviewed" do
241
+
242
+ describe "that are optional" do
243
243
  test_cases(suite).each do |t|
244
- next unless t.status == "unreviewed"
244
+ next unless t.classification =~ /optional/
245
245
  #next unless t.name =~ /0185/
246
246
  #puts t.inspect
247
247
  specify "test #{t.name}: #{t.title}#{", (negative test)" unless t.expectedResults}" do
@@ -251,7 +251,7 @@ describe "RDFa parser" do
251
251
  end
252
252
  rescue SparqlException => e
253
253
  pending(e.message) { raise }
254
- rescue Spec::Expectations::ExpectationNotMetError => e
254
+ rescue RSpec::Expectations::ExpectationNotMetError => e
255
255
  if t.name =~ /01[789]\d/
256
256
  raise
257
257
  else
@@ -261,6 +261,25 @@ describe "RDFa parser" do
261
261
  end
262
262
  end
263
263
  end
264
+
265
+ describe "that are buggy" do
266
+ test_cases(suite).each do |t|
267
+ next unless t.classification =~ /buggy/
268
+ #next unless t.name =~ /0185/
269
+ #puts t.inspect
270
+ specify "test #{t.name}: #{t.title}#{", (negative test)" unless t.expectedResults}" do
271
+ begin
272
+ t.run_test do |rdfa_string, rdfa_parser|
273
+ rdfa_parser.parse(rdfa_string, t.informationResourceInput, :debug => [], :version => t.version)
274
+ end
275
+ rescue SparqlException => e
276
+ pending(e.message) { raise }
277
+ rescue RSpec::Expectations::ExpectationNotMetError => e
278
+ pending() { raise }
279
+ end
280
+ end
281
+ end
282
+ end
264
283
  end
265
284
  end
266
285
  end
@@ -5,7 +5,7 @@ include RdfContext
5
5
 
6
6
  # w3c test suite: http://www.w3.org/TR/rdf-testcases/
7
7
 
8
- describe "RDF/XML Parser" do
8
+ describe RdfXmlParser do
9
9
  before(:each) { @parser = RdfXmlParser.new }
10
10
 
11
11
  it "should recognise and create single triple for empty non-RDF root" do
@@ -328,7 +328,7 @@ EOF
328
328
  #puts t.inspect
329
329
  specify "test #{t.name}: " + (t.description || "#{t.inputDocument} against #{t.outputDocument}") do
330
330
  t.run_test do |rdf_string, parser|
331
- parser.parse(rdf_string, t.about.uri.to_s, :strict => true, :debug => [])
331
+ parser.parse(rdf_string, t.about, :strict => true, :debug => [])
332
332
  end
333
333
  end
334
334
  end
@@ -342,7 +342,7 @@ EOF
342
342
  specify "test #{t.name}: " + (t.description || t.inputDocument) do
343
343
  t.run_test do |rdf_string, parser|
344
344
  lambda do
345
- parser.parse(rdf_string, t.about.uri.to_s, :strict => true, :debug => [])
345
+ parser.parse(rdf_string, t.about, :strict => true, :debug => [])
346
346
  parser.graph.should be_equivalent_graph("", t)
347
347
  end.should raise_error(RdfException)
348
348
  end
@@ -1,11 +1,10 @@
1
1
  # coding: utf-8
2
2
  begin
3
- require 'spec'
3
+ require 'rspec'
4
4
  require 'active_support'
5
5
  rescue LoadError
6
6
  require 'rubygems' unless ENV['NO_RUBYGEMS']
7
- gem 'rspec'
8
- require 'spec'
7
+ require 'rspec'
9
8
  gem 'activesupport'
10
9
  require 'active_support'
11
10
  end
@@ -16,6 +15,7 @@ begin
16
15
  rescue LoadError
17
16
  end
18
17
 
18
+
19
19
  ActiveSupport::XmlMini.backend = 'Nokogiri'
20
20
 
21
21
  $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
@@ -29,6 +29,11 @@ TMP_DIR = File.join(File.dirname(__FILE__), 'tmp')
29
29
 
30
30
  include Matchers
31
31
 
32
- Spec::Runner.configure do |config|
33
- config.include(Matchers)
32
+ RSpec.configure do |c|
33
+ c.filter_run :focus => true
34
+ c.run_all_when_everything_filtered = true
35
+ c.exclusion_filter = {
36
+ :ruby => lambda { |version| !(RUBY_VERSION.to_s =~ /^#{version.to_s}/) },
37
+ }
38
+ c.include(Matchers)
34
39
  end
@@ -2,7 +2,7 @@ $:.unshift "."
2
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
3
3
  require File.join(File.dirname(__FILE__), 'store_helper')
4
4
 
5
- describe "SQLite3 Store" do
5
+ describe SQLite3Store do
6
6
  before(:all) do
7
7
  FileUtils.rm_rf(TMP_DIR)
8
8
  Dir.mkdir(TMP_DIR)
@@ -1,8 +1,9 @@
1
1
  # coding: utf-8
2
2
  $:.unshift "."
3
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
4
+ require 'rdf_context/string_hacks'
4
5
 
5
- describe "String RDF encoding" do
6
+ describe String do
6
7
  {
7
8
  "Gregg" => 'Gregg',
8
9
  "Dürst" => 'D\u00FCrst',
@@ -1,7 +1,7 @@
1
1
  require File.join(File.dirname(__FILE__), 'spec_helper')
2
2
  include RdfContext
3
3
 
4
- describe "N3 parser" do
4
+ describe N3Parser do
5
5
  # W3C N3 Test suite from http://www.w3.org/2000/10/swap/test/n3parser.tests
6
6
  describe "w3c swap tests" do
7
7
  require 'rdf_helper'
@@ -20,13 +20,13 @@ describe "N3 parser" do
20
20
  #next unless t.about.uri.to_s =~ /rdfms-rdf-names-use/
21
21
  #next unless t.name =~ /11/
22
22
  #puts t.inspect
23
- specify "#{t.name}: #{t.about.uri.to_s} against #{t.outputDocument}" do
23
+ specify "#{t.name}: #{t.about} against #{t.outputDocument}" do
24
24
  begin
25
25
  t.run_test do |rdf_string, parser|
26
26
  t.name.should_not == "n3_10012" # Too many bnodes makes graph compare unfeasable
27
- parser.parse(rdf_string, t.about.uri.to_s, :strict => true, :debug => [])
27
+ parser.parse(rdf_string, t.about, :strict => true, :debug => [])
28
28
  end
29
- rescue #Spec::Expectations::ExpectationNotMetError => e
29
+ rescue #RSpec::Expectations::ExpectationNotMetError => e
30
30
  if %w(n3_10003 n3_10004).include?(t.name)
31
31
  pending("@forAll/@forEach not yet implemented")
32
32
  elsif %w(n3_10007 n3_10014 n3_10015 n3_10017).include?(t.name)
@@ -48,7 +48,7 @@ describe "N3 parser" do
48
48
  #next unless t.about.uri.to_s =~ /rdfms-empty-property-elements/
49
49
  #next unless t.name =~ /1/
50
50
  #puts t.inspect
51
- specify "#{t.name}: #{t.about.uri.to_s}" do
51
+ specify "#{t.name}: #{t.about}" do
52
52
  t.run_test do |rdf_string, parser|
53
53
  if !defined?(::Encoding) && %w(n3_10019 n3_10020).include?(t.name)
54
54
  pending("Not supported in Ruby 1.8")
@@ -56,9 +56,9 @@ describe "N3 parser" do
56
56
  end
57
57
  begin
58
58
  lambda do
59
- parser.parse(rdf_string, t.about.uri.to_s, :strict => true, :debug => [])
59
+ parser.parse(rdf_string, t.about, :strict => true, :debug => [])
60
60
  end.should raise_error(RdfException)
61
- rescue Spec::Expectations::ExpectationNotMetError => e
61
+ rescue RSpec::Expectations::ExpectationNotMetError => e
62
62
  if %w().include?(t.name)
63
63
  pending("@forAll/@forEach not yet implemented")
64
64
  elsif %w(n3_10019 n3_10020 n3_20005).include?(t.name.to_s)
@@ -0,0 +1,12 @@
1
+ @prefix : <#> .
2
+ @prefix u: <http://www.example.org/utilities#> .
3
+
4
+ :assumption = {:fred u:knows :john .
5
+ :john u:knows :mary .
6
+ } .
7
+
8
+ :conclusion = {:fred u:knows :mary .
9
+ } .
10
+
11
+ :trivialTruth = {} .
12
+
@@ -0,0 +1,33 @@
1
+
2
+
3
+
4
+ <rdf:RDF xmlns:cal="http://nwalsh.com/pim/Palm/Calendar#"
5
+ xmlns:da="file:/home79536262/ndw/.xmlDate.rdf#"
6
+ xmlns:log="http://www.w3.org/2000/10/swap/log#"
7
+ xmlns:palm="http://nwalsh.com/pim/Palm/DateBook#"
8
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
9
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
10
+
11
+ <rdf:Description rdf:about="http://nwalsh.com/pim/Palm/Calendar#_2002_2">
12
+ <da:appointments rdf:parseType="Resource">
13
+ <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/>
14
+ <rdf:_1 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id166"/>
15
+ <rdf:_2 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id172"/>
16
+ <rdf:_3 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id93"/>
17
+ <rdf:_4 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id193"/>
18
+ <rdf:_5 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id192"/>
19
+ <rdf:_6 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id104"/>
20
+ <rdf:_7 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id157"/>
21
+ <rdf:_8 rdf:resource="file:/home79536262/ndw/.xmlDate.rdf#id32"/>
22
+ </da:appointments>
23
+ <cal:month>2</cal:month>
24
+ <cal:year>2002</cal:year>
25
+ <rdf:Seq rdf:parseType="Resource">
26
+ <rdf:_1 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_1"/>
27
+ <rdf:_2 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_2"/>
28
+ <rdf:_3 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_3"/>
29
+ <rdf:_4 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_4"/>
30
+ <rdf:_5 rdf:resource="http://nwalsh.com/pim/Palm/Calendar#_week_2002_2_5"/>
31
+ </rdf:Seq>
32
+ </rdf:Description>
33
+ </rdf:RDF>
@@ -1,3 +1,3 @@
1
1
 
2
- <http://example.com/swap/test/xml-syntax/xmllit.rdf#John_Smith> <http://my.example.org/Name> "\n <html:h1 xmlns:html=\"http://NoHTML.example.org\" xmlns:my=\"http://my.example.org/\" my:thing=\"hello\">\n <b xmlns=\"http://www.w3.org/1999/xhtml\"><i>John</i></b>\n </html:h1>\n "^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
2
+ <http://www.w3.org/2000/10/swap/test/xml-syntax/xmllit.rdf#John_Smith> <http://my.example.org/Name> "\n <html:h1 xmlns:html=\"http://NoHTML.example.org\" xmlns:my=\"http://my.example.org/\" my:thing=\"hello\">\n <b xmlns=\"http://www.w3.org/1999/xhtml\"><i>John</i></b>\n </html:h1>\n "^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
3
3
 
@@ -83,11 +83,11 @@
83
83
  test:description "djb noticed a:b was parsed as rdf:type token";
84
84
  test:arguments "syntax/djb1a.n3".
85
85
 
86
- :t1006 a test:CwmTest, test:CwmProofTest;
87
- test:referenceOutput <ref/contexts-1.n3>;
88
- n3test:inputDocument <contexts.n3> ;
89
- test:description "Parse and generate simple contexts";
90
- test:arguments """contexts.n3""".
86
+ #:t1006 a test:CwmTest, test:CwmProofTest;
87
+ # test:referenceOutput <ref/contexts-1.n3>;
88
+ # n3test:inputDocument <contexts.n3> ;
89
+ # test:description "Parse and generate simple contexts";
90
+ # test:arguments """contexts.n3""".
91
91
 
92
92
  :t1007 a test:CwmTest, test:CwmProofTest;
93
93
  n3test:status "pending";
@@ -120,11 +120,11 @@
120
120
  test:description "A loop of anonymous nodes wasn't being printed at all";
121
121
  test:arguments """anonymous_loop.n3""".
122
122
 
123
- :t1008 a test:CwmTest, test:CwmProofTest;
124
- test:referenceOutput <ref/daml-ont.n3>;
125
- n3test:inputDocument <daml-pref.n3> ;
126
- test:description "Convert some RDF/XML into RDF/N3";
127
- test:arguments """daml-pref.n3 -rdf daml-ont.rdf -n3""".
123
+ #:t1008 a test:CwmTest, test:CwmProofTest;
124
+ # test:referenceOutput <ref/daml-ont.n3>;
125
+ # n3test:inputDocument <daml-pref.n3> ;
126
+ # test:description "Convert some RDF/XML into RDF/N3";
127
+ # test:arguments """daml-pref.n3 -rdf daml-ont.rdf -n3""".
128
128
 
129
129
  :t1008a a test:CwmTest, test:CwmProofTest;
130
130
  test:referenceOutput <ref/colon-in-uri.n3>;
@@ -144,12 +144,12 @@
144
144
  test:description "N3 string quoting with utf-8 literals";
145
145
  test:arguments """-n3 strquot.n3""".
146
146
 
147
- :t1009ab a test:CwmTest, test:CwmProofTest;
148
- n3test:status "pending";
149
- test:referenceOutput <ref/n3string.n3>;
150
- n3test:inputDocument <i18n/n3string.n3> ;
151
- test:description "log:n3string genertating utf-8 literals was double encoding";
152
- test:arguments """-n3 i18n/n3string.n3""".
147
+ #:t1009ab a test:CwmTest, test:CwmProofTest;
148
+ # n3test:status "pending";
149
+ # test:referenceOutput <ref/n3string.n3>;
150
+ # n3test:inputDocument <i18n/n3string.n3> ;
151
+ # test:description "log:n3string genertating utf-8 literals was double encoding";
152
+ # test:arguments """-n3 i18n/n3string.n3""".
153
153
 
154
154
  :t1009b a test:CwmTest, test:CwmProofTest;
155
155
  test:referenceOutput <xml-syntax/non-ascii-pred.rdf>;
@@ -183,13 +183,13 @@
183
183
  test:arguments """--n3 syntax/lstring.n3""".
184
184
 
185
185
  :t1017 a test:CwmTest, test:CwmProofTest;
186
- test:referenceOutput <ref/lists.n3>;
186
+ # test:referenceOutput <ref/lists.n3>;
187
187
  n3test:inputDocument <lists.n3> ;
188
188
  test:description "parsing and generation of N3 list syntax";
189
189
  test:arguments """-n3 lists.n3""".
190
190
 
191
191
  :t1018 a test:CwmTest;
192
- test:referenceOutput <ref/lists-simple-1.rdf>;
192
+ # test:referenceOutput <ref/lists-simple-1.rdf>;
193
193
  n3test:inputDocument <lists-simple.n3> ;
194
194
  test:description "conversion of subset of N3 list syntax to RDF";
195
195
  test:arguments """-n3 lists-simple.n3 -rdf""".
@@ -1,7 +1,7 @@
1
1
  $:.unshift "."
2
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
3
3
 
4
- describe "Triples" do
4
+ describe Triple do
5
5
  before(:all) { @graph = Graph.new(:store => ListStore.new) }
6
6
 
7
7
  describe "with subjects" do