Prefix rr: <http://www.w3.org/ns/r2rml#>
Prefix foaf: <http://xmlns.com/foaf/0.1/>
Prefix ex: <http://example.com/>
Prefix xsd: <http://www.w3.org/2001/XMLSchema#>
Prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Prefix base: <http://example.com/base/>

Prefix ious: <http://example.com/base/IOUs#>

Create View TriplesMap1 As
  Construct {
    ?s
      rdf:type base:IOUs ;
      ious:fname ?fn ;
      ious:lname ?ln ;
      ious:amount ?a
  }
  With
    ?s = bNode(concat(?fname, "_", ?lname, "_", ?amount))
    ?fn = plainLiteral(?fname)
    ?ln = plainLiteral(?lname)
    ?a = typedLiteral(?amount, xsd:double)
  From
    IOUs
	
	
Create View TriplesMap2 As
  Construct {
    ?s
      rdf:type base:Lives ;
      ious:fname ?fn ;
      ious:lname ?ln ;
      ious:city ?c
  }
  With
    ?s = bNode(concat(?fname, "_", ?lname, "_", ?city))
    ?fn = plainLiteral(?fname)
    ?ln = plainLiteral(?lname)
    ?c = plainLiteral(?city) 
  From
    Lives
