commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [1/5] incubator-commonsrdf git commit: Ensure early Jena initialization for 3.1.1 compatibility
Date Tue, 15 Nov 2016 13:31:25 GMT
Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master d9b47b703 -> 87ac556b7


Ensure early Jena initialization for 3.1.1 compatibility


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/b8ccc618
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/b8ccc618
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/b8ccc618

Branch: refs/heads/master
Commit: b8ccc618e04535c38e278aa381d5494269221745
Parents: 1fe1b5a
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Tue Nov 8 09:52:12 2016 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Tue Nov 8 09:52:12 2016 +0000

----------------------------------------------------------------------
 .../apache/commons/rdf/jena/impl/InternalJenaFactory.java   | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/b8ccc618/jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java
b/jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java
index aa11572..e5eec42 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/impl/InternalJenaFactory.java
@@ -34,8 +34,8 @@ import org.apache.commons.rdf.jena.JenaGraph;
 import org.apache.commons.rdf.jena.JenaIRI;
 import org.apache.commons.rdf.jena.JenaLiteral;
 import org.apache.commons.rdf.jena.JenaQuad;
-import org.apache.commons.rdf.jena.JenaRDFTerm;
 import org.apache.commons.rdf.jena.JenaRDF;
+import org.apache.commons.rdf.jena.JenaRDFTerm;
 import org.apache.commons.rdf.jena.JenaTriple;
 import org.apache.jena.graph.Node;
 import org.apache.jena.graph.NodeFactory;
@@ -43,6 +43,7 @@ import org.apache.jena.rdf.model.Model;
 import org.apache.jena.sparql.core.DatasetGraph;
 import org.apache.jena.sparql.core.DatasetGraphFactory;
 import org.apache.jena.sparql.graph.GraphFactory;
+import org.apache.jena.system.JenaSystem;
 
 /**
  * Construct Jena implementations of Commons RDF.
@@ -58,6 +59,12 @@ import org.apache.jena.sparql.graph.GraphFactory;
  */
 public abstract class InternalJenaFactory {
 
+    static { 
+        // http://jena.apache.org/documentation/notes/system-initialization.html
+        JenaSystem.init();
+    }
+    
+    
     public JenaBlankNode createBlankNode(String id, UUID salt) {
         return new JenaBlankNodeImpl(NodeFactory.createBlankNode(id), salt);
     }


Mime
View raw message