Closed jatoledo closed 3 years ago
@prefix ex: <http://example.com/>.
@prefix rr: <http://www.w3.org/ns/r2rml#>.
@prefix rml: <http://semweb.mmlab.be/ns/rml#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
<#person_0> a rr:TriplesMap;
rml:LogicalSource [
a rml:logicalSource;
rml:source "data.json";
rml:referenceFormulation ql:JSONpath;
rml:iterator"$.persons[*]";
];
rr:subjectMap [
a rr:SubjectMap;
rr:template "http://example.com/{firstname}";
];
rr:predicateObjectMap [
rr:predicateMap [
a rr:PredicateMap;
rr:constant rdf:type;
];
rr:objectMap [
a rr:ObjectMap;
rr:constant foaf:Person;
];
];
rr:predicateObjectMap [
rr:predicateMap [
a rr:PredicateMap;
rr:constant ex:name;
];
rr:objectMap [
a rr:ObjectMap;
rml:reference "firstname";
];
].
Does not support JSON format as a source
Output: