11## Logical Target in RML {#logical-target-in-rml}
22
33RML is aligned with the Logical Target vocabulary
4- by extending ` rr :TermMap` with the ` rml:logicalTarget ` property
4+ by extending ` rml :TermMap` with the ` rml:logicalTarget ` property
55to describe on Term Map [[ RML]] level where each triple must be directed to.
66A Term Map is a function that generates an RDF term
77from a logical reference [[ RML]] .
@@ -31,7 +31,7 @@ are exported to the default target of the processor.
3131
3232| Property | Domain | Range |
3333| ------------------- | ------------ | -------------------- |
34- | ` rml:logicalTarget ` | ` rr :TermMap` | ` rml:LogicalTarget ` |
34+ | ` rml:logicalTarget ` | ` rml :TermMap` | ` rml:LogicalTarget ` |
3535
3636In the example below, a CSV file is transformed into a knowledge graph.
3737The CSV file is accessed using the [[ CSVW]] vocabulary,
@@ -66,29 +66,29 @@ id;name;nickname
6666<pre class =" ex-mapping " >
6767@base < ; http://example.com/ns#> ; .
6868
69- < ; #TriplesMap> ; a rr :TriplesMap;
69+ < ; #TriplesMap> ; a rml :TriplesMap;
7070 rml:logicalSource [ a rml:LogicalSource;
7171 rml:source < ; #CSVSourceAccess> ; ;
7272 ];
73- rr :subjectMap [ a rr :SubjectMap;
74- rr :template "http://example.com/{id}";
73+ rml :subjectMap [ a rml :SubjectMap;
74+ rml :template "http://example.com/{id}";
7575 rml:logicalTarget < ; #TargetDump1> ; ;
76- rr :class foaf:Person;
76+ rml :class foaf:Person;
7777 ];
78- rr :predicateObjectMap [ a rr :PredicateObjectMap;
79- rr :predicateMap [ a rr :PredicateMap;
80- rr :constant foaf:name;
78+ rml :predicateObjectMap [ a rml :PredicateObjectMap;
79+ rml :predicateMap [ a rml :PredicateMap;
80+ rml :constant foaf:name;
8181 rml:logicalTarget < ; #TargetDump2> ; ;
8282 ];
83- rr :objectMap [ a rr :ObjectMap;
83+ rml :objectMap [ a rml :ObjectMap;
8484 rml:reference "name";
8585 ];
8686 ];
87- rr :predicateObjectMap [ a rr :PredicateObjectMap;
88- rr :predicateMap [ a rr :PredicateMap;
89- rr :constant foaf:nickname;
87+ rml :predicateObjectMap [ a rml :PredicateObjectMap;
88+ rml :predicateMap [ a rml :PredicateMap;
89+ rml :constant foaf:nickname;
9090 ];
91- rr :objectMap [ a rr :ObjectMap;
91+ rml :objectMap [ a rml :ObjectMap;
9292 rml:reference "nickname";
9393 ];
9494 ];
@@ -104,7 +104,7 @@ id;name;nickname
104104< ; #TargetDump2> ; a rml:LogicalTarget;
105105 rml:target < ; #VoIDDump2> ; ;
106106 rml:serialization formats:Turtle;
107- rml:compression comp :zip;
107+ rml:compression rml :zip;
108108.
109109</pre >
110110
0 commit comments