~ s/algebraic/isomoprhic/
authorAlexandre Bertails <bertails@w3.org>
Fri, 07 Jan 2011 12:48:27 -0500
changeset 296 c6dee8b49941
parent 295 cc2acb48fe99
child 297 489486b97905
~ s/algebraic/isomoprhic/
algebraicpattern/src/main/scala/AlgebraicPattern.scala
isomorphic/src/main/scala/Isomorphic.scala
project/build/RDB2RDF.scala
--- a/algebraicpattern/src/main/scala/AlgebraicPattern.scala	Wed Dec 29 19:04:43 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-package org.w3.algebraic
-
-trait PatternMatching0[R] {
-  def unapply(r:R):Boolean
-}
-
-trait Algebraic0[R] extends Function0[R] with PatternMatching0[R]
-
-trait PatternMatching1[T,R] {
-  def unapply(r:R):Option[T]
-}
-
-trait Algebraic1[T,R] extends Function1[T,R] with PatternMatching1[T,R]
-
-trait PatternMatching2[T1,T2,R] {
-  def unapply(r:R):Option[(T1, T2)]
-}
-
-/**
- * basically, you have to implement both following functions
- *   def apply(t1:T1, t2:T2):R
- *   def unapply(r:R):Option[(T1, T2)]
- */
-trait Algebraic2[T1,T2,R] extends Function2[T1, T2, R] with PatternMatching2[T1,T2,R]
-
-trait PatternMatching3[T1,T2,T3,R] {
-  def unapply(r:R):Option[(T1, T2, T3)]
-}
-
-trait Algebraic3[T1,T2,T3,R] extends Function3[T1, T2, T3, R] with PatternMatching3[T1,T2,T3,R]
-
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/isomorphic/src/main/scala/Isomorphic.scala	Fri Jan 07 12:48:27 2011 -0500
@@ -0,0 +1,32 @@
+package org.w3.isomorphic
+
+trait PatternMatching0[R] {
+  def unapply(r:R):Boolean
+}
+
+trait Isomorphic0[R] extends Function0[R] with PatternMatching0[R]
+
+trait PatternMatching1[T,R] {
+  def unapply(r:R):Option[T]
+}
+
+trait Isomorphic1[T,R] extends Function1[T,R] with PatternMatching1[T,R]
+
+trait PatternMatching2[T1,T2,R] {
+  def unapply(r:R):Option[(T1, T2)]
+}
+
+/**
+ * basically, you have to implement both following functions
+ *   def apply(t1:T1, t2:T2):R
+ *   def unapply(r:R):Option[(T1, T2)]
+ */
+trait Isomorphic2[T1,T2,R] extends Function2[T1, T2, R] with PatternMatching2[T1,T2,R]
+
+trait PatternMatching3[T1,T2,T3,R] {
+  def unapply(r:R):Option[(T1, T2, T3)]
+}
+
+trait Isomorphic3[T1,T2,T3,R] extends Function3[T1, T2, T3, R] with PatternMatching3[T1,T2,T3,R]
+
+
--- a/project/build/RDB2RDF.scala	Wed Dec 29 19:04:43 2010 -0500
+++ b/project/build/RDB2RDF.scala	Fri Jan 07 12:48:27 2011 -0500
@@ -12,10 +12,10 @@
 
   val feDeRatePath = Path.fromFile(".")
 
-  lazy val algebraicpattern = project("algebraicpattern", "algebraicpattern", new AlgebraicPattern(_))
+  lazy val isomorphic = project("isomorphic", "isomorphic", new Isomorphic(_))
   lazy val rdb = project("rdb", "rdb", new RDB(_))
   lazy val sql = project("sql", "sql", new SQL(_), rdb)
-  lazy val rdf = project("rdf", "rdf", new RDF(_), algebraicpattern)
+  lazy val rdf = project("rdf", "rdf", new RDF(_), isomorphic)
   lazy val rdfdsl = project("rdfdsl", "rdfdsl", new RDFDSL(_), rdf)
   lazy val turtle = project("turtle", "turtle", new Turtle(_), rdf)
   lazy val rdfxml = project("rdfxml", "rdfxml", new RDFXML(_), rdf)
@@ -28,7 +28,7 @@
   lazy val sparql2sqlendpoint = project("sparql2sqlendpoint", "sparql2sqlendpoint", new SPARQL2SQLEndPoint(_), sparql2sql)
   lazy val sparql2sqlendpointJar = project("sparql2sqlendpointjar", "sparql2sqlendpointjar", new SPARQL2SQLEndPointJar(_), sparql2sqlendpoint)
 
-  class AlgebraicPattern(info: ProjectInfo) extends DefaultProject(info) with Common
+  class Isomorphic(info: ProjectInfo) extends DefaultProject(info) with Common
 
   class RDB(info: ProjectInfo) extends DefaultProject(info) with Common