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#>
//@base <http://example.com/base/> .

Prefix spy: <http://aksw.org/sparqlify/>

Create View TriplesMap1 As
  Construct {
    ?s
      a foaf:Person ;
      ex:id ?id ;
      foaf:name ?n
  }
  With
    ?s = uri(concat("http://example.com/", ?ID))
    ?id = typedLiteral(?ID, xsd:integer)
    
    // TODO Automatically add the rightPad expression on char datatype
    // on effective view generation step
    ?n = plainLiteral(spy:rightPad(?Name, 15))
  From
    Student
