Primary interlinking
<#PerformancesMapping>
rr:subjectMap [
rr:template “http://ex.com/{Perf_ID}”];
rr:predicateObjectMap [
rr:predicate ex:venue;
rr:objectMap [
rr:parentTriplesMap <#VenueMapping> ] ].
<#VenueMapping>
rml:logicalSource [
rml:source "http://ex.com/performances.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$.Performance.Venue.[*]" ];
rr:subjectMap [
rr:template "http://ex.com/{Venue_ID}";
rr:class ex:Venue ].
<#EventsMapping>
rr:subjectMap [
rr:template "http://ex.com/{@id}" ];
rr:predicateObjectMap [
rr:predicate ex:venue;
rr:objectMap [
rr:parentTriplesMap <#VenueMapping>;
rr:joinCondition [
rr:child "$.Performance.Venue.Name";
rr:parent "/Events/Exhibition/Venue" ]
] ] .
Without interlinking while mapping:
ex:567 ex:venue ex:78.
ex:398 ex:venue ex:STAM.
ex:78 owl:sameAs ex:STAM
Interlinking while mapping:
ex:567 ex:venue ex:78.
ex:398 ex:venue ex:78.