pho 0.4.1 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/CHANGES +18 -1
  2. data/README +10 -0
  3. data/Rakefile +2 -1
  4. data/doc/rdoc/classes/Pho.html +33 -22
  5. data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
  6. data/doc/rdoc/classes/Pho/{RDF_JSON.html → Enrichment.html} +8 -7
  7. data/doc/rdoc/classes/Pho/Enrichment/ResourceEnricher.html +310 -0
  8. data/doc/rdoc/classes/Pho/Etags.html +42 -42
  9. data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
  10. data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
  11. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +110 -105
  12. data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
  13. data/doc/rdoc/classes/Pho/FileManagement.html +121 -0
  14. data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +443 -0
  15. data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +258 -0
  16. data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +271 -0
  17. data/doc/rdoc/classes/Pho/Job.html +64 -64
  18. data/doc/rdoc/classes/Pho/Jobs.html +60 -60
  19. data/doc/rdoc/classes/Pho/QueryProfile.html +60 -60
  20. data/doc/rdoc/classes/Pho/RDFCollection.html +4 -378
  21. data/doc/rdoc/classes/Pho/ResourceHash.html +123 -0
  22. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +323 -0
  23. data/doc/rdoc/classes/Pho/{RDF_JSON → ResourceHash}/SetAlgebra.html +18 -18
  24. data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
  25. data/doc/rdoc/classes/Pho/Sparql.html +137 -0
  26. data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +515 -0
  27. data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +575 -0
  28. data/doc/rdoc/classes/Pho/Status.html +26 -26
  29. data/doc/rdoc/classes/Pho/Store.html +271 -241
  30. data/doc/rdoc/classes/Pho/Update/Changeset.html +73 -73
  31. data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +34 -34
  32. data/doc/rdoc/classes/Pho/Update/Changesets.html +14 -14
  33. data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +31 -23
  34. data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +45 -21
  35. data/doc/rdoc/classes/Pho/Update/Statement.html +29 -29
  36. data/doc/rdoc/classes/String.html +1 -1
  37. data/doc/rdoc/created.rid +1 -1
  38. data/doc/rdoc/files/CHANGES.html +49 -3
  39. data/doc/rdoc/files/README.html +15 -1
  40. data/doc/rdoc/files/lib/pho/changeset_builder_rb.html +1 -1
  41. data/doc/rdoc/files/lib/pho/changeset_rb.html +1 -1
  42. data/doc/rdoc/files/lib/pho/converter_rb.html +108 -0
  43. data/doc/rdoc/files/lib/pho/enrichment_rb.html +101 -0
  44. data/doc/rdoc/files/lib/pho/etags_rb.html +1 -1
  45. data/doc/rdoc/files/lib/pho/field_predicate_map_rb.html +1 -1
  46. data/doc/rdoc/files/lib/pho/file_management_rb.html +101 -0
  47. data/doc/rdoc/files/lib/pho/file_manager_rb.html +108 -0
  48. data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +1 -1
  49. data/doc/rdoc/files/lib/pho/resource_hash_rb.html +101 -0
  50. data/doc/rdoc/files/lib/pho/{rdf_json_rb.html → sparql_rb.html} +4 -4
  51. data/doc/rdoc/files/lib/pho/store_rb.html +1 -1
  52. data/doc/rdoc/files/lib/pho_rb.html +7 -2
  53. data/doc/rdoc/fr_class_index.html +12 -2
  54. data/doc/rdoc/fr_file_index.html +6 -1
  55. data/doc/rdoc/fr_method_index.html +176 -139
  56. data/examples/sparql_construct_hash.rb +26 -0
  57. data/examples/sparql_select.rb +18 -0
  58. data/lib/pho.rb +6 -1
  59. data/lib/pho/changeset.rb +24 -9
  60. data/lib/pho/changeset_builder.rb +10 -10
  61. data/lib/pho/converter.rb +74 -0
  62. data/lib/pho/enrichment.rb +81 -0
  63. data/lib/pho/etags.rb +1 -0
  64. data/lib/pho/field_predicate_map.rb +6 -1
  65. data/lib/pho/file_management.rb +102 -0
  66. data/lib/pho/file_manager.rb +61 -0
  67. data/lib/pho/rdf_collection.rb +54 -120
  68. data/lib/pho/{rdf_json.rb → resource_hash.rb} +3 -4
  69. data/lib/pho/sparql.rb +332 -0
  70. data/lib/pho/store.rb +20 -14
  71. data/tests/tc_changeset.rb +46 -0
  72. data/tests/tc_changeset_builder.rb +122 -1
  73. data/tests/tc_converter.rb +95 -0
  74. data/tests/tc_enrichment.rb +83 -0
  75. data/tests/tc_file_manager.rb +88 -0
  76. data/tests/tc_rdf_collection.rb +3 -0
  77. data/tests/{tc_rdf_json.rb → tc_resource_hash.rb} +23 -23
  78. data/tests/tc_search.rb +1 -1
  79. data/tests/tc_sparql.rb +131 -6
  80. data/tests/tc_sparql_helper.rb +214 -0
  81. data/tests/ts_pho.rb +6 -2
  82. metadata +47 -8
@@ -11,10 +11,14 @@ require 'tc_query_profile.rb'
11
11
  require 'tc_facet.rb'
12
12
  require 'tc_search.rb'
13
13
  require 'tc_sparql.rb'
14
+ require 'tc_sparql_helper.rb'
14
15
  require 'tc_status.rb'
15
16
  require 'tc_job.rb'
16
17
  require 'tc_rdf_collection.rb'
17
- require 'tc_rdf_json.rb'
18
+ require 'tc_file_manager.rb'
19
+ require 'tc_resource_hash.rb'
18
20
  require 'tc_changeset_builder.rb'
19
21
  require 'tc_changeset.rb'
20
- require 'tc_changesets.rb'
22
+ require 'tc_changesets.rb'
23
+ require 'tc_converter.rb'
24
+ require 'tc_enrichment.rb'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: "0.5"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leigh Dodds
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-22 00:00:00 +01:00
12
+ date: 2009-06-04 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -42,6 +42,16 @@ dependencies:
42
42
  - !ruby/object:Gem::Version
43
43
  version: 0.9.5
44
44
  version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: mime-types
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "1.16"
54
+ version:
45
55
  description: Ruby client for the Talis Platform
46
56
  email: leigh.dodds@talis.com
47
57
  executables:
@@ -65,24 +75,37 @@ files:
65
75
  - doc/rdoc/classes
66
76
  - doc/rdoc/classes/Pho
67
77
  - doc/rdoc/classes/Pho/Etags.html
78
+ - doc/rdoc/classes/Pho/FileManagement.html
68
79
  - doc/rdoc/classes/Pho/Jobs.html
69
80
  - doc/rdoc/classes/Pho/DatatypeProperty.html
70
81
  - doc/rdoc/classes/Pho/Facet.html
71
82
  - doc/rdoc/classes/Pho/JobUpdate.html
72
- - doc/rdoc/classes/Pho/RDF_JSON
73
- - doc/rdoc/classes/Pho/RDF_JSON/SetAlgebra.html
83
+ - doc/rdoc/classes/Pho/Enrichment.html
74
84
  - doc/rdoc/classes/Pho/RDFCollection.html
75
85
  - doc/rdoc/classes/Pho/Job.html
76
86
  - doc/rdoc/classes/Pho/Status.html
77
87
  - doc/rdoc/classes/Pho/QueryProfile.html
78
88
  - doc/rdoc/classes/Pho/Snapshot.html
79
- - doc/rdoc/classes/Pho/RDF_JSON.html
80
89
  - doc/rdoc/classes/Pho/FieldWeighting.html
90
+ - doc/rdoc/classes/Pho/Sparql
91
+ - doc/rdoc/classes/Pho/Sparql/SparqlClient.html
92
+ - doc/rdoc/classes/Pho/Sparql/SparqlHelper.html
81
93
  - doc/rdoc/classes/Pho/Namespaces.html
94
+ - doc/rdoc/classes/Pho/ResourceHash.html
95
+ - doc/rdoc/classes/Pho/FileManagement
96
+ - doc/rdoc/classes/Pho/FileManagement/FileManager.html
97
+ - doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html
98
+ - doc/rdoc/classes/Pho/FileManagement/RDFManager.html
99
+ - doc/rdoc/classes/Pho/Sparql.html
100
+ - doc/rdoc/classes/Pho/Enrichment
101
+ - doc/rdoc/classes/Pho/Enrichment/ResourceEnricher.html
82
102
  - doc/rdoc/classes/Pho/Store.html
83
103
  - doc/rdoc/classes/Pho/Facet
84
104
  - doc/rdoc/classes/Pho/Facet/Results.html
85
105
  - doc/rdoc/classes/Pho/Facet/Term.html
106
+ - doc/rdoc/classes/Pho/ResourceHash
107
+ - doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html
108
+ - doc/rdoc/classes/Pho/ResourceHash/Converter.html
86
109
  - doc/rdoc/classes/Pho/Analyzers.html
87
110
  - doc/rdoc/classes/Pho/FieldPredicateMap.html
88
111
  - doc/rdoc/classes/Pho/Update.html
@@ -102,21 +125,27 @@ files:
102
125
  - doc/rdoc/files/lib/pho
103
126
  - doc/rdoc/files/lib/pho/changeset_rb.html
104
127
  - doc/rdoc/files/lib/pho/changeset_builder_rb.html
128
+ - doc/rdoc/files/lib/pho/enrichment_rb.html
129
+ - doc/rdoc/files/lib/pho/resource_hash_rb.html
130
+ - doc/rdoc/files/lib/pho/file_management_rb.html
105
131
  - doc/rdoc/files/lib/pho/job_rb.html
132
+ - doc/rdoc/files/lib/pho/sparql_rb.html
106
133
  - doc/rdoc/files/lib/pho/rdf_collection_rb.html
107
134
  - doc/rdoc/files/lib/pho/query_profile_rb.html
108
135
  - doc/rdoc/files/lib/pho/etags_rb.html
109
- - doc/rdoc/files/lib/pho/rdf_json_rb.html
110
136
  - doc/rdoc/files/lib/pho/snapshot_rb.html
111
137
  - doc/rdoc/files/lib/pho/field_predicate_map_rb.html
138
+ - doc/rdoc/files/lib/pho/file_manager_rb.html
112
139
  - doc/rdoc/files/lib/pho/store_rb.html
113
140
  - doc/rdoc/files/lib/pho/facet_rb.html
141
+ - doc/rdoc/files/lib/pho/converter_rb.html
114
142
  - doc/rdoc/files/lib/pho/status_rb.html
115
143
  - doc/rdoc/files/CHANGES.html
116
144
  - doc/rdoc/index.html
117
145
  - doc/rdoc/created.rid
118
146
  - tests/tc_facet.rb
119
147
  - tests/tc_changesets.rb
148
+ - tests/tc_enrichment.rb
120
149
  - tests/tc_metabox.rb
121
150
  - tests/tc_store_util.rb
122
151
  - tests/tc_contentbox.rb
@@ -124,29 +153,39 @@ files:
124
153
  - tests/tc_changeset_builder.rb
125
154
  - tests/tc_rdf_collection.rb
126
155
  - tests/ts_pho.rb
156
+ - tests/tc_resource_hash.rb
157
+ - tests/tc_sparql_helper.rb
127
158
  - tests/tc_jobcontrol.rb
128
- - tests/tc_rdf_json.rb
129
159
  - tests/tc_snapshots.rb
130
160
  - tests/tc_job.rb
131
161
  - tests/tc_search.rb
162
+ - tests/tc_file_manager.rb
132
163
  - tests/tc_status.rb
133
164
  - tests/tc_changeset.rb
165
+ - tests/tc_converter.rb
134
166
  - tests/tc_etags.rb
135
167
  - tests/tc_field_predicate_map.rb
136
168
  - tests/tc_query_profile.rb
169
+ - examples/sparql_select.rb
137
170
  - examples/status.rb
138
171
  - examples/sparql.rb
172
+ - examples/sparql_construct_hash.rb
139
173
  - examples/contentbox.rb
140
174
  - lib/pho.rb
141
175
  - lib/pho
142
176
  - lib/pho/changeset_builder.rb
143
- - lib/pho/rdf_json.rb
177
+ - lib/pho/file_manager.rb
144
178
  - lib/pho/etags.rb
179
+ - lib/pho/enrichment.rb
145
180
  - lib/pho/status.rb
146
181
  - lib/pho/rdf_collection.rb
182
+ - lib/pho/converter.rb
147
183
  - lib/pho/store.rb
148
184
  - lib/pho/field_predicate_map.rb
185
+ - lib/pho/sparql.rb
186
+ - lib/pho/resource_hash.rb
149
187
  - lib/pho/changeset.rb
188
+ - lib/pho/file_management.rb
150
189
  - lib/pho/facet.rb
151
190
  - lib/pho/query_profile.rb
152
191
  - lib/pho/job.rb