activerdf_net7 1.6.14 → 1.6.15
Sign up to get free protection for your applications and to get access to all the features.
- data/activerdf-sesame/ext/{openrdf-sesame-2.3-pr1-onejar.jar → openrdf-sesame-2.3.0-onejar.jar} +0 -0
- data/activerdf-sesame/ext/wrapper-sesame2.jar +0 -0
- data/activerdf-sesame/java/build.number +2 -2
- data/activerdf-sesame/java/lib/{openrdf-sesame-2.3-pr1-onejar.jar → openrdf-sesame-2.3.0-onejar.jar} +0 -0
- data/activerdf-sesame/java/src/org/activerdf/wrapper/sesame2/WrapperForSesame2.java +2 -0
- data/activerdf-sesame/java/temp/build/org/activerdf/wrapper/sesame2/WrapperForSesame2.class +0 -0
- data/activerdf-sesame/java/temp/manifest/MANIFEST.MF +1 -1
- data/activerdf-sesame/lib/activerdf_sesame/sesame.rb +10 -1
- metadata +3 -3
data/activerdf-sesame/ext/{openrdf-sesame-2.3-pr1-onejar.jar → openrdf-sesame-2.3.0-onejar.jar}
RENAMED
Binary file
|
Binary file
|
@@ -1,3 +1,3 @@
|
|
1
1
|
#Build Number for ANT. Do not edit!
|
2
|
-
#Wed Dec 02
|
3
|
-
build.number=
|
2
|
+
#Wed Dec 02 17:17:16 CET 2009
|
3
|
+
build.number=137
|
data/activerdf-sesame/java/lib/{openrdf-sesame-2.3-pr1-onejar.jar → openrdf-sesame-2.3.0-onejar.jar}
RENAMED
Binary file
|
@@ -13,6 +13,7 @@ import org.openrdf.sail.nativerdf.NativeStore;
|
|
13
13
|
import org.openrdf.sail.rdbms.RdbmsStore;
|
14
14
|
import org.openrdf.repository.http.HTTPRepository;
|
15
15
|
import org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer;
|
16
|
+
import org.openrdf.sail.inferencer.fc.DirectTypeHierarchyInferencer;
|
16
17
|
import org.openrdf.repository.RepositoryConnection;
|
17
18
|
import org.openrdf.repository.RepositoryException;
|
18
19
|
import org.openrdf.model.Resource;
|
@@ -125,6 +126,7 @@ public class WrapperForSesame2 {
|
|
125
126
|
if (inferencing) {
|
126
127
|
if(sailStack instanceof NotifyingSail) {
|
127
128
|
sailStack = new ForwardChainingRDFSInferencer((NotifyingSail) sailStack);
|
129
|
+
sailStack = new DirectTypeHierarchyInferencer((NotifyingSail) sailStack);
|
128
130
|
} else {
|
129
131
|
throw new RuntimeException("Cannot create inferencing: Incompatible Sail type.");
|
130
132
|
}
|
Binary file
|
@@ -28,7 +28,7 @@ begin
|
|
28
28
|
NTriplesWriter = org.openrdf.rio.ntriples.NTriplesWriter
|
29
29
|
RDFFormat = org.openrdf.rio.RDFFormat
|
30
30
|
rescue Exception => e
|
31
|
-
puts
|
31
|
+
puts e.backtrace
|
32
32
|
raise
|
33
33
|
end
|
34
34
|
|
@@ -89,6 +89,9 @@ class SesameAdapter < ActiveRdfAdapter
|
|
89
89
|
raise(ArgumentError, "Unknown backend type for Sesame: #{backend}")
|
90
90
|
end
|
91
91
|
|
92
|
+
@backend = backend
|
93
|
+
@inferencing = (params[:inferencing] && (backend != 'http'))
|
94
|
+
|
92
95
|
@valueFactory = if(backend == 'http')
|
93
96
|
@db.getRepository.getValueFactory
|
94
97
|
else
|
@@ -97,6 +100,12 @@ class SesameAdapter < ActiveRdfAdapter
|
|
97
100
|
|
98
101
|
end
|
99
102
|
|
103
|
+
attr_reader :backend
|
104
|
+
|
105
|
+
def inferencing?
|
106
|
+
@inferencing
|
107
|
+
end
|
108
|
+
|
100
109
|
# returns the number of triples in the datastore (incl. possible duplicates)
|
101
110
|
# * context => context (optional)
|
102
111
|
def size(context = nil)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerdf_net7
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eyal Oren
|
@@ -123,7 +123,7 @@ files:
|
|
123
123
|
- activerdf-sesame/ext/commons-pool-1.3.jar
|
124
124
|
- activerdf-sesame/ext/commons-pool-1.5.2.jar
|
125
125
|
- activerdf-sesame/ext/junit-3.8.2.jar
|
126
|
-
- activerdf-sesame/ext/openrdf-sesame-2.3-
|
126
|
+
- activerdf-sesame/ext/openrdf-sesame-2.3.0-onejar.jar
|
127
127
|
- activerdf-sesame/ext/slf4j-api-1.4.3.jar
|
128
128
|
- activerdf-sesame/ext/slf4j-nop-1.4.3.jar
|
129
129
|
- activerdf-sesame/ext/wrapper-sesame2.jar
|
@@ -163,7 +163,7 @@ files:
|
|
163
163
|
- activerdf-sesame/java/lib/commons-pool-1.3.jar
|
164
164
|
- activerdf-sesame/java/lib/commons-pool-1.5.2.jar
|
165
165
|
- activerdf-sesame/java/lib/junit-3.8.2.jar
|
166
|
-
- activerdf-sesame/java/lib/openrdf-sesame-2.3-
|
166
|
+
- activerdf-sesame/java/lib/openrdf-sesame-2.3.0-onejar.jar
|
167
167
|
- activerdf-sesame/java/lib/slf4j-api-1.4.3.jar
|
168
168
|
- activerdf-sesame/java/lib/slf4j-nop-1.4.3.jar
|
169
169
|
- activerdf-sesame/java/manifest.mf
|