jena-jruby 0.5.0-java → 0.6.0-java

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: da6f6595ade37e0530184af5d747482387e75f34
4
+ data.tar.gz: 6d4ef080bdb2d6a23c25d5229e03cf6813bf7446
5
+ SHA512:
6
+ metadata.gz: eaa53c1b42e22b4a8f08a7297f24aa3f5302db8db9a2766bb3afc1dcae7b41a13d3b769c14cda2817d4204ead17fc7983cef3a4b01bec42ba47c43fd489374d3
7
+ data.tar.gz: 53739fa5498676d2f34f2de4f202fe5d697806dd55e81cc172f93fe32fbed334198bb01d837ceaf910de14e759acc8447d776c441847740096fc695749401eaa
data/.gitignore CHANGED
@@ -7,3 +7,5 @@ pkg
7
7
  rdoc
8
8
  pkg
9
9
  *~
10
+ temp
11
+ .ruby-version
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
  #gem "sinatra", "1.2.0a", :require => false
3
3
  gem "builder"
4
-
4
+ gem "rake", group: :test
5
+ gem "minitest", group: :test
6
+ gem "pry", group: :test
@@ -1,10 +1,31 @@
1
1
  GEM
2
- remote: http://rubygems.org/
2
+ remote: https://rubygems.org/
3
3
  specs:
4
- builder (3.0.0)
4
+ builder (3.2.2)
5
+ coderay (1.1.0)
6
+ ffi (1.9.3-java)
7
+ method_source (0.8.2)
8
+ minitest (5.3.2)
9
+ pry (0.10.1)
10
+ coderay (~> 1.1.0)
11
+ method_source (~> 0.8.1)
12
+ slop (~> 3.4)
13
+ pry (0.10.1-java)
14
+ coderay (~> 1.1.0)
15
+ method_source (~> 0.8.1)
16
+ slop (~> 3.4)
17
+ spoon (~> 0.0)
18
+ rake (10.3.2)
19
+ slop (3.6.0)
20
+ spoon (0.0.4)
21
+ ffi
5
22
 
6
23
  PLATFORMS
7
24
  java
25
+ ruby
8
26
 
9
27
  DEPENDENCIES
10
28
  builder
29
+ minitest
30
+ pry
31
+ rake
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Gem wrapper for Apache Jena
2
2
 
3
- This Gem provides convenience access to the [Apache Jena](http://incubator.apache.org/jena)
3
+ This Gem provides convenience access to the [Apache Jena](http://jena.apache.org)
4
4
  RDF platform. Jena is a widely used Java platform for parsing, storing, manipulating,
5
5
  querying and publishing semantic web data and linked data. This gem provides a single
6
6
  dependency so that JRuby programs can access all of the capabilities of Jena, including TDB,
@@ -9,7 +9,7 @@ conveniently from JRuby.
9
9
  This gem provides the following benefits:
10
10
 
11
11
  * a single dependency which includes all of the `.jar` files for the latest release
12
- of Jena (currently 2.7.0) and TDB (currently 0.9.0)
12
+ of Jena (currently 2.12.0) including TDB.
13
13
 
14
14
  * import of some of the key classes used by Jena-based programs into a `Jena::`
15
15
  module, to make code more compact
@@ -53,49 +53,175 @@ Since `jena-jruby` now includes TDB, the easiest way to get the full set of jars
53
53
  to support Jena is to use Maven to list the dependencies declared in the TDB `pom.xml`.
54
54
  For convenience, this is packaged in a bash script:
55
55
 
56
- ian@rowan-15 $ export JENA_TDB_ROOT=~/whereever/you/have/the/tdb/source
57
- # note: defaults to ~/workspace/apache-jena-tdb
58
-
59
- ian@rowan-15 $ cd ~/workspace/jena-jruby/
60
- ian@rowan-15 $ bin/update_jars_maven
61
- Changing to TDB directory /home/ian/workspace/apache-jena-tdb
62
- ~/workspace/apache-jena-tdb ~/workspace/jena-jruby
56
+ ian@ian-desktop $ bin/update_jars_maven
57
+ Changing to temp directory
58
+ ~/workspace/jena-jruby/temp ~/workspace/jena-jruby
59
+ Fetching TDB version 2.12.0
60
+ A jena-tdb/bin-test
61
+ A jena-tdb/src
62
+ ... lots more of these ...
63
+ U jena-tdb
64
+ Checked out revision 1624415.
63
65
  Cleaning old versions and recompiling ...
64
66
  [INFO] Scanning for projects...
67
+ [WARNING]
68
+ [WARNING] Some problems were encountered while building the effective model for org.apache.jena:jena-tdb:jar:1.1.0
69
+ [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ org.apache.jena:jena-parent:10, /home/ian/.m2/repository/org/apache/jena/jena-parent/10/jena-parent-10.pom, line 521, column 15
70
+ [WARNING]
71
+ [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
72
+ [WARNING]
73
+ [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
74
+ [WARNING]
75
+ [INFO]
65
76
  [INFO] ------------------------------------------------------------------------
66
- [INFO] Building TDB
67
- [INFO] task-segment: [clean, install]
77
+ [INFO] Building Apache Jena - TDB (Native Triple Store) 1.1.0
68
78
  [INFO] ------------------------------------------------------------------------
69
- .. lots of maven output ..
79
+ [INFO]
80
+ [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jena-tdb ---
81
+ [INFO]
82
+ [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce) @ jena-tdb ---
83
+ [INFO]
84
+ [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ jena-tdb ---
85
+ [INFO]
86
+ [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ jena-tdb ---
87
+ [INFO]
88
+ [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jena-tdb ---
89
+ [INFO] Using 'UTF-8' encoding to copy filtered resources.
90
+ [INFO] Copying 0 resource
91
+ [INFO] Copying 1 resource
92
+ [INFO] Copying 3 resources
93
+ [INFO]
94
+ [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jena-tdb ---
95
+ [INFO] Changes detected - recompiling the module!
96
+ [INFO] Compiling 263 source files to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/classes
97
+ [INFO]
98
+ [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jena-tdb ---
99
+ [INFO] Using 'UTF-8' encoding to copy filtered resources.
100
+ [INFO] Copying 0 resource
101
+ [INFO] Copying 3 resources
102
+ [INFO]
103
+ [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jena-tdb ---
104
+ [INFO] Changes detected - recompiling the module!
105
+ [INFO] Compiling 129 source files to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/test-classes
106
+ [INFO]
107
+ [INFO] --- maven-surefire-plugin:2.16:test (default-test) @ jena-tdb ---
108
+ [INFO] Tests are skipped.
109
+ [INFO]
110
+ [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jena-tdb ---
111
+ [INFO] Building jar: /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0.jar
112
+ [INFO]
113
+ [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ jena-tdb ---
114
+ [INFO]
115
+ [INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ jena-tdb ---
116
+ [INFO] Building jar: /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-sources.jar
117
+ [INFO]
118
+ [INFO] --- maven-source-plugin:2.2.1:test-jar-no-fork (attach-sources-test) @ jena-tdb ---
119
+ [INFO] Building jar: /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-test-sources.jar
120
+ [INFO]
121
+ [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ jena-tdb ---
122
+ [INFO] Building jar: /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-tests.jar
123
+ [INFO]
124
+ [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ jena-tdb ---
125
+ [INFO] Building jar: /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-javadoc.jar
126
+ [INFO]
127
+ [INFO] --- maven-install-plugin:2.5.1:install (default-install) @ jena-tdb ---
128
+ [INFO] Installing /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0.jar to /home/ian/.m2/repository/org/apache/jena/jena-tdb/1.1.0/jena-tdb-1.1.0.jar
129
+ [INFO] Installing /home/ian/workspace/jena-jruby/temp/jena-tdb/pom.xml to /home/ian/.m2/repository/org/apache/jena/jena-tdb/1.1.0/jena-tdb-1.1.0.pom
130
+ [INFO] Installing /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-sources.jar to /home/ian/.m2/repository/org/apache/jena/jena-tdb/1.1.0/jena-tdb-1.1.0-sources.jar
131
+ [INFO] Installing /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-test-sources.jar to /home/ian/.m2/repository/org/apache/jena/jena-tdb/1.1.0/jena-tdb-1.1.0-test-sources.jar
132
+ [INFO] Installing /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-tests.jar to /home/ian/.m2/repository/org/apache/jena/jena-tdb/1.1.0/jena-tdb-1.1.0-tests.jar
133
+ [INFO] Installing /home/ian/workspace/jena-jruby/temp/jena-tdb/target/jena-tdb-1.1.0-javadoc.jar to /home/ian/.m2/repository/org/apache/jena/jena-tdb/1.1.0/jena-tdb-1.1.0-javadoc.jar
70
134
  [INFO] ------------------------------------------------------------------------
71
- [INFO] BUILD SUCCESSFUL
135
+ [INFO] BUILD SUCCESS
72
136
  [INFO] ------------------------------------------------------------------------
73
- [INFO] Total time: 17 seconds
74
- [INFO] Finished at: Thu Jan 05 00:18:09 GMT 2012
75
- [INFO] Final Memory: 68M/718M
137
+ [INFO] Total time: 17.565s
138
+ [INFO] Finished at: Thu Sep 11 23:43:16 BST 2014
139
+ [INFO] Final Memory: 35M/366M
76
140
  [INFO] ------------------------------------------------------------------------
77
141
  Collecting dependencies ...
78
142
  [INFO] Scanning for projects...
79
- [INFO] Searching repository for plugin with prefix: 'dependency'.
143
+ [WARNING]
144
+ [WARNING] Some problems were encountered while building the effective model for org.apache.jena:jena-tdb:jar:1.1.0
145
+ [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ org.apache.jena:jena-parent:10, /home/ian/.m2/repository/org/apache/jena/jena-parent/10/jena-parent-10.pom, line 521, column 15
146
+ [WARNING]
147
+ [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
148
+ [WARNING]
149
+ [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
150
+ [WARNING]
151
+ [INFO]
80
152
  [INFO] ------------------------------------------------------------------------
81
- [INFO] Building TDB
82
- [INFO] task-segment: [dependency:copy-dependencies]
153
+ [INFO] Building Apache Jena - TDB (Native Triple Store) 1.1.0
83
154
  [INFO] ------------------------------------------------------------------------
84
- [INFO] [dependency:copy-dependencies {execution: default-cli}]
85
- [INFO] Copying icu4j-3.4.4.jar to /home/ian/workspace/apache-jena-tdb/target/dependency/icu4j-3.4.4.jar
86
- .. more maven output ..
155
+ [INFO]
156
+ [INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default-cli) @ jena-tdb ---
157
+ [INFO] Copying jena-iri-1.1.0.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jena-iri-1.1.0.jar
158
+ [INFO] Copying slf4j-api-1.7.6.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/slf4j-api-1.7.6.jar
159
+ [INFO] Copying log4j-1.2.17.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/log4j-1.2.17.jar
160
+ [INFO] Copying junit-4.11.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/junit-4.11.jar
161
+ [INFO] Copying xercesImpl-2.11.0.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/xercesImpl-2.11.0.jar
162
+ [INFO] Copying xml-apis-1.4.01.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/xml-apis-1.4.01.jar
163
+ [INFO] Copying jena-arq-2.12.0.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jena-arq-2.12.0.jar
164
+ [INFO] Copying jsonld-java-0.5.0.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jsonld-java-0.5.0.jar
165
+ [INFO] Copying jena-core-2.12.0-tests.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jena-core-2.12.0-tests.jar
166
+ [INFO] Copying slf4j-log4j12-1.7.6.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/slf4j-log4j12-1.7.6.jar
167
+ [INFO] Copying httpcore-4.2.5.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/httpcore-4.2.5.jar
168
+ [INFO] Copying jcl-over-slf4j-1.7.6.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jcl-over-slf4j-1.7.6.jar
169
+ [INFO] Copying jackson-core-2.3.3.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jackson-core-2.3.3.jar
170
+ [INFO] Copying hamcrest-core-1.3.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/hamcrest-core-1.3.jar
171
+ [INFO] Copying httpclient-4.2.6.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/httpclient-4.2.6.jar
172
+ [INFO] Copying jena-core-2.12.0.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jena-core-2.12.0.jar
173
+ [INFO] Copying jackson-databind-2.3.3.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jackson-databind-2.3.3.jar
174
+ [INFO] Copying jackson-annotations-2.3.0.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jackson-annotations-2.3.0.jar
175
+ [INFO] Copying jena-arq-2.12.0-tests.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/jena-arq-2.12.0-tests.jar
176
+ [INFO] Copying commons-codec-1.6.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/commons-codec-1.6.jar
177
+ [INFO] Copying httpclient-cache-4.2.6.jar to /home/ian/workspace/jena-jruby/temp/jena-tdb/target/dependency/httpclient-cache-4.2.6.jar
87
178
  [INFO] ------------------------------------------------------------------------
88
- [INFO] BUILD SUCCESSFUL
179
+ [INFO] BUILD SUCCESS
89
180
  [INFO] ------------------------------------------------------------------------
90
- [INFO] Total time: 2 seconds
91
- [INFO] Finished at: Thu Jan 05 00:18:12 GMT 2012
92
- [INFO] Final Memory: 35M/349M
181
+ [INFO] Total time: 2.306s
182
+ [INFO] Finished at: Thu Sep 11 23:43:20 BST 2014
183
+ [INFO] Final Memory: 14M/216M
93
184
  [INFO] ------------------------------------------------------------------------
94
- ~/workspace/jena-jruby
95
- Changing directory back to /home/ian/workspace/jena-jruby
96
- Copying deps to ./javalib
97
- Creating log4j config
98
-
99
- ian@rowan-15 $ rake build
100
- rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
101
- jena-jruby 0.3.0 built to pkg/jena-jruby-0.3.0-java.gem
185
+ Changing directory back
186
+
187
+ You can then generate a list of the downloaded `jar`s for inclusion in the project; this list is pre-loaded in `lib/jena_jruby/jars.rb`:
188
+
189
+ ian@ian-desktop $ bin/list-dependencies
190
+ ~/workspace/jena-jruby/temp/jena-tdb ~/workspace/jena-jruby
191
+ log4j-config.jar
192
+ log4j-1.2.17.jar
193
+ slf4j-log4j12-1.7.6.jar
194
+ slf4j-api-1.7.6.jar
195
+ xml-apis-1.4.01.jar
196
+ xercesImpl-2.11.0.jar
197
+ jena-iri-1.1.0.jar
198
+ jena-core-2.12.0.jar
199
+ jcl-over-slf4j-1.7.6.jar
200
+ httpclient-cache-4.2.6.jar
201
+ jackson-annotations-2.3.0.jar
202
+ jackson-databind-2.3.3.jar
203
+ jackson-core-2.3.3.jar
204
+ jsonld-java-0.5.0.jar
205
+ commons-codec-1.6.jar
206
+ httpcore-4.2.5.jar
207
+ httpclient-4.2.6.jar
208
+ jena-arq-2.12.0.jar
209
+ jena-tdb-1.1.0.jar
210
+
211
+ To build the gem itself:
212
+
213
+ ian@ian-desktop $ rake build
214
+ jena-jruby 0.6.0 built to pkg/jena-jruby-0.6.0-java.gem.
215
+
216
+ To run the tests:
217
+
218
+ ian@ian-desktop $ bundle exec rake test
219
+ Run options: --seed 45483
220
+
221
+ # Running:
222
+
223
+ ................
224
+
225
+ Finished in 0.351000s, 45.5840 runs/s, 142.4501 assertions/s.
226
+
227
+ 16 runs, 50 assertions, 0 failures, 0 errors, 0 skips
@@ -0,0 +1,19 @@
1
+ #!/bin/bash
2
+
3
+ pushd ./temp/jena-tdb
4
+
5
+ echo 'log4j-config.jar' > dependencies
6
+
7
+ mvn dependency:tree | \
8
+ tail --lines=+16 | \
9
+ head --lines=-7 | \
10
+ grep -v ':test' | \
11
+ grep -v 'jena-tdb' | \
12
+ sed -e 's/^[^:]*://' -e 's/:compile//' -e 's/:jar:/-/' -e 's/$/.jar/' | \
13
+ tac \
14
+ >> dependencies
15
+
16
+ /bin/ls target/jena-tdb*.jar | grep -v 'test\|sources\|javadoc' | sed -e 's/target\///' >> dependencies
17
+
18
+ cat dependencies
19
+ popd
@@ -3,30 +3,39 @@
3
3
  # maven in the context of TDB
4
4
  # Execute in root directory of jena_jruby
5
5
 
6
- # Default TDB location
7
- # Can be overridden by exporting JENA_TDB_ROOT
8
- tdb_root=${JENA_TDB_ROOT:-~/workspace/jena/jena-tdb}
6
+ # Default Jena SVN location
7
+ # Can be overridden by exporting JENA_SVN_ROOT
8
+ svn_root=${JENA_SVN_ROOT:-'http://svn.apache.org/repos/asf/jena/'}
9
9
 
10
- echo "Changing to TDB directory $tdb_root"
11
- pushd $tdb_root
10
+ tdb_version=`cat lib/jena_jruby/version.rb | grep TDB | tr -cd '[0-9.]'`
11
+
12
+ echo "Changing to temp directory "
13
+ mkdir -p temp
14
+ rm -rf temp/*
15
+ pushd temp
16
+
17
+ echo "Fetching TDB version $tdb_version"
18
+ svn co "${svn_root}tags/jena-${tdb_version}/jena-tdb/"
12
19
 
13
20
  echo "Cleaning old versions and recompiling ..."
21
+ cd jena-tdb
14
22
  mvn -DskipTests=true clean install
15
23
 
16
24
  echo "Collecting dependencies ..."
17
25
  mvn dependency:copy-dependencies
18
26
 
27
+ echo "Changing directory back"
19
28
  popd
20
- echo "Changing directory back to `pwd`"
29
+
21
30
  echo "Copying deps to ./javalib"
22
31
  mkdir -p javalib
23
32
  rm -f javalib/*.jar
24
- cp $tdb_root/target/dependency/*.jar javalib
25
- cp $tdb_root/target/jena-tdb-*SNAPSHOT.jar $tdb_root/target/tdb-*{0,1,2,3,4,5,6,7,8,9}.jar javalib 2>/dev/null
33
+ cp temp/jena-tdb/target/jena-tdb*.jar javalib
34
+ cp temp/jena-tdb/target/dependency/*.jar javalib
35
+ cp temp/jena-tdb/target/jena-tdb-*SNAPSHOT.jar tmp/jena-tdb/target/tdb-*{0,1,2,3,4,5,6,7,8,9}.jar javalib 2>/dev/null
26
36
  rm -f javalib/*test*.jar
27
37
 
28
38
  echo "Creating log4j config"
29
39
  jar -cf javalib/log4j-config.jar log4j.xml
30
40
 
31
41
 
32
-
@@ -76,7 +76,6 @@ module Jena
76
76
  java_import com.hp.hpl.jena.shared.LockNone
77
77
  java_import com.hp.hpl.jena.shared.PrefixMapping
78
78
  java_import com.hp.hpl.jena.shared.RandomOrderGraph
79
- java_import com.hp.hpl.jena.shared.ReificationStyle
80
79
  java_import com.hp.hpl.jena.shared.uuid.JenaUUID
81
80
  java_import com.hp.hpl.jena.shared.uuid.UUIDFactory
82
81
  end
@@ -3,19 +3,24 @@
3
3
 
4
4
  %w[
5
5
  log4j-config.jar
6
- commons-codec-1.6.jar
7
- httpclient-4.2.3.jar
8
- httpcore-4.2.2.jar
9
- jcl-over-slf4j-1.6.4.jar
10
- log4j-1.2.16.jar
11
- slf4j-api-1.6.4.jar
12
- slf4j-log4j12-1.6.4.jar
13
- xercesImpl-2.11.0.jar
6
+ log4j-1.2.17.jar
7
+ slf4j-log4j12-1.7.6.jar
8
+ slf4j-api-1.7.6.jar
14
9
  xml-apis-1.4.01.jar
15
- jena-core-2.10.1.jar
16
- jena-iri-0.9.6.jar
17
- jena-arq-2.10.1.jar
18
- jena-tdb-0.10.1.jar
10
+ xercesImpl-2.11.0.jar
11
+ jena-iri-1.1.0.jar
12
+ jena-core-2.12.0.jar
13
+ jcl-over-slf4j-1.7.6.jar
14
+ httpclient-cache-4.2.6.jar
15
+ jackson-annotations-2.3.0.jar
16
+ jackson-databind-2.3.3.jar
17
+ jackson-core-2.3.3.jar
18
+ jsonld-java-0.5.0.jar
19
+ commons-codec-1.6.jar
20
+ httpcore-4.2.5.jar
21
+ httpclient-4.2.6.jar
22
+ jena-arq-2.12.0.jar
23
+ jena-tdb-1.1.0.jar
19
24
  ].each do |jar|
20
25
  require jar
21
26
  end
@@ -1,5 +1,5 @@
1
1
  module Jena
2
- JENA_VERSION='2.10.1'
3
- TDB_VERSION='2.10.1'
4
- JENA_JRUBY_GEM_VERSION='0.5.0'
2
+ JENA_VERSION='2.12.0'
3
+ TDB_VERSION='2.12.0'
4
+ JENA_JRUBY_GEM_VERSION='0.6.0'
5
5
  end
@@ -1,10 +1,10 @@
1
1
  $LOAD_PATH.push "#{File.dirname(__FILE__)}/../lib"
2
2
  $LOAD_PATH.push "#{File.dirname(__FILE__)}/../javalib"
3
- require "rubygems"
4
- require "test/unit"
3
+
4
+ require "minitest/autorun"
5
5
  require "jena_jruby"
6
6
 
7
- class NodeUtilsTest < Test::Unit::TestCase
7
+ class NodeUtilsTest < Minitest::Test
8
8
 
9
9
  def setup
10
10
  @m = Jena::Core::ModelFactory.createDefaultModel
@@ -23,7 +23,7 @@ class NodeUtilsTest < Test::Unit::TestCase
23
23
  end
24
24
 
25
25
  def test_literal_types
26
- lit = @m.createTypedLiteral( 10 )
26
+ lit = create_typed_literal( 10 )
27
27
  types = lit.types
28
28
  assert_equal "http://www.w3.org/2001/XMLSchema#long", types.first.getURI
29
29
  assert_equal 1, types.length
@@ -69,4 +69,12 @@ class NodeUtilsTest < Test::Unit::TestCase
69
69
  assert_equal [@r1], r.property_values( Jena::Vocab::RDF.type.getURI, @m )
70
70
  assert_equal [@r1], r.property_values( "rdf:type", @m )
71
71
  end
72
- end
72
+
73
+ :private
74
+
75
+ def create_typed_literal( v )
76
+ method = @m.java_method( :createTypedLiteral, [java.lang.Object] )
77
+ method.call( v )
78
+ end
79
+
80
+ end
@@ -1,10 +1,10 @@
1
1
  $LOAD_PATH.push "#{File.dirname(__FILE__)}/../lib"
2
2
  $LOAD_PATH.push "#{File.dirname(__FILE__)}/../javalib"
3
- require "rubygems"
4
- require "test/unit"
3
+
4
+ require "minitest/autorun"
5
5
  require "jena_jruby"
6
6
 
7
- class QueryUtilsTest < Test::Unit::TestCase
7
+ class QueryUtilsTest < Minitest::Test
8
8
 
9
9
  def setup
10
10
  @m = Jena::Core::ModelFactory.createDefaultModel
@@ -108,9 +108,18 @@ class QueryUtilsTest < Test::Unit::TestCase
108
108
  def test_sparql_format
109
109
  assert_equal "<http://foo.bar>", Jena::Query.sparql_format( @m.create_resource( "http://foo.bar" ))
110
110
  assert_equal '"foo"', Jena::Query.sparql_format( @m.create_literal( "foo" ))
111
- assert_equal '"42"^^<http://www.w3.org/2001/XMLSchema#long>', Jena::Query.sparql_format( @m.create_typed_literal( 42 ))
111
+
112
+ tl = create_typed_literal( 42 )
113
+ assert_equal '"42"^^<http://www.w3.org/2001/XMLSchema#long>', Jena::Query.sparql_format( tl )
114
+
112
115
  assert_equal "foo:bar", Jena::Query.sparql_format( "foo:bar" )
113
116
  assert_equal "<http://foo.bar>", Jena::Query.sparql_format( "http://foo.bar" )
114
117
  assert Jena::Query.sparql_format( @m.create_resource ).match( /_:([[:alnum:]]*)/ )
115
118
  end
116
- end
119
+
120
+ def create_typed_literal( v )
121
+ method = @m.java_method( :createTypedLiteral, [java.lang.Object] )
122
+ method.call( v )
123
+ end
124
+
125
+ end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jena-jruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 0.6.0
6
5
  platform: java
7
6
  authors:
8
7
  - Ian Dickinson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-01 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: haml
@@ -18,13 +17,11 @@ dependencies:
18
17
  - - '>='
19
18
  - !ruby/object:Gem::Version
20
19
  version: '0'
21
- none: false
22
20
  requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - '>='
25
23
  - !ruby/object:Gem::Version
26
24
  version: '0'
27
- none: false
28
25
  prerelease: false
29
26
  type: :runtime
30
27
  - !ruby/object:Gem::Dependency
@@ -34,13 +31,11 @@ dependencies:
34
31
  - - '>='
35
32
  - !ruby/object:Gem::Version
36
33
  version: '0'
37
- none: false
38
34
  requirement: !ruby/object:Gem::Requirement
39
35
  requirements:
40
36
  - - '>='
41
37
  - !ruby/object:Gem::Version
42
38
  version: '0'
43
- none: false
44
39
  prerelease: false
45
40
  type: :runtime
46
41
  description: A simple packaging of Apache Jena for JRuby
@@ -57,6 +52,7 @@ files:
57
52
  - LICENSE
58
53
  - README.md
59
54
  - Rakefile
55
+ - bin/list-dependencies
60
56
  - bin/update_jars_maven
61
57
  - bin/update_jena
62
58
  - jena-jruby.gemspec
@@ -70,22 +66,32 @@ files:
70
66
  - log4j.xml
71
67
  - test/node_utils_test.rb
72
68
  - test/query_utils_test.rb
73
- - javalib/log4j-1.2.16.jar
74
- - javalib/log4j-config.jar
69
+ - javalib/slf4j-api-1.7.6.jar
70
+ - javalib/httpcore-4.2.5.jar
71
+ - javalib/httpclient-4.2.6.jar
72
+ - javalib/junit-4.11.jar
73
+ - javalib/jena-tdb-1.1.0.jar
74
+ - javalib/slf4j-log4j12-1.7.6.jar
75
+ - javalib/jackson-core-2.3.3.jar
76
+ - javalib/httpclient-cache-4.2.6.jar
77
+ - javalib/jackson-annotations-2.3.0.jar
78
+ - javalib/jena-arq-2.12.0.jar
79
+ - javalib/jackson-databind-2.3.3.jar
80
+ - javalib/log4j-1.2.17.jar
81
+ - javalib/hamcrest-core-1.3.jar
82
+ - javalib/jena-tdb-1.1.0-sources.jar
83
+ - javalib/jsonld-java-0.5.0.jar
84
+ - javalib/jcl-over-slf4j-1.7.6.jar
85
+ - javalib/jena-tdb-1.1.0-javadoc.jar
86
+ - javalib/jena-core-2.12.0.jar
87
+ - javalib/xml-apis-1.4.01.jar
75
88
  - javalib/xercesImpl-2.11.0.jar
76
- - javalib/jena-core-2.10.1.jar
77
- - javalib/httpcore-4.2.2.jar
78
- - javalib/jena-tdb-0.10.1.jar
79
- - javalib/jcl-over-slf4j-1.6.4.jar
80
89
  - javalib/commons-codec-1.6.jar
81
- - javalib/httpclient-4.2.3.jar
82
- - javalib/xml-apis-1.4.01.jar
83
- - javalib/slf4j-api-1.6.4.jar
84
- - javalib/jena-iri-0.9.6.jar
85
- - javalib/slf4j-log4j12-1.6.4.jar
86
- - javalib/jena-arq-2.10.1.jar
90
+ - javalib/log4j-config.jar
91
+ - javalib/jena-iri-1.1.0.jar
87
92
  homepage: https://github.com/ephemerian/jena-jruby
88
93
  licenses: []
94
+ metadata: {}
89
95
  post_install_message:
90
96
  rdoc_options: []
91
97
  require_paths:
@@ -96,17 +102,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
102
  - - '>='
97
103
  - !ruby/object:Gem::Version
98
104
  version: '0'
99
- none: false
100
105
  required_rubygems_version: !ruby/object:Gem::Requirement
101
106
  requirements:
102
107
  - - '>='
103
108
  - !ruby/object:Gem::Version
104
109
  version: '0'
105
- none: false
106
110
  requirements: []
107
111
  rubyforge_project:
108
- rubygems_version: 1.8.24
112
+ rubygems_version: 2.1.9
109
113
  signing_key:
110
- specification_version: 3
114
+ specification_version: 4
111
115
  summary: JRuby wrapper for Apache Jena
112
116
  test_files: []