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


<TriplesMap2>
	a rr:TriplesMap;
	rr:logicalTable [ rr:tableName "\"Student\"" ];

	rr:subjectMap [ rr:template "http://example.com/{\"Sport\"}"; ];

	rr:predicateObjectMap [
		rr:predicate	rdf:type ;
		rr:object		activity:Sport ;
	];
.

<TriplesMap1>
     a rr:TriplesMap;

	rr:logicalTable [ rr:tableName "\"Student\"" ];

    rr:subjectMap [ rr:template "http://example.com/Student/{\"ID\"}/{\"Name\"}";
	];
	
    rr:predicateObjectMap
    [ 
		rr:predicate	rdf:type ;
		rr:object		foaf:Person ;
	];
		
    rr:predicateObjectMap
    [ 
		rr:predicate	ex:id ;
		rr:objectMap    [ rr:column "\"ID\"";  ]
    ];

    rr:predicateObjectMap
    [ 
      rr:predicate		foaf:name ;
      rr:objectMap		[ rr:column "\"Name\"" ]
    ];
 
    rr:predicateObjectMap
    [ 
      rr:predicate		ex:Sport ;
      rr:objectMap		<RefObjectMap1>
    ]
    
 .

 
<RefObjectMap1>
	a rr:RefObjectMap;
	rr:parentTriplesMap <TriplesMap2> ;
.


