clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject [1/2] git commit: CLEREZZA-850: Made Resouce implementations Serializable
Date Thu, 22 May 2014 11:35:57 GMT
Repository: clerezza
Updated Branches:
  refs/heads/master 5dad3a9bc -> 9e492d156


CLEREZZA-850: Made Resouce implementations Serializable


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

Branch: refs/heads/master
Commit: ea0fc170f6329a93fad434e91045c30c8c891763
Parents: 5dad3a9
Author: Minto van der Sluis <misl@apache.org>
Authored: Thu May 22 13:34:37 2014 +0200
Committer: Minto van der Sluis <misl@apache.org>
Committed: Thu May 22 13:34:37 2014 +0200

----------------------------------------------------------------------
 rdf.core/src/main/java/org/apache/clerezza/rdf/core/UriRef.java  | 4 +++-
 .../java/org/apache/clerezza/rdf/core/impl/PlainLiteralImpl.java | 4 +++-
 .../java/org/apache/clerezza/rdf/core/impl/TypedLiteralImpl.java | 4 +++-
 .../apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java  | 2 +-
 4 files changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea0fc170/rdf.core/src/main/java/org/apache/clerezza/rdf/core/UriRef.java
----------------------------------------------------------------------
diff --git a/rdf.core/src/main/java/org/apache/clerezza/rdf/core/UriRef.java b/rdf.core/src/main/java/org/apache/clerezza/rdf/core/UriRef.java
index d6a2b5d..e856115 100644
--- a/rdf.core/src/main/java/org/apache/clerezza/rdf/core/UriRef.java
+++ b/rdf.core/src/main/java/org/apache/clerezza/rdf/core/UriRef.java
@@ -18,6 +18,8 @@
  */
 package org.apache.clerezza.rdf.core;
 
+import java.io.Serializable;
+
 /**
  * Represents an RDF URI Reference
  * 
@@ -29,7 +31,7 @@ package org.apache.clerezza.rdf.core;
  * 
  * @author reto
  */
-public class UriRef implements NonLiteral {
+public class UriRef implements NonLiteral, Serializable {
 
     private String unicodeString;
 

http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea0fc170/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/PlainLiteralImpl.java
----------------------------------------------------------------------
diff --git a/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/PlainLiteralImpl.java
b/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/PlainLiteralImpl.java
index d4b0a19..ad76770 100644
--- a/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/PlainLiteralImpl.java
+++ b/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/PlainLiteralImpl.java
@@ -18,6 +18,8 @@
  */
 package org.apache.clerezza.rdf.core.impl;
 
+import java.io.Serializable;
+
 import org.apache.clerezza.rdf.core.Language;
 import org.apache.clerezza.rdf.core.PlainLiteral;
 
@@ -25,7 +27,7 @@ import org.apache.clerezza.rdf.core.PlainLiteral;
  *
  * @author reto
  */
-public class PlainLiteralImpl implements PlainLiteral {
+public class PlainLiteralImpl implements PlainLiteral, Serializable {
 
     private String lexicalForm;
     private Language language = null;

http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea0fc170/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/TypedLiteralImpl.java
----------------------------------------------------------------------
diff --git a/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/TypedLiteralImpl.java
b/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/TypedLiteralImpl.java
index c6d9d79..0fb511f 100644
--- a/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/TypedLiteralImpl.java
+++ b/rdf.core/src/main/java/org/apache/clerezza/rdf/core/impl/TypedLiteralImpl.java
@@ -18,6 +18,8 @@
  */
 package org.apache.clerezza.rdf.core.impl;
 
+import java.io.Serializable;
+
 import org.apache.clerezza.rdf.core.TypedLiteral;
 import org.apache.clerezza.rdf.core.UriRef;
 
@@ -25,7 +27,7 @@ import org.apache.clerezza.rdf.core.UriRef;
  *
  * @author reto
  */
-public class TypedLiteralImpl implements TypedLiteral {
+public class TypedLiteralImpl implements TypedLiteral, Serializable {
     private String lexicalForm;
     private UriRef dataType;
     private int hashCode;

http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea0fc170/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
----------------------------------------------------------------------
diff --git a/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
b/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
index 1c9d11b..f4ec8df 100644
--- a/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
+++ b/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
@@ -35,7 +35,7 @@ import org.apache.clerezza.rdf.jena.commons.Jena2TriaUtil;
  */
 class HashMapSolutionMapping extends HashMap<Variable, Resource> implements SolutionMapping
{
 
-    Jena2TriaUtil convertor = new Jena2TriaUtil(new HashMap<Node,BNode>());
+    transient Jena2TriaUtil convertor = new Jena2TriaUtil(new HashMap<Node,BNode>());
     public HashMapSolutionMapping(QuerySolution querySolution) {
         final Iterator<String> varNames = querySolution.varNames();
         while (varNames.hasNext()) {


Mime
View raw message