rdf_context 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. data/.yardopts +2 -1
  2. data/History.rdoc +7 -0
  3. data/README.rdoc +14 -14
  4. data/Rakefile +7 -7
  5. data/VERSION +1 -1
  6. data/lib/rdf_context/graph.rb +19 -16
  7. data/lib/rdf_context/rdfaparser.rb +1 -1
  8. data/lib/rdf_context/store/abstract_sql_store.rb +12 -4
  9. data/lib/rdf_context/store/abstract_store.rb +6 -0
  10. data/lib/rdf_context/store/active_record_store.rb +5 -11
  11. data/lib/rdf_context/store/list_store.rb +5 -0
  12. data/lib/rdf_context/store/memory_store.rb +38 -18
  13. data/lib/rdf_context/store/sqlite3_store.rb +0 -7
  14. data/rdf_context.gemspec +11 -122
  15. data/spec/active_record_store_spec.rb +4 -0
  16. data/spec/graph_spec.rb +6 -2
  17. data/spec/matchers.rb +1 -1
  18. data/spec/rdfa_helper.rb +6 -17
  19. data/spec/spec_helper.rb +4 -9
  20. data/spec/sqlite3_store_spec.rb +2 -2
  21. data/spec/store_helper.rb +69 -15
  22. metadata +35 -122
  23. data/spec/rdfa-triples/0001.nt +0 -1
  24. data/spec/rdfa-triples/0006.nt +0 -2
  25. data/spec/rdfa-triples/0007.nt +0 -3
  26. data/spec/rdfa-triples/0008.nt +0 -1
  27. data/spec/rdfa-triples/0009.nt +0 -1
  28. data/spec/rdfa-triples/0010.nt +0 -2
  29. data/spec/rdfa-triples/0011.nt +0 -3
  30. data/spec/rdfa-triples/0012.nt +0 -1
  31. data/spec/rdfa-triples/0013.nt +0 -1
  32. data/spec/rdfa-triples/0014.nt +0 -1
  33. data/spec/rdfa-triples/0015.nt +0 -2
  34. data/spec/rdfa-triples/0017.nt +0 -3
  35. data/spec/rdfa-triples/0018.nt +0 -1
  36. data/spec/rdfa-triples/0019.nt +0 -1
  37. data/spec/rdfa-triples/0020.nt +0 -1
  38. data/spec/rdfa-triples/0021.nt +0 -1
  39. data/spec/rdfa-triples/0023.nt +0 -1
  40. data/spec/rdfa-triples/0025.nt +0 -2
  41. data/spec/rdfa-triples/0026.nt +0 -1
  42. data/spec/rdfa-triples/0027.nt +0 -1
  43. data/spec/rdfa-triples/0029.nt +0 -1
  44. data/spec/rdfa-triples/0030.nt +0 -1
  45. data/spec/rdfa-triples/0031.nt +0 -1
  46. data/spec/rdfa-triples/0032.nt +0 -1
  47. data/spec/rdfa-triples/0033.nt +0 -2
  48. data/spec/rdfa-triples/0034.nt +0 -1
  49. data/spec/rdfa-triples/0035.nt +0 -1
  50. data/spec/rdfa-triples/0036.nt +0 -1
  51. data/spec/rdfa-triples/0037.nt +0 -1
  52. data/spec/rdfa-triples/0038.nt +0 -1
  53. data/spec/rdfa-triples/0039.nt +0 -1
  54. data/spec/rdfa-triples/0040.nt +0 -1
  55. data/spec/rdfa-triples/0041.nt +0 -1
  56. data/spec/rdfa-triples/0042.nt +0 -0
  57. data/spec/rdfa-triples/0046.nt +0 -3
  58. data/spec/rdfa-triples/0047.nt +0 -3
  59. data/spec/rdfa-triples/0048.nt +0 -3
  60. data/spec/rdfa-triples/0049.nt +0 -2
  61. data/spec/rdfa-triples/0050.nt +0 -2
  62. data/spec/rdfa-triples/0051.nt +0 -2
  63. data/spec/rdfa-triples/0052.nt +0 -1
  64. data/spec/rdfa-triples/0053.nt +0 -2
  65. data/spec/rdfa-triples/0054.nt +0 -2
  66. data/spec/rdfa-triples/0055.nt +0 -2
  67. data/spec/rdfa-triples/0056.nt +0 -3
  68. data/spec/rdfa-triples/0057.nt +0 -4
  69. data/spec/rdfa-triples/0058.nt +0 -6
  70. data/spec/rdfa-triples/0059.nt +0 -6
  71. data/spec/rdfa-triples/0060.nt +0 -2
  72. data/spec/rdfa-triples/0061.nt +0 -1
  73. data/spec/rdfa-triples/0062.nt +0 -1
  74. data/spec/rdfa-triples/0063.nt +0 -1
  75. data/spec/rdfa-triples/0064.nt +0 -1
  76. data/spec/rdfa-triples/0065.nt +0 -3
  77. data/spec/rdfa-triples/0066.nt +0 -1
  78. data/spec/rdfa-triples/0067.nt +0 -1
  79. data/spec/rdfa-triples/0068.nt +0 -1
  80. data/spec/rdfa-triples/0069.nt +0 -1
  81. data/spec/rdfa-triples/0070.nt +0 -1
  82. data/spec/rdfa-triples/0071.nt +0 -1
  83. data/spec/rdfa-triples/0072.nt +0 -1
  84. data/spec/rdfa-triples/0073.nt +0 -1
  85. data/spec/rdfa-triples/0074.nt +0 -1
  86. data/spec/rdfa-triples/0075.nt +0 -1
  87. data/spec/rdfa-triples/0076.nt +0 -23
  88. data/spec/rdfa-triples/0077.nt +0 -23
  89. data/spec/rdfa-triples/0078.nt +0 -6
  90. data/spec/rdfa-triples/0079.nt +0 -3
  91. data/spec/rdfa-triples/0080.nt +0 -1
  92. data/spec/rdfa-triples/0081.nt +0 -6
  93. data/spec/rdfa-triples/0082.nt +0 -8
  94. data/spec/rdfa-triples/0083.nt +0 -6
  95. data/spec/rdfa-triples/0084.nt +0 -8
  96. data/spec/rdfa-triples/0085.nt +0 -4
  97. data/spec/rdfa-triples/0086.nt +0 -0
  98. data/spec/rdfa-triples/0087.nt +0 -23
  99. data/spec/rdfa-triples/0088.nt +0 -3
  100. data/spec/rdfa-triples/0089.nt +0 -1
  101. data/spec/rdfa-triples/0090.nt +0 -1
  102. data/spec/rdfa-triples/0091.nt +0 -3
  103. data/spec/rdfa-triples/0092.nt +0 -3
  104. data/spec/rdfa-triples/0093.nt +0 -2
  105. data/spec/rdfa-triples/0094.nt +0 -3
  106. data/spec/rdfa-triples/0099.nt +0 -1
  107. data/spec/rdfa-triples/0100.nt +0 -3
  108. data/spec/rdfa-triples/0101.nt +0 -3
  109. data/spec/rdfa-triples/0102.nt +0 -1
  110. data/spec/rdfa-triples/0103.nt +0 -1
  111. data/spec/rdfa-triples/0104.nt +0 -3
  112. data/spec/rdfa-triples/0105.nt +0 -1
  113. data/spec/rdfa-triples/0106.nt +0 -1
  114. data/spec/rdfa-triples/0107.nt +0 -0
  115. data/spec/rdfa-triples/0108.nt +0 -1
  116. data/spec/rdfa-triples/0109.nt +0 -1
  117. data/spec/rdfa-triples/0110.nt +0 -1
  118. data/spec/rdfa-triples/0111.nt +0 -2
  119. data/spec/rdfa-triples/0112.nt +0 -1
  120. data/spec/rdfa-triples/0113.nt +0 -2
  121. data/spec/rdfa-triples/0114.nt +0 -3
  122. data/spec/rdfa-triples/0115.nt +0 -4
  123. data/spec/rdfa-triples/0116.nt +0 -2
  124. data/spec/rdfa-triples/0117.nt +0 -2
  125. data/spec/rdfa-triples/0118.nt +0 -1
  126. data/spec/rdfa-triples/0119.nt +0 -1
  127. data/spec/rdfa-triples/0120.nt +0 -1
  128. data/spec/rdfa-triples/0121.nt +0 -2
  129. data/spec/rdfa-triples/0122.nt +0 -1
  130. data/spec/rdfa-triples/0123.nt +0 -3
  131. data/spec/rdfa-triples/0124.nt +0 -4
  132. data/spec/rdfa-triples/0125.nt +0 -1
  133. data/spec/rdfa-triples/0126.nt +0 -3
  134. data/spec/rdfa-triples/1001.nt +0 -6
@@ -1,3 +0,0 @@
1
- <$TCPATH/0114.xhtml> <http://www.w3.org/1999/xhtml/vocab#up> <$TCPATH/rdfa-xhtml1-test-manifest.rdf> .
2
- <$TCPATH/0114.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <$TCPATH/0113.xhtml> .
3
- <$TCPATH/0114.xhtml> <http://creativecommons.org/ns#attributionURL> <http://www.w3.org/> .
@@ -1,4 +0,0 @@
1
- <$TCPATH/0115.xhtml> <http://www.example.com/entity1> ">" .
2
- <$TCPATH/0115.xhtml> <http://www.example.com/entity2> "Ben & Co." .
3
- <$TCPATH/0115.xhtml> <http://www.example.com/entity3> "@" .
4
- <$TCPATH/0115.xhtml> <http://www.example.com/entity4> "@" .
@@ -1,2 +0,0 @@
1
- # This is a negative test case, the following triple should not be generated.
2
- #<$TCPATH/0116.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> "invalid property" .
@@ -1,2 +0,0 @@
1
- <http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0117" .
2
- <http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/contributor> "Mark Birbeck" .
@@ -1 +0,0 @@
1
- <$TCPATH/0118.xhtml> <http://purl.org/dc/elements/1.1/creator> "Ben" .
@@ -1 +0,0 @@
1
- <http://example.org/> <http://purl.org/dc/elements/1.1/title> "Example Website" .
@@ -1 +0,0 @@
1
- <http://www.w3.org/1999/xhtml/vocab#> <http://purl.org/dc/elements/1.1/title> "The XHTML Vocabulary Document" .
@@ -1,2 +0,0 @@
1
- <http://example.org/> <http://purl.org/dc/elements/1.1/title> "Test Case 0121" .
2
- <http://example.org/> <http://purl.org/dc/elements/1.1/contributor> "Shane McCarron" .
@@ -1 +0,0 @@
1
- # This is a negative test. No triples should be generated from the XHTML+RDFa input document.
@@ -1,3 +0,0 @@
1
- <http://www.example.org#sub> <http://www.example.org/lower#one> <http://www.example.org#lower> .
2
- <http://www.example.org#sub> <http://www.example.org/upper#two> <http://www.example.org#UPPER> .
3
- <http://www.example.org#sub> <http://www.example.org/mixed#three> <http://www.example.org#MiXeD> .
@@ -1,4 +0,0 @@
1
- <http://www.example.org/me#shane> <http://xmlns.com/foaf/0.1/firstName> "Shane" .
2
- <http://www.example.org/me#shane> <http://xmlns.com/foaf/0.1/surname> "McCarron" .
3
- <http://www.example.org/me#shane> <http://xmlns.com/foaf/0.1/name> "Shane McCarron" .
4
- <http://www.example.org/me#shane> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
@@ -1 +0,0 @@
1
- # This is a negative test. No triples should be generated from the XHTML+RDFa input document.
@@ -1,3 +0,0 @@
1
- <http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
2
- <http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
3
- <http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
@@ -1,6 +0,0 @@
1
- <$TCPATH/1001.xhtml#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
2
- <$TCPATH/1001.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
3
- <$TCPATH/1001.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
4
- <$TCPATH/1001.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
5
- <$TCPATH/1001.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
6
- <$TCPATH/1001.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .