Prefix rr: <http://www.w3.org/ns/r2rml#>
Prefix dept: <http://example.com/dept#>
Prefix xsd: <http://www.w3.org/2001/XMLSchema#>
//@base <http://example.com/base/> .

Create View TriplesMap1 As
  Construct {
    ?s
      dept:location ?o
  }
  With
    ?s = bNode(?deptId)
    ?o = plainLiteral(?loc)
  From
    [[
       SELECT ('Department' || "deptno") AS "deptId"
            , "deptno"
            , "dname"
            , "loc"
       FROM "DEPT"
    ]]
// TODO Inverse Expression support
/*
    rr:subjectMap [ rr:column "\"deptId\""; rr:termType rr:BlankNode;
                    rr:inverseExpression "{\"deptno\"} = substr({\"deptId\"},length('Department')+1)"];
*/
