jena-jruby 0.3.0-java → 0.4.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ downloads/
5
5
  pkg
6
6
  .buildpath
7
7
  rdoc
8
+ pkg
@@ -5,7 +5,7 @@
5
5
 
6
6
  # Default TDB location
7
7
  # Can be overridden by exporting JENA_TDB_ROOT
8
- tdb_root=${JENA_TDB_ROOT:-~/workspace/apache-jena-tdb}
8
+ tdb_root=${JENA_TDB_ROOT:-~/workspace/jena/jena-tdb}
9
9
 
10
10
  echo "Changing to TDB directory $tdb_root"
11
11
  pushd $tdb_root
@@ -25,8 +25,8 @@ cp $tdb_root/target/dependency/*.jar javalib
25
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
26
26
  rm -f javalib/*test*.jar
27
27
 
28
- echo "Creating log4j config"
29
- jar -cf javalib/log4j-config.jar log4j.xml
28
+ #echo "Creating log4j config"
29
+ #jar -cf javalib/log4j-config.jar log4j.xml
30
30
 
31
31
 
32
32
 
Binary file
@@ -1,19 +1,19 @@
1
- %w[
2
- commons-codec-1.5
3
- hamcrest-core-1.1
4
- httpclient-4.1.2
5
- httpcore-4.1.3
6
- icu4j-3.4.4
7
- jena-arq-2.9.0-incubating
8
- jena-core-2.7.0-incubating
9
- jena-iri-0.9.0-incubating
10
- jena-tdb-0.9.0-incubating-SNAPSHOT
11
- junit-4.9
12
- log4j-1.2.16
13
- slf4j-api-1.6.4
14
- slf4j-log4j12-1.6.4
15
- xercesImpl-2.10.0
16
- xml-apis-1.4.01
17
- log4j-config
18
- ].each {|jar| require jar}
1
+ # Note: important to get these in reverse dependency order
2
+ # Use mvn dependency:tree to show deps from the pom.xml
19
3
 
4
+ %w[
5
+ log4j-1.2.16.jar
6
+ slf4j-api-1.6.4.jar
7
+ slf4j-log4j12-1.6.4.jar
8
+ commons-codec-1.5.jar
9
+ httpclient-4.1.2.jar
10
+ httpcore-4.1.3.jar
11
+ jena-iri-0.9.1-SNAPSHOT.jar
12
+ xercesImpl-2.10.0.jar
13
+ xml-apis-1.4.01.jar
14
+ jena-core-2.7.1-SNAPSHOT.jar
15
+ jena-arq-2.9.1-SNAPSHOT.jar
16
+ jena-tdb-0.9.1-SNAPSHOT.jar
17
+ ].each do |jar|
18
+ require jar
19
+ end
@@ -39,9 +39,6 @@ end
39
39
  module Java
40
40
  module ComHpHplJenaEnhanced
41
41
  class EnhNode
42
- alias resource? isResource
43
- alias literal? isLiteral
44
-
45
42
  def types
46
43
  Jena::Node.types self
47
44
  end
@@ -50,6 +47,11 @@ module Java
50
47
 
51
48
  module ComHpHplJenaRdfModelImpl
52
49
  class ResourceImpl
50
+ # Return the resource types
51
+ def types
52
+ Jena::Node.types self
53
+ end
54
+
53
55
  # Yield to the given block for each statement of this resource with predicate
54
56
  # `property`. If `property` is nil, yield to the block for every statement whose
55
57
  # subject is this resource.
@@ -1,5 +1,5 @@
1
1
  module Jena
2
- JENA_VERSION='2.6.5-SNAPSHOT'
3
- TDB_VERSION='0.8.11-SNAPSHOT'
4
- JENA_JRUBY_GEM_VERSION='0.3.0'
2
+ JENA_VERSION='2.7.1-SNAPSHOT'
3
+ TDB_VERSION='0.9.1-SNAPSHOT'
4
+ JENA_JRUBY_GEM_VERSION='0.4.0'
5
5
  end
data/lib/jena_jruby.rb CHANGED
@@ -86,25 +86,7 @@ module Jena
86
86
  end
87
87
 
88
88
  module Vocab
89
- java_import com.hp.hpl.jena.vocabulary.DB
90
- java_import com.hp.hpl.jena.vocabulary.DC_10
91
- java_import com.hp.hpl.jena.vocabulary.DC_11
92
- java_import com.hp.hpl.jena.vocabulary.DC
93
- java_import com.hp.hpl.jena.vocabulary.DCTerms
94
- java_import com.hp.hpl.jena.vocabulary.DCTypes
95
- java_import com.hp.hpl.jena.vocabulary.LocationMappingVocab
96
- java_import com.hp.hpl.jena.vocabulary.OntDocManagerVocab
97
- java_import com.hp.hpl.jena.vocabulary.OntEventsVocab
98
- java_import com.hp.hpl.jena.vocabulary.OWL2
99
- java_import com.hp.hpl.jena.vocabulary.OWL
100
- java_import com.hp.hpl.jena.vocabulary.RDF
101
- java_import com.hp.hpl.jena.vocabulary.RDFS
102
- java_import com.hp.hpl.jena.vocabulary.RDFSyntax
103
- java_import com.hp.hpl.jena.vocabulary.ReasonerVocabulary
104
- java_import com.hp.hpl.jena.vocabulary.ResultSet
105
- java_import com.hp.hpl.jena.vocabulary.RSS
106
- java_import com.hp.hpl.jena.vocabulary.VCARD
107
- java_import com.hp.hpl.jena.vocabulary.XSD
89
+ include_package "com.hp.hpl.jena.vocabulary"
108
90
  end
109
91
 
110
92
  module Query
@@ -1,4 +1,5 @@
1
1
  $LOAD_PATH.push "#{File.dirname(__FILE__)}/../lib"
2
+ $LOAD_PATH.push "#{File.dirname(__FILE__)}/../javalib"
2
3
  require "rubygems"
3
4
  require "test/unit"
4
5
  require "jena_jruby"
@@ -1,4 +1,5 @@
1
1
  $LOAD_PATH.push "#{File.dirname(__FILE__)}/../lib"
2
+ $LOAD_PATH.push "#{File.dirname(__FILE__)}/../javalib"
2
3
  require "rubygems"
3
4
  require "test/unit"
4
5
  require "jena_jruby"
metadata CHANGED
@@ -1,112 +1,114 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jena-jruby
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.4.0
6
6
  platform: java
7
- authors:
8
- - Ian Dickinson
9
- autorequire:
7
+ authors:
8
+ - Ian Dickinson
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-01-05 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: haml
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: builder
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
35
- type: :runtime
36
- version_requirements: *id002
12
+ date: 2012-06-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: haml
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ none: false
22
+ requirement: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ none: false
28
+ prerelease: false
29
+ type: :runtime
30
+ - !ruby/object:Gem::Dependency
31
+ name: builder
32
+ version_requirements: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ none: false
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ none: false
44
+ prerelease: false
45
+ type: :runtime
37
46
  description: A simple packaging of Apache Jena for JRuby
38
- email:
39
- - ian@epimorphics.com
47
+ email:
48
+ - ian@epimorphics.com
40
49
  executables: []
41
-
42
50
  extensions: []
43
-
44
- extra_rdoc_files:
45
- - README.md
46
- files:
47
- - .gitignore
48
- - Gemfile
49
- - Gemfile.lock
50
- - LICENSE
51
- - README.md
52
- - Rakefile
53
- - bin/update_jars_maven
54
- - bin/update_jena
55
- - jena-jruby.gemspec
56
- - lib/jena_jruby.rb
57
- - lib/jena_jruby/jars.rb
58
- - lib/jena_jruby/namespace.rb
59
- - lib/jena_jruby/node_utils.rb
60
- - lib/jena_jruby/query_utils.rb
61
- - lib/jena_jruby/utils.rb
62
- - lib/jena_jruby/version.rb
63
- - log4j.xml
64
- - test/node_utils_test.rb
65
- - test/query_utils_test.rb
66
- - javalib/commons-codec-1.5.jar
67
- - javalib/jena-iri-0.9.0-incubating.jar
68
- - javalib/jena-tdb-0.9.0-incubating-SNAPSHOT.jar
69
- - javalib/jena-core-2.7.0-incubating.jar
70
- - javalib/httpclient-4.1.2.jar
71
- - javalib/xercesImpl-2.10.0.jar
72
- - javalib/slf4j-api-1.6.4.jar
73
- - javalib/junit-4.9.jar
74
- - javalib/slf4j-log4j12-1.6.4.jar
75
- - javalib/icu4j-3.4.4.jar
76
- - javalib/xml-apis-1.4.01.jar
77
- - javalib/log4j-1.2.16.jar
78
- - javalib/hamcrest-core-1.1.jar
79
- - javalib/log4j-config.jar
80
- - javalib/httpcore-4.1.3.jar
81
- - javalib/jena-arq-2.9.0-incubating.jar
82
- homepage: ""
51
+ extra_rdoc_files:
52
+ - README.md
53
+ files:
54
+ - .gitignore
55
+ - Gemfile
56
+ - Gemfile.lock
57
+ - LICENSE
58
+ - README.md
59
+ - Rakefile
60
+ - bin/update_jars_maven
61
+ - bin/update_jena
62
+ - jena-jruby.gemspec
63
+ - lib/jena_jruby.rb
64
+ - lib/jena_jruby/jars.rb
65
+ - lib/jena_jruby/namespace.rb
66
+ - lib/jena_jruby/node_utils.rb
67
+ - lib/jena_jruby/query_utils.rb
68
+ - lib/jena_jruby/utils.rb
69
+ - lib/jena_jruby/version.rb
70
+ - log4j.xml
71
+ - test/node_utils_test.rb
72
+ - test/query_utils_test.rb
73
+ - javalib/httpclient-4.1.2.jar
74
+ - javalib/hamcrest-core-1.1.jar
75
+ - javalib/jena-tdb-0.9.1-SNAPSHOT.jar
76
+ - javalib/jena-core-2.7.1-SNAPSHOT.jar
77
+ - javalib/xml-apis-1.4.01.jar
78
+ - javalib/xercesImpl-2.10.0.jar
79
+ - javalib/slf4j-api-1.6.4.jar
80
+ - javalib/httpcore-4.1.3.jar
81
+ - javalib/log4j-1.2.16.jar
82
+ - javalib/jena-arq-2.9.1-SNAPSHOT.jar
83
+ - javalib/jena-iri-0.9.1-SNAPSHOT.jar
84
+ - javalib/junit-4.9.jar
85
+ - javalib/commons-codec-1.5.jar
86
+ - javalib/slf4j-log4j12-1.6.4.jar
87
+ homepage: ''
83
88
  licenses: []
84
-
85
- post_install_message:
89
+ post_install_message:
86
90
  rdoc_options: []
87
-
88
- require_paths:
89
- - lib
90
- - javalib
91
- required_ruby_version: !ruby/object:Gem::Requirement
91
+ require_paths:
92
+ - lib
93
+ - javalib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
92
99
  none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: "0"
97
- required_rubygems_version: !ruby/object:Gem::Requirement
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
98
105
  none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: "0"
103
106
  requirements: []
104
-
105
- rubyforge_project:
106
- rubygems_version: 1.8.13
107
- signing_key:
107
+ rubyforge_project:
108
+ rubygems_version: 1.8.24
109
+ signing_key:
108
110
  specification_version: 3
109
111
  summary: JRuby wrapper for Apache Jena
110
112
  test_files: []
111
-
112
- has_rdoc:
113
+ has_rdoc:
114
+ ...
Binary file
Binary file
Binary file