UNPKG

@rmlio/yarrrml-parser

Version:

Parse YARRRML descriptions into RML RDF statements

48 lines (46 loc) 2.81 kB
@prefix rr: <http://www.w3.org/ns/r2rml#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix rml: <http://semweb.mmlab.be/ns/rml#>. <http://mapping.example.com/person0> rml:logicalSource <http://mapping.example.com/1>. <http://mapping.example.com/1> a rml:LogicalSource; rml:source "data/person.json"; rml:iterator "$"; rml:referenceFormulation <http://semweb.mmlab.be/ns/ql#JSONPath>. <http://mapping.example.com/person0> a rr:TriplesMap; rdfs:label "person". <http://mapping.example.com/2> a rr:SubjectMap. <http://mapping.example.com/person0> rr:subjectMap <http://mapping.example.com/2>. <http://mapping.example.com/2> rr:template "http://example.com/{ID}". <http://mapping.example.com/3> a rr:PredicateObjectMap. <http://mapping.example.com/person0> rr:predicateObjectMap <http://mapping.example.com/3>. <http://mapping.example.com/4> a rr:PredicateMap. <http://mapping.example.com/3> rr:predicateMap <http://mapping.example.com/4>. <http://mapping.example.com/4> rr:constant rdf:type. <http://mapping.example.com/3> rr:objectMap <http://mapping.example.com/5>. <http://mapping.example.com/5> a rr:ObjectMap; rr:constant "http://xmlns.com/foaf/0.1/Person"; rr:termType rr:IRI. <http://mapping.example.com/6> a rr:PredicateObjectMap. <http://mapping.example.com/person0> rr:predicateObjectMap <http://mapping.example.com/6>. <http://mapping.example.com/7> a rr:PredicateMap. <http://mapping.example.com/6> rr:predicateMap <http://mapping.example.com/7>. <http://mapping.example.com/7> rr:constant <http://example.com#7value>. <http://mapping.example.com/6> rr:objectMap <http://mapping.example.com/8>. <http://mapping.example.com/8> a <http://semweb.mmlab.be/ns/fnml#FunctionTermMap>; rr:termType rr:Literal; <http://semweb.mmlab.be/ns/fnml#functionValue> <http://mapping.example.com/9>. <http://mapping.example.com/9> rml:logicalSource <http://mapping.example.com/1>; rr:predicateObjectMap <http://mapping.example.com/10>. <http://mapping.example.com/10> rr:predicateMap <http://mapping.example.com/11>. <http://mapping.example.com/11> rr:constant <https://w3id.org/function/ontology#executes>. <http://mapping.example.com/10> rr:objectMap <http://mapping.example.com/12>. <http://mapping.example.com/12> rr:constant "http://example.com#7MyFunction". <http://mapping.example.com/9> rr:predicateObjectMap <http://mapping.example.com/13>. <http://mapping.example.com/13> a rr:PredicateObjectMap; rr:predicateMap <http://mapping.example.com/14>. <http://mapping.example.com/14> a rr:PredicateMap; rr:template "http://example.com#7input". <http://mapping.example.com/13> rr:objectMap <http://mapping.example.com/15>. <http://mapping.example.com/15> a rr:ObjectMap; rr:template "{firstname}".