Skip to content

Commit

Permalink
section: {single,multiple}-targets: comply with JSONPath RDF9535 draft
Browse files Browse the repository at this point in the history
Fixes #70
  • Loading branch information
DylanVanAssche committed Jun 20, 2024
1 parent 225991e commit 16b0780
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
52 changes: 26 additions & 26 deletions spec/section/multiple-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ to the three specified Targets:
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -202,8 +202,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -305,8 +305,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -408,8 +408,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -507,8 +507,8 @@ predicate `foaf:nickname` are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -611,8 +611,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -717,8 +717,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -819,8 +819,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -925,8 +925,8 @@ as there is no dedicated Target assigned to triples containing
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -1037,8 +1037,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -1139,8 +1139,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -1238,8 +1238,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down Expand Up @@ -1337,8 +1337,8 @@ are exported to `TargetDump2`.
<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:referenceFormulation rml:JSONPath;
rml:iterator "$.[*]";
rml:referenceFormulation rml:XPath;
rml:iterator "//Supergirl/Character/";
];
rml:subjectMap [ a rml:SubjectMap;
rml:template "http://example.org/{@id}";
Expand Down
20 changes: 10 additions & 10 deletions spec/section/single-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ to an RDF dump with N-Quads as serialization format and GZip compression:
rml:constant foaf:name;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "name";
rml:reference "$.name";
];
];
rml:predicateObjectMap [ a rml:PredicateObjectMap;
rml:predicateMap [ a rml:PredicateMap;
rml:constant foaf:age;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "age";
rml:reference "$.age";
];
];
.
Expand Down Expand Up @@ -167,15 +167,15 @@ with Turtle as serialization format and Zip compression:
rml:logicalTarget <#TargetDump1>;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "name";
rml:reference "$.name";
];
];
rml:predicateObjectMap [ a rml:PredicateObjectMap;
rml:predicateMap [ a rml:PredicateMap;
rml:constant foaf:age;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "age";
rml:reference "$.age";
];
];
.
Expand Down Expand Up @@ -285,7 +285,7 @@ with N-Triples as serialization format:
rml:constant foaf:name;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "name";
rml:reference "$.name";
rml:logicalTarget <#TargetDump1>;
];
];
Expand All @@ -294,7 +294,7 @@ with N-Triples as serialization format:
rml:constant foaf:age;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "age";
rml:reference "$.age";
];
];
.
Expand Down Expand Up @@ -404,15 +404,15 @@ to an RDF dump with N-Quads as serialization format:
rml:constant foaf:name;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "name";
rml:reference "$.name";
];
];
rml:predicateObjectMap [ a rml:PredicateObjectMap;
rml:predicateMap [ a rml:PredicateMap;
rml:constant foaf:age;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "age";
rml:reference "$.age";
];
];
.
Expand Down Expand Up @@ -503,7 +503,7 @@ to a RDF dump with N-Triples as serialization format:
rml:constant foaf:name;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "name";
rml:reference "$.name";
rml:languageMap [
rml:logicalTarget <#TargetDump1>;
rml:constant "en";
Expand All @@ -515,7 +515,7 @@ to a RDF dump with N-Triples as serialization format:
rml:constant foaf:age;
];
rml:objectMap [ a rml:ObjectMap;
rml:reference "age";
rml:reference "$.age";
];
];
.
Expand Down

0 comments on commit 16b0780

Please sign in to comment.