clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r1548545 - in /clerezza/trunk: rdf.core/src/main/java/org/apache/clerezza/rdf/core/ rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/ rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/
Date Fri, 06 Dec 2013 14:51:34 GMT
Author: misl
Date: Fri Dec  6 14:51:33 2013
New Revision: 1548545

URL: http://svn.apache.org/r1548545
Log:
CLEREZZA-850: made HashMapSolutionMapping serializable

Modified:
    clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/Resource.java
    clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/Expression.java
    clerezza/trunk/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java

Modified: clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/Resource.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/Resource.java?rev=1548545&r1=1548544&r2=1548545&view=diff
==============================================================================
--- clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/Resource.java (original)
+++ clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/Resource.java Fri Dec
 6 14:51:33 2013
@@ -18,6 +18,8 @@
  */
 package org.apache.clerezza.rdf.core;
 
+import java.io.Serializable;
+
 /**
  * Some entity. It could be a web resource such as a web page, or it could 
  * be a concrete physical thing such as a tree or a car. It could be an 
@@ -25,6 +27,6 @@ package org.apache.clerezza.rdf.core;
  *
  * @author reto
  */
-public interface Resource {
+public interface Resource extends Serializable {
 
 }

Modified: clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/Expression.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/Expression.java?rev=1548545&r1=1548544&r2=1548545&view=diff
==============================================================================
--- clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/Expression.java
(original)
+++ clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/sparql/query/Expression.java
Fri Dec  6 14:51:33 2013
@@ -18,6 +18,8 @@
  */
 package org.apache.clerezza.rdf.core.sparql.query;
 
+import java.io.Serializable;
+
 /**
  * This interface models logical, relational, and numeric expression.
  * This includes terms and factors in mathematical formulas which can contain
@@ -36,5 +38,5 @@ package org.apache.clerezza.rdf.core.spa
  *
  * @author hasan
  */
-public interface Expression {
+public interface Expression extends Serializable {
 }

Modified: clerezza/trunk/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java?rev=1548545&r1=1548544&r2=1548545&view=diff
==============================================================================
--- clerezza/trunk/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
(original)
+++ clerezza/trunk/rdf.jena.sparql/src/main/java/org/apache/clerezza/rdf/jena/sparql/HashMapSolutionMapping.java
Fri Dec  6 14:51:33 2013
@@ -35,7 +35,8 @@ import org.apache.clerezza.rdf.jena.comm
  */
 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