activerdf_net7 1.6.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. data/CHANGELOG +79 -0
  2. data/LICENSE +504 -0
  3. data/README.rdoc +34 -0
  4. data/activerdf-jena/CHANGELOG +14 -0
  5. data/activerdf-jena/LICENSE +504 -0
  6. data/activerdf-jena/README +57 -0
  7. data/activerdf-jena/Rakefile +87 -0
  8. data/activerdf-jena/TODO +18 -0
  9. data/activerdf-jena/VERSION +1 -0
  10. data/activerdf-jena/ext/antlr-2.7.5.jar +0 -0
  11. data/activerdf-jena/ext/arq-extra.jar +0 -0
  12. data/activerdf-jena/ext/arq.jar +0 -0
  13. data/activerdf-jena/ext/aterm-java-1.6.jar +0 -0
  14. data/activerdf-jena/ext/commons-logging-1.1.jar +0 -0
  15. data/activerdf-jena/ext/concurrent.jar +0 -0
  16. data/activerdf-jena/ext/icu4j_3_4.jar +0 -0
  17. data/activerdf-jena/ext/iri.jar +0 -0
  18. data/activerdf-jena/ext/jena.jar +0 -0
  19. data/activerdf-jena/ext/jenatest.jar +0 -0
  20. data/activerdf-jena/ext/json.jar +0 -0
  21. data/activerdf-jena/ext/junit.jar +0 -0
  22. data/activerdf-jena/ext/log4j-1.2.12.jar +0 -0
  23. data/activerdf-jena/ext/lucene-core-2.0.0.jar +0 -0
  24. data/activerdf-jena/ext/ng4j.jar +0 -0
  25. data/activerdf-jena/ext/pellet.jar +0 -0
  26. data/activerdf-jena/ext/relaxngDatatype.jar +0 -0
  27. data/activerdf-jena/ext/stax-api-1.0.jar +0 -0
  28. data/activerdf-jena/ext/wstx-asl-3.0.0.jar +0 -0
  29. data/activerdf-jena/ext/xercesImpl.jar +0 -0
  30. data/activerdf-jena/ext/xml-apis.jar +0 -0
  31. data/activerdf-jena/ext/xsdlib.jar +0 -0
  32. data/activerdf-jena/lib/activerdf_jena/init.rb +26 -0
  33. data/activerdf-jena/lib/activerdf_jena/jena.rb +59 -0
  34. data/activerdf-jena/lib/activerdf_jena/jena_adapter.rb +515 -0
  35. data/activerdf-jena/lib/activerdf_jena/lucene.rb +22 -0
  36. data/activerdf-jena/lib/activerdf_jena/ng4j.rb +50 -0
  37. data/activerdf-jena/lib/activerdf_jena/ng4j_adapter.rb +379 -0
  38. data/activerdf-jena/lib/activerdf_jena/pellet.rb +25 -0
  39. data/activerdf-jena/test/bnode_org_rss.rdf +793 -0
  40. data/activerdf-jena/test/eyal-foaf.nt +39 -0
  41. data/activerdf-jena/test/fun_with_bnodes.nt +2 -0
  42. data/activerdf-jena/test/s1.n3 +18 -0
  43. data/activerdf-jena/test/test_data.nt +32 -0
  44. data/activerdf-jena/test/test_jena_adapter.rb +451 -0
  45. data/activerdf-jena/test/test_ng4j_adapter.rb +354 -0
  46. data/activerdf-rdflite/CHANGELOG +31 -0
  47. data/activerdf-rdflite/LICENSE +504 -0
  48. data/activerdf-rdflite/README +16 -0
  49. data/activerdf-rdflite/Rakefile +73 -0
  50. data/activerdf-rdflite/VERSION +1 -0
  51. data/activerdf-rdflite/lib/activerdf_rdflite/fetching.rb +34 -0
  52. data/activerdf-rdflite/lib/activerdf_rdflite/init.rb +13 -0
  53. data/activerdf-rdflite/lib/activerdf_rdflite/rdflite.rb +582 -0
  54. data/activerdf-rdflite/lib/activerdf_rdflite/suggesting.rb +87 -0
  55. data/activerdf-rdflite/test/test_bnode_data.nt +5 -0
  56. data/activerdf-rdflite/test/test_data.nt +32 -0
  57. data/activerdf-rdflite/test/test_escaped_data.nt +2 -0
  58. data/activerdf-rdflite/test/test_fetching.rb +33 -0
  59. data/activerdf-rdflite/test/test_rdflite.rb +277 -0
  60. data/activerdf-redland/CHANGELOG +12 -0
  61. data/activerdf-redland/LICENSE +504 -0
  62. data/activerdf-redland/README +9 -0
  63. data/activerdf-redland/Rakefile +72 -0
  64. data/activerdf-redland/VERSION +1 -0
  65. data/activerdf-redland/lib/activerdf_redland/init.rb +10 -0
  66. data/activerdf-redland/lib/activerdf_redland/redland.rb +362 -0
  67. data/activerdf-redland/test/test_person_data.nt +42 -0
  68. data/activerdf-redland/test/test_redland_adapter.rb +242 -0
  69. data/activerdf-sesame/CHANGELOG +6 -0
  70. data/activerdf-sesame/LICENSE +10 -0
  71. data/activerdf-sesame/LICENSE-aduna +10 -0
  72. data/activerdf-sesame/LICENSE-lgpl +504 -0
  73. data/activerdf-sesame/README +33 -0
  74. data/activerdf-sesame/Rakefile +77 -0
  75. data/activerdf-sesame/VERSION +1 -0
  76. data/activerdf-sesame/ext/commons-codec-1.3.jar +0 -0
  77. data/activerdf-sesame/ext/commons-dbcp-1.2.2.jar +0 -0
  78. data/activerdf-sesame/ext/commons-httpclient-3.1.jar +0 -0
  79. data/activerdf-sesame/ext/commons-logging-1.1.1.jar +0 -0
  80. data/activerdf-sesame/ext/commons-pool-1.3.jar +0 -0
  81. data/activerdf-sesame/ext/commons-pool-1.5.2.jar +0 -0
  82. data/activerdf-sesame/ext/junit-3.8.2.jar +0 -0
  83. data/activerdf-sesame/ext/openrdf-sesame-2.0-onejar.jar +0 -0
  84. data/activerdf-sesame/ext/openrdf-sesame-2.3-pr1-onejar.jar +0 -0
  85. data/activerdf-sesame/ext/slf4j-api-1.4.3.jar +0 -0
  86. data/activerdf-sesame/ext/slf4j-nop-1.4.3.jar +0 -0
  87. data/activerdf-sesame/ext/wrapper-sesame2.jar +0 -0
  88. data/activerdf-sesame/java/build.number +3 -0
  89. data/activerdf-sesame/java/build.xml +313 -0
  90. data/activerdf-sesame/java/javadoc/allclasses-frame.html +31 -0
  91. data/activerdf-sesame/java/javadoc/allclasses-noframe.html +31 -0
  92. data/activerdf-sesame/java/javadoc/constant-values.html +146 -0
  93. data/activerdf-sesame/java/javadoc/deprecated-list.html +146 -0
  94. data/activerdf-sesame/java/javadoc/help-doc.html +223 -0
  95. data/activerdf-sesame/java/javadoc/index-files/index-1.html +150 -0
  96. data/activerdf-sesame/java/javadoc/index-files/index-10.html +145 -0
  97. data/activerdf-sesame/java/javadoc/index-files/index-2.html +157 -0
  98. data/activerdf-sesame/java/javadoc/index-files/index-3.html +146 -0
  99. data/activerdf-sesame/java/javadoc/index-files/index-4.html +145 -0
  100. data/activerdf-sesame/java/javadoc/index-files/index-5.html +145 -0
  101. data/activerdf-sesame/java/javadoc/index-files/index-6.html +142 -0
  102. data/activerdf-sesame/java/javadoc/index-files/index-7.html +145 -0
  103. data/activerdf-sesame/java/javadoc/index-files/index-8.html +152 -0
  104. data/activerdf-sesame/java/javadoc/index-files/index-9.html +146 -0
  105. data/activerdf-sesame/java/javadoc/index.html +36 -0
  106. data/activerdf-sesame/java/javadoc/org/activerdf/wrapper/sesame2/WrapperForSesame2.html +665 -0
  107. data/activerdf-sesame/java/javadoc/org/activerdf/wrapper/sesame2/class-use/WrapperForSesame2.html +144 -0
  108. data/activerdf-sesame/java/javadoc/org/activerdf/wrapper/sesame2/package-frame.html +32 -0
  109. data/activerdf-sesame/java/javadoc/org/activerdf/wrapper/sesame2/package-summary.html +157 -0
  110. data/activerdf-sesame/java/javadoc/org/activerdf/wrapper/sesame2/package-tree.html +150 -0
  111. data/activerdf-sesame/java/javadoc/org/activerdf/wrapper/sesame2/package-use.html +144 -0
  112. data/activerdf-sesame/java/javadoc/overview-summary.html +156 -0
  113. data/activerdf-sesame/java/javadoc/overview-tree.html +152 -0
  114. data/activerdf-sesame/java/javadoc/package-list +1 -0
  115. data/activerdf-sesame/java/javadoc/resources/inherit.gif +0 -0
  116. data/activerdf-sesame/java/javadoc/stylesheet.css +29 -0
  117. data/activerdf-sesame/java/lib/commons-codec-1.3.jar +0 -0
  118. data/activerdf-sesame/java/lib/commons-dbcp-1.2.2.jar +0 -0
  119. data/activerdf-sesame/java/lib/commons-httpclient-3.1.jar +0 -0
  120. data/activerdf-sesame/java/lib/commons-logging-1.1.1.jar +0 -0
  121. data/activerdf-sesame/java/lib/commons-pool-1.3.jar +0 -0
  122. data/activerdf-sesame/java/lib/commons-pool-1.5.2.jar +0 -0
  123. data/activerdf-sesame/java/lib/junit-3.8.2.jar +0 -0
  124. data/activerdf-sesame/java/lib/openrdf-sesame-2.0-onejar.jar +0 -0
  125. data/activerdf-sesame/java/lib/openrdf-sesame-2.3-pr1-onejar.jar +0 -0
  126. data/activerdf-sesame/java/lib/slf4j-api-1.4.3.jar +0 -0
  127. data/activerdf-sesame/java/lib/slf4j-nop-1.4.3.jar +0 -0
  128. data/activerdf-sesame/java/manifest.mf +3 -0
  129. data/activerdf-sesame/java/settings.xml +135 -0
  130. data/activerdf-sesame/java/src/org/activerdf/wrapper/sesame2/WrapperForSesame2.java +145 -0
  131. data/activerdf-sesame/java/test-src/org/activerdf/wrapper/sesame2/TestWrapperForSesame2.java +41 -0
  132. data/activerdf-sesame/lib/activerdf_sesame/init.rb +11 -0
  133. data/activerdf-sesame/lib/activerdf_sesame/sesame.rb +400 -0
  134. data/activerdf-sesame/test/eyal-foaf.nt +39 -0
  135. data/activerdf-sesame/test/eyal-foaf.rdf +65 -0
  136. data/activerdf-sesame/test/test_sesame_adapter.rb +341 -0
  137. data/activerdf-sparql/CHANGELOG +35 -0
  138. data/activerdf-sparql/LICENSE +504 -0
  139. data/activerdf-sparql/README +10 -0
  140. data/activerdf-sparql/Rakefile +78 -0
  141. data/activerdf-sparql/VERSION +1 -0
  142. data/activerdf-sparql/lib/activerdf_sparql/init.rb +10 -0
  143. data/activerdf-sparql/lib/activerdf_sparql/sparql.rb +212 -0
  144. data/activerdf-sparql/lib/activerdf_sparql/sparql_result_parser.rb +55 -0
  145. data/activerdf-sparql/test/test_sparql_adapter.rb +108 -0
  146. data/activerdf-yars/LICENSE +504 -0
  147. data/activerdf-yars/README +10 -0
  148. data/activerdf-yars/Rakefile +38 -0
  149. data/activerdf-yars/lib/activerdf_yars/init.rb +10 -0
  150. data/activerdf-yars/lib/activerdf_yars/jars2.rb +119 -0
  151. data/lib/active_rdf.rb +85 -0
  152. data/lib/active_rdf/directaccess/direct_access.rb +49 -0
  153. data/lib/active_rdf/federation/active_rdf_adapter.rb +47 -0
  154. data/lib/active_rdf/federation/connection_pool.rb +156 -0
  155. data/lib/active_rdf/federation/federation_manager.rb +112 -0
  156. data/lib/active_rdf/instance_exec.rb +13 -0
  157. data/lib/active_rdf/objectmanager/bnode.rb +7 -0
  158. data/lib/active_rdf/objectmanager/literal.rb +71 -0
  159. data/lib/active_rdf/objectmanager/namespace.rb +106 -0
  160. data/lib/active_rdf/objectmanager/object_manager.rb +119 -0
  161. data/lib/active_rdf/objectmanager/ordered_set.rb +116 -0
  162. data/lib/active_rdf/objectmanager/property_list.rb +76 -0
  163. data/lib/active_rdf/objectmanager/resource.rb +609 -0
  164. data/lib/active_rdf/objectmanager/resource_like.rb +28 -0
  165. data/lib/active_rdf/queryengine/ntriples_parser.rb +90 -0
  166. data/lib/active_rdf/queryengine/query.rb +245 -0
  167. data/lib/active_rdf/queryengine/query2jars2.rb +22 -0
  168. data/lib/active_rdf/queryengine/query2sparql.rb +139 -0
  169. data/lib/active_rdf_helpers.rb +30 -0
  170. data/lib/active_rdf_log.rb +100 -0
  171. data/test/common.rb +119 -0
  172. data/test/directaccess/test_direct_access.rb +64 -0
  173. data/test/federation/test_connection_pool.rb +86 -0
  174. data/test/federation/test_federation_manager.rb +145 -0
  175. data/test/objectmanager/test_literal.rb +52 -0
  176. data/test/objectmanager/test_namespace.rb +83 -0
  177. data/test/objectmanager/test_object_manager.rb +96 -0
  178. data/test/objectmanager/test_ordered_set.rb +110 -0
  179. data/test/objectmanager/test_resource_reading.rb +150 -0
  180. data/test/objectmanager/test_resource_writing.rb +39 -0
  181. data/test/objectmanager/test_talia_syntax.rb +68 -0
  182. data/test/queryengine/my_external_resource.rb +24 -0
  183. data/test/queryengine/test_external_resource_class.rb +49 -0
  184. data/test/queryengine/test_ntriples_parser.rb +71 -0
  185. data/test/queryengine/test_query.rb +55 -0
  186. data/test/queryengine/test_query2jars2.rb +51 -0
  187. data/test/queryengine/test_query2sparql.rb +76 -0
  188. data/test/queryengine/test_query_engine.rb +52 -0
  189. data/test/test_adapters.rb +58 -0
  190. metadata +266 -0
@@ -0,0 +1,39 @@
1
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf> <http://www.w3.org/2000/01/rdf-schema#label> "FOAF file of Eyal Oren" .
2
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf> <http://purl.org/rss/1.0/modules/syndication/updateFrequency> "1" .
3
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf> <http://purl.org/rss/1.0/modules/syndication/updatePeriod> "weekly" .
4
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
5
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/name> "Eyal Oren" .
6
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/title> "ir." .
7
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/gender> "male" .
8
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/mbox> <mailto:eyal.oren@deri.org> .
9
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/homepage> <http://www.eyaloren.org/> .
10
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/workplaceHomepage> <http://www.deri.ie/> .
11
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/img> <http://www.eyaloren.org/eyal.jpg> .
12
+ <https://launchpad.net/products/activerdf/+rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Project> .
13
+ <https://launchpad.net/products/activerdf/+rdf> <http://xmlns.com/foaf/0.1/name> "ActiveRDF" .
14
+ <https://launchpad.net/products/activerdf/+rdf> <http://xmlns.com/foaf/0.1/homepage> <http://www.activerdf.org/> .
15
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/currentProject> <https://launchpad.net/products/activerdf/+rdf> .
16
+ <https://launchpad.net/products/browserdf/+rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Project> .
17
+ <https://launchpad.net/products/browserdf/+rdf> <http://xmlns.com/foaf/0.1/name> "BrowseRDF" .
18
+ <https://launchpad.net/products/browserdf/+rdf> <http://xmlns.com/foaf/0.1/homepage> <http://www.browserdf.org/> .
19
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/currentProject> <https://launchpad.net/products/browserdf/+rdf> .
20
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.w3.org/People/Berners-Lee/card#i> .
21
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://richard.cyganiak.de/foaf.rdf#cygri> .
22
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.harth.org/~andreas/foaf.rdf#ah> .
23
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.leobard.net/rdf/foaf.xml#me> .
24
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.debruijn.net/foaf.rdf#me> .
25
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://platon.escet.urjc.es/~axel/foaf.rdf#me> .
26
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.kr.tuwien.ac.at/staff/roman/foaf.rdf#me> .
27
+ <http://sw.deri.org/~knud> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
28
+ <http://sw.deri.org/~knud> <http://xmlns.com/foaf/0.1/name> "Knud M\u00F6ller" .
29
+ <http://sw.deri.org/~knud> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://sw.deri.org/~knud/knudfoaf.rdf> .
30
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://sw.deri.org/~knud> .
31
+ <http://www-cdr.stanford.edu/~petrie/foaf.rdf#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
32
+ <http://www-cdr.stanford.edu/~petrie/foaf.rdf#me> <http://xmlns.com/foaf/0.1/name> "Charles Petrie" .
33
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www-cdr.stanford.edu/~petrie/foaf.rdf#me> .
34
+ <http://www.isi.edu/~stefan/foaf.rdf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
35
+ <http://www.isi.edu/~stefan/foaf.rdf> <http://xmlns.com/foaf/0.1/name> "Stefan Decker" .
36
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.isi.edu/~stefan/foaf.rdf> .
37
+ <http://www.aifb.uni-karlsruhe.de/Personen/viewPersonOWL/id2076instance> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
38
+ <http://www.aifb.uni-karlsruhe.de/Personen/viewPersonOWL/id2076instance> <http://xmlns.com/foaf/0.1/name> "Max V\u00F6lkel" .
39
+ <file:///home/metaman/workspaces/deri-workspace/activerdf/activerdf-sesame/test/eyal-foaf.rdf#me> <http://xmlns.com/foaf/0.1/knows> <http://www.aifb.uni-karlsruhe.de/Personen/viewPersonOWL/id2076instance> .
@@ -0,0 +1,65 @@
1
+ <rdf:RDF
2
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
4
+ xmlns:owl="http://www.w3.org/2002/07/owl#"
5
+ xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
6
+ xmlns:foaf="http://xmlns.com/foaf/0.1/"
7
+ xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
8
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
9
+
10
+ <rdf:Description rdf:about="">
11
+ <rdfs:label>FOAF file of Eyal Oren</rdfs:label>
12
+ <syn:updateFrequency>1</syn:updateFrequency>
13
+ <syn:updatePeriod>weekly</syn:updatePeriod>
14
+ </rdf:Description>
15
+
16
+ <foaf:Person rdf:about="#me">
17
+ <foaf:name>Eyal Oren</foaf:name>
18
+ <foaf:title>ir.</foaf:title>
19
+ <foaf:gender>male</foaf:gender>
20
+ <foaf:mbox rdf:resource="mailto:eyal.oren@deri.org" />
21
+ <foaf:homepage rdf:resource="http://www.eyaloren.org/"/>
22
+ <foaf:workplaceHomepage rdf:resource="http://www.deri.ie/"/>
23
+ <foaf:img rdf:resource="http://www.eyaloren.org/eyal.jpg"/>
24
+
25
+ <foaf:currentProject>
26
+ <foaf:Project rdf:about="https://launchpad.net/products/activerdf/+rdf">
27
+ <foaf:name>ActiveRDF</foaf:name>
28
+ <foaf:homepage rdf:resource="http://www.activerdf.org/"/>
29
+ </foaf:Project>
30
+ </foaf:currentProject>
31
+
32
+ <foaf:currentProject>
33
+ <foaf:Project rdf:about="https://launchpad.net/products/browserdf/+rdf">
34
+ <foaf:name>BrowseRDF</foaf:name>
35
+ <foaf:homepage rdf:resource="http://www.browserdf.org/"/>
36
+ </foaf:Project>
37
+ </foaf:currentProject>
38
+
39
+ <foaf:knows rdf:resource="http://www.w3.org/People/Berners-Lee/card#i"/>
40
+ <foaf:knows rdf:resource="http://richard.cyganiak.de/foaf.rdf#cygri"/>
41
+ <foaf:knows rdf:resource="http://www.harth.org/~andreas/foaf.rdf#ah"/>
42
+ <foaf:knows rdf:resource="http://www.leobard.net/rdf/foaf.xml#me"/>
43
+ <foaf:knows rdf:resource="http://www.debruijn.net/foaf.rdf#me"/>
44
+ <foaf:knows rdf:resource="http://platon.escet.urjc.es/~axel/foaf.rdf#me"/>
45
+ <foaf:knows rdf:resource="http://www.kr.tuwien.ac.at/staff/roman/foaf.rdf#me"/>
46
+
47
+ <foaf:knows><foaf:Person rdf:about="http://sw.deri.org/~knud">
48
+ <foaf:name>Knud Möller</foaf:name>
49
+ <rdfs:seeAlso rdf:resource="http://sw.deri.org/~knud/knudfoaf.rdf"/>
50
+ </foaf:Person></foaf:knows>
51
+
52
+ <foaf:knows><foaf:Person rdf:about="http://www-cdr.stanford.edu/~petrie/foaf.rdf#me">
53
+ <foaf:name>Charles Petrie</foaf:name>
54
+ </foaf:Person></foaf:knows>
55
+
56
+ <foaf:knows><foaf:Person rdf:about="http://www.isi.edu/~stefan/foaf.rdf">
57
+ <foaf:name>Stefan Decker</foaf:name>
58
+ </foaf:Person></foaf:knows>
59
+
60
+ <foaf:knows><foaf:Person rdf:about="http://www.aifb.uni-karlsruhe.de/Personen/viewPersonOWL/id2076instance">
61
+ <foaf:name>Max Völkel</foaf:name>
62
+ </foaf:Person></foaf:knows>
63
+
64
+ </foaf:Person>
65
+ </rdf:RDF>
@@ -0,0 +1,341 @@
1
+ # Author:: Benjamin Heitmann
2
+ # Copyright:: (c) 2007
3
+ # License:: LGPL
4
+
5
+ require 'test/unit'
6
+ require 'rubygems'
7
+ require 'pp'
8
+
9
+ require "java"
10
+
11
+
12
+ $CLASSPATH << "/Users/benjamin/Development/activerdf/activerdf-sesame/ext/slf4j-jdk14-1.3.0.jar"
13
+ $CLASSPATH << "/Users/benjamin/Development/activerdf/activerdf-sesame/ext/wrapper-sesame2.jar"
14
+ $CLASSPATH << "/Users/benjamin/Development/activerdf/activerdf-sesame/ext/openrdf-sesame-2.0-beta5-onejar.jar"
15
+ $CLASSPATH << "/Users/benjamin/Development/activerdf/activerdf-sesame/ext/slf4j-api-1.3.0.jar"
16
+
17
+
18
+ # require 'active_rdf'
19
+
20
+
21
+ class TestSesameAdapter < Test::Unit::TestCase
22
+ # TODO maybe put more stuff into setup and teardown...
23
+ def setup
24
+ #ConnectionPool.clear
25
+ end
26
+
27
+ def teardown
28
+ end
29
+
30
+
31
+ def test_registration
32
+ # puts "registration test"
33
+ adapter = ConnectionPool.add_data_source(:type => :sesame)
34
+ assert_instance_of SesameAdapter, adapter
35
+ adapter.close
36
+ end
37
+
38
+ def test_equality
39
+ # puts "equality test"
40
+ adapter1 = ConnectionPool.add_data_source(:type => :sesame, :name => :funky)
41
+ adapter2 = ConnectionPool.add_data_source(:type => :sesame, :name => :groovy)
42
+ assert_not_equal adapter1, adapter2
43
+ adapter1.close
44
+ adapter2.close
45
+ end
46
+
47
+ def test_add_and_retrieve_triple_with_just_uris
48
+ # puts "uri retr test"
49
+ adapter = ConnectionPool.add_data_source(:type => :sesame)
50
+
51
+ eyal = RDFS::Resource.new 'http://eyaloren.org'
52
+ age = RDFS::Resource.new 'foaf:age'
53
+ test = RDFS::Resource.new 'test:test'
54
+
55
+ adapter.add(eyal, age, test)
56
+ # pp Query.new.select(:p, :o).where(eyal, :p, :o).execute
57
+ result = Query.new.distinct(:o).where(eyal, :p, :o).execute
58
+ # sesame does rdfs inferencing and writes into the store that eyal is a resource
59
+ assert_equal 2, result.flatten.size
60
+
61
+ result = Query.new.distinct(:p, :o).where(eyal, :p, :o).execute
62
+ # sesame does rdfs inferencing and writes into the store that eyal is a resource
63
+ assert_equal 4, result.flatten.size
64
+
65
+ result = Query.new.distinct(:o).where(eyal, age, :o).execute
66
+ assert_equal 1, result.flatten.size
67
+
68
+ result = Query.new.distinct(:s).where(:s, age, test).execute
69
+ assert_equal 1, result.flatten.size
70
+
71
+ result = Query.new.distinct(:p).where(eyal, :p, test).execute
72
+ assert_equal 1, result.flatten.size
73
+
74
+ adapter.close
75
+ end
76
+
77
+ # def test_add_and_retrieve_triple_with_an_object_string
78
+ ## puts "string retr test"
79
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
80
+ #
81
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
82
+ # age = RDFS::Resource.new 'foaf:age'
83
+ # test = "23"
84
+ #
85
+ # adapter.add(eyal, age, test)
86
+ #
87
+ # result = Query.new.distinct(:o).where(eyal, :p, :o).execute
88
+ # # sesame does rdfs inferencing and writes into the store that eyal is a resource
89
+ # assert_equal 2, result.flatten.size
90
+ #
91
+ # result = Query.new.distinct(:p, :o).where(eyal, :p, :o).execute
92
+ # # sesame does rdfs inferencing and writes into the store that eyal is a resource
93
+ # assert_equal 4, result.flatten.size
94
+ #
95
+ # result = Query.new.distinct(:o).where(eyal, age, :o).execute
96
+ # assert_equal 1, result.flatten.size
97
+ #
98
+ # result = Query.new.distinct(:s).where(:s, age, test).execute
99
+ # assert_equal 1, result.flatten.size
100
+ #
101
+ # result = Query.new.distinct(:p).where(eyal, :p, test).execute
102
+ # assert_equal 1, result.flatten.size
103
+ #
104
+ # adapter.close
105
+ # end
106
+ #
107
+ # def test_add_and_retrieve_triple_with_an_object_fixnum
108
+ ## puts "fixnum retr test"
109
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
110
+ #
111
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
112
+ # age = RDFS::Resource.new 'foaf:age'
113
+ # test = 23
114
+ #
115
+ # adapter.add(eyal, age, test)
116
+ #
117
+ # result = Query.new.distinct(:o).where(eyal, :p, :o).execute
118
+ # # sesame does rdfs inferencing and writes into the store that eyal is a resource
119
+ # assert_equal 2, result.flatten.size
120
+ #
121
+ # result = Query.new.distinct(:p, :o).where(eyal, :p, :o).execute
122
+ # # sesame does rdfs inferencing and writes into the store that eyal is a resource
123
+ # assert_equal 4, result.flatten.size
124
+ #
125
+ # result = Query.new.distinct(:o).where(eyal, age, :o).execute
126
+ # assert_equal 1, result.flatten.size
127
+ #
128
+ # result = Query.new.distinct(:s).where(:s, age, test).execute
129
+ # assert_equal 1, result.flatten.size
130
+ #
131
+ # result = Query.new.distinct(:p).where(eyal, :p, test).execute
132
+ # assert_equal 1, result.flatten.size
133
+ #
134
+ # adapter.close
135
+ # end
136
+ #
137
+ # def test_dump
138
+ ## puts "dump test"
139
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
140
+ #
141
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
142
+ # age = RDFS::Resource.new 'foaf:age'
143
+ # test = 23
144
+ #
145
+ # adapter.add(eyal, age, test)
146
+ #
147
+ # stringDump = adapter.dump
148
+ #
149
+ # assert_not_nil stringDump
150
+ # assert_kind_of String, stringDump
151
+ # adapter.close
152
+ # end
153
+ #
154
+ # def test_size
155
+ ## puts "site test"
156
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
157
+ #
158
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
159
+ # age = RDFS::Resource.new 'foaf:age'
160
+ # test = 23
161
+ #
162
+ # adapter.add(eyal, age, test)
163
+ #
164
+ # assert_equal 1, adapter.size
165
+ # adapter.close
166
+ # end
167
+ #
168
+ # def test_clear
169
+ ## puts "clear test"
170
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
171
+ #
172
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
173
+ # age = RDFS::Resource.new 'foaf:age'
174
+ # test = 23
175
+ #
176
+ # adapter.add(eyal, age, test)
177
+ # assert_equal 1, adapter.size
178
+ #
179
+ # # calling this reveals an unclosed iterator over statements. maybe this is a bug in sesame2, unclear...
180
+ # # TODO: maybe check this. dont know if this has a high impact
181
+ # adapter.clear
182
+ # assert_equal 0, adapter.size
183
+ # adapter.close
184
+ # end
185
+ #
186
+ # def test_load
187
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
188
+ #
189
+ # this_dir = File.dirname(File.expand_path(__FILE__))
190
+ #
191
+ # adapter.load(this_dir + "/eyal-foaf.nt")
192
+ #
193
+ # assert_not_equal 0, adapter.size
194
+ #
195
+ # # puts adapter.dump
196
+ #
197
+ # adapter.close
198
+ # end
199
+ #
200
+ # def test_remove_basic
201
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
202
+ #
203
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
204
+ # age = RDFS::Resource.new 'foaf:age'
205
+ # test = 23
206
+ #
207
+ # adapter.add(eyal, age, test)
208
+ # assert_equal 1, adapter.size
209
+ #
210
+ # adapter.delete(:s,:p,:o)
211
+ # assert_equal 0, adapter.size
212
+ #
213
+ # adapter.close
214
+ # end
215
+ #
216
+ # def test_remove_permutations
217
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
218
+ #
219
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
220
+ # age = RDFS::Resource.new 'foaf:age'
221
+ # test = 23
222
+ #
223
+ # adapter.add(eyal, age, test)
224
+ # assert_equal 1, adapter.size
225
+ # adapter.delete(:s,:p,test)
226
+ # assert_equal 0, adapter.size
227
+ #
228
+ # adapter.add(eyal, age, test)
229
+ # assert_equal 1, adapter.size
230
+ # adapter.delete(:s,age,:o)
231
+ # assert_equal 0, adapter.size
232
+ #
233
+ # adapter.add(eyal, age, test)
234
+ # assert_equal 1, adapter.size
235
+ # adapter.delete(eyal,:p,:o)
236
+ # assert_equal 0, adapter.size
237
+ #
238
+ # adapter.close
239
+ # end
240
+ #
241
+ # def test_remove_different_objects
242
+ # adapter = ConnectionPool.add_data_source(:type => :sesame)
243
+ #
244
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
245
+ # age = RDFS::Resource.new 'foaf:age'
246
+ # test_uri = RDFS::Resource.new 'test:test'
247
+ # test_string = "maple cured ham"
248
+ # test_fixnum = 42
249
+ #
250
+ # adapter.add(eyal, age, test_uri)
251
+ # adapter.add(eyal, age, test_string)
252
+ # adapter.add(eyal, age, test_fixnum)
253
+ # assert_equal 3, adapter.size
254
+ # adapter.delete(:s,:p,test_uri)
255
+ # assert_equal 2, adapter.size
256
+ # adapter.delete(:s,:p,test_string)
257
+ # assert_equal 1, adapter.size
258
+ # adapter.delete(:s,:p,test_fixnum)
259
+ # assert_equal 0, adapter.size
260
+ #
261
+ # adapter.close
262
+ # end
263
+ #
264
+ # def test_initialization
265
+ # adapter1 = ConnectionPool.add_data_source(:type => :sesame)
266
+ # assert_instance_of SesameAdapter, adapter1
267
+ # adapter1.close
268
+ #
269
+ # adapter2 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => true)
270
+ # assert_instance_of SesameAdapter, adapter2
271
+ # adapter2.close
272
+ #
273
+ # adapter3 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => false)
274
+ # assert_instance_of SesameAdapter, adapter3
275
+ # adapter3.close
276
+ #
277
+ # adapter1 = ConnectionPool.add_data_source(:type => :sesame, :location => :memory)
278
+ # assert_instance_of SesameAdapter, adapter1
279
+ # adapter1.close
280
+ #
281
+ # adapter2 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => true, :location => :memory)
282
+ # assert_instance_of SesameAdapter, adapter2
283
+ # adapter2.close
284
+ #
285
+ # adapter3 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => false, :location => :memory)
286
+ # assert_instance_of SesameAdapter, adapter3
287
+ # adapter3.close
288
+ # end
289
+ #
290
+ # def test_persistence_basic
291
+ # this_dir = File.dirname(File.expand_path(__FILE__))
292
+ #
293
+ # adapter1 = ConnectionPool.add_data_source(:type => :sesame,
294
+ # :location => this_dir + "/sesame-persistence.s2")
295
+ # assert_instance_of SesameAdapter, adapter1
296
+ # adapter1.close
297
+ # File.delete(this_dir + "/sesame-persistence.s2")
298
+ #
299
+ # adapter1 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => false,
300
+ # :location => this_dir + "/sesame-persistence.s2")
301
+ # assert_instance_of SesameAdapter, adapter1
302
+ # adapter1.close
303
+ # File.delete(this_dir + "/sesame-persistence.s2")
304
+ #
305
+ # adapter2 = ConnectionPool.add_data_source(:type => :sesame, :inferencing => true,
306
+ # :location => this_dir + "/sesame-persistence.s2")
307
+ # assert_instance_of SesameAdapter, adapter2
308
+ # adapter2.close
309
+ # File.delete(this_dir + "/sesame-persistence.s2")
310
+ # end
311
+ #
312
+ # def test_persistence_reloading
313
+ # this_dir = File.dirname(File.expand_path(__FILE__))
314
+ # adapter = ConnectionPool.add_data_source(:type => :sesame,
315
+ # :location => this_dir + "/sesame-persistence.s2")
316
+ #
317
+ # eyal = RDFS::Resource.new 'http://eyaloren.org'
318
+ # age = RDFS::Resource.new 'foaf:age'
319
+ # test = 23
320
+ #
321
+ # adapter.add(eyal, age, test)
322
+ #
323
+ # result = Query.new.distinct(:o).where(eyal, :p, :o).execute
324
+ # # sesame does rdfs inferencing and writes into the store that eyal is a resource
325
+ # assert_equal 2, result.flatten.size
326
+ #
327
+ # adapter.close
328
+ # ConnectionPool.clear
329
+ #
330
+ # adapter2 = ConnectionPool.add_data_source(:name => :second_one, :type => :sesame,
331
+ # :location => this_dir + "/sesame-persistence.s2")
332
+ #
333
+ # result = Query.new.distinct(:o).where(eyal, :p, :o).execute
334
+ # # sesame does rdfs inferencing and writes into the store that eyal is a resource
335
+ # assert_equal 2, result.flatten.size
336
+ #
337
+ # adapter2.close
338
+ # File.delete(this_dir + "/sesame-persistence.s2")
339
+ # end
340
+
341
+ end
@@ -0,0 +1,35 @@
1
+ == activerdf_sparql (1.3.7)
2
+ * updated dbpedia test to reflect page content (Jason P. Morrison)
3
+
4
+ == activerdf_sparql (1.3.6) Wed, 23 Apr 2008 10:43:02 +0200
5
+ * support for HTTP authentication
6
+
7
+ == activerdf_sparql (1.3.5) Mon, 01 Oct 2007 12:03:40 +0200
8
+ * support for POSTing SPARQL queres (Edward Benson)
9
+ * added experimental sparql query cache: it never expires (Benjamin Heitmann)
10
+ * reverted gem dependency to json (Benjamin Heitmann)
11
+
12
+ == activerdf_sparql (1.3.4) Fri, 21 Sep 2007 10:06:57 +0100
13
+ * parse bnodes in SPARQL queries
14
+
15
+ == activerdf_sparql (1.3.3) 2007-09-03 15:37
16
+ * change Rakefile: require json_pure when running on JRuby
17
+ * added very simple close method to sparql adapter
18
+
19
+ == activerdf_sparql (1.3.2) Thu, 09 Aug 2007 15:10:16 +0100
20
+ * support for LANG filters and engine-specific keyword search
21
+
22
+ == activerdf_sparql (1.3.1) Fri, 03 Aug 2007 14:10:19 +0100
23
+ * initial support for FILTERs
24
+
25
+ == activerdf_sparql (1.3) Sun, 18 Feb 2007 15:11:05 +0000
26
+ * added support for datatyped literals in SPARQL queries
27
+
28
+ == activerdf_sparql (1.2.1) Tue, 13 Feb 2007 19:18:47 +0000
29
+ * gems published automatically from Rakefile
30
+ * fixed wrong require statement in sparql.rb
31
+
32
+ == activerdf_sparql (1.2) Tue, 13 Feb 2007 17:00:29 +0000
33
+ * added dependency on json
34
+ * made tests bit more functional
35
+ * ensure tests do not fail if SPARQL server is down