--- a/src/test/scala/Test.scala Fri Apr 02 04:40:48 2010 -0400
+++ b/src/test/scala/Test.scala Fri Apr 02 19:47:48 2010 -0400
@@ -9,7 +9,7 @@
"city" -> (NotLinked(), SQLString()),
"state" -> (NotLinked(), SQLString())),
Set(Map("ID" -> Left("18"),
- "city" -> Left("Camrbidge"),
+ "city" -> Left("Cambridge"),
"state" -> Left("MA"))))
val people = Relation("People",
@@ -22,18 +22,18 @@
Map("ID" -> Left("8"),
"fname" -> Left("Sue"),
"addr" -> Right(☹()))))
- val u = "http://foo.example/DB"
- val expected =
+ val u:StemURI = "http://foo.example/DB"
+ val expected:RDFGraph =
Set(
- RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#ID>",LiteralObject("\"7\"^^<http://www.w3.org/2001/XMLSchema#int>")),
- RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#fname>",LiteralObject("\"Bob\"^^<http://www.w3.org/2001/XMLSchema#string>")),
+ RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#ID>",LiteralObject(""""7"^^<http://www.w3.org/2001/XMLSchema#int>""")),
+ RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#fname>",LiteralObject(""""Bob"^^<http://www.w3.org/2001/XMLSchema#string>""")),
RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#addr>",IRIObject("<http://foo.example/DB/Addresses/ID.18#foo>")),
- RDFTriple("<http://foo.example/DB/People/ID.8#foo>","<http://foo.example/DB/People#ID>",LiteralObject("\"8\"^^<http://www.w3.org/2001/XMLSchema#int>")),
+ RDFTriple("<http://foo.example/DB/People/ID.8#foo>","<http://foo.example/DB/People#ID>",LiteralObject(""""8"^^<http://www.w3.org/2001/XMLSchema#int>""")),
RDFTriple("<http://foo.example/DB/People/ID.8#foo>","<http://foo.example/DB/People#fname>",LiteralObject("\"Sue\"^^<http://www.w3.org/2001/XMLSchema#string>")),
- RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#ID>",LiteralObject("\"18\"^^<http://www.w3.org/2001/XMLSchema#int>")),
- RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#city>",LiteralObject("\"Camrbidge\"^^<http://www.w3.org/2001/XMLSchema#string>")),
- RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#state>",LiteralObject("\"MA\"^^<http://www.w3.org/2001/XMLSchema#string>")))
+ RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#ID>",LiteralObject(""""18"^^<http://www.w3.org/2001/XMLSchema#int>""")),
+ RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#city>",LiteralObject(""""Cambridge"^^<http://www.w3.org/2001/XMLSchema#string>""")),
+ RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#state>",LiteralObject(""""MA"^^<http://www.w3.org/2001/XMLSchema#string>""")))
assert (expected == relationmap(u, people) ++ relationmap(u, addresses))
}