s/var/val/ #to indicate statics
authorEric Prud'hommeaux <bertails@w3.org>
Sun, 13 Dec 2009 19:15:37 -0500
changeset 25 6b68be2d0de6
parent 24 042a9ad7eee4
child 26 a125541a8c30
s/var/val/ #to indicate statics
src/main/scala/RDB2RDFMain.scala
--- a/src/main/scala/RDB2RDFMain.scala	Sun Dec 13 19:10:59 2009 -0500
+++ b/src/main/scala/RDB2RDFMain.scala	Sun Dec 13 19:15:37 2009 -0500
@@ -92,9 +92,9 @@
   }
 
   def URIconstraint(u:ObjUri, pk:PrimaryKey) = {
-    var alias = AliasFromNode(u)
+    val alias = AliasFromNode(u)
     val ObjUri(stem, rel, attr, value) = u
-    var fqattr = FQAttribute(alias, pk.attr)
+    val fqattr = FQAttribute(alias, pk.attr)
     println("equiv|=" + fqattr + "=" + value)
   }
 
@@ -123,18 +123,18 @@
     val TriplePattern(s, p, o) = triple
     p match {
       case PUri(stem, spRel, spAttr) => {
-	var rel = Relation(Name(spRel.s))
-	var attr = Attribute(Name(spAttr.s))
-	var alias = AliasFromS(s)
+	val rel = Relation(Name(spRel.s))
+	val attr = Attribute(Name(spAttr.s))
+	val alias = AliasFromS(s)
 	println(rel.n.s + " AS " + alias.n.s)
 	s match {
 	  case SUri(u) => URIconstraint(u, pk)
 	  case SVar(v) => VarConstraint(v, FQAttribute(alias, pk.attr))
 	  null
 	}
-	var objattr = FQAttribute(alias, attr)
-	var oAlias = AliasFromO(o) // None if OLit
-	var target = getKeyTarget(FQAttribute(rel, attr))
+	val objattr = FQAttribute(alias, attr)
+	val oAlias = AliasFromO(o) // None if OLit
+	val target = getKeyTarget(FQAttribute(rel, attr))
 	target match {
 	  case None => null
 	  case Some(fqattr) => {