UNPKG

@rmlio/yarrrml-parser

Version:

Parse YARRRML descriptions into RML RDF statements

72 lines (57 loc) 2.19 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 fnml: <http://semweb.mmlab.be/ns/fnml#> . @prefix fno: <https://w3id.org/function/ontology#> . @prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> . @prefix void: <http://rdfs.org/ns/void#> . @prefix dc: <http://purl.org/dc/terms/> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix rml: <http://semweb.mmlab.be/ns/rml#> . @prefix ql: <http://semweb.mmlab.be/ns/ql#> . @prefix : <http://mapping.example.com/> . @prefix td: <https://www.w3.org/2019/wot/td#> . @prefix wotsec: <https://www.w3.org/2019/wot/security#> . @prefix hctl: <https://www.w3.org/2019/wot/hypermedia#> . @prefix idsa: <https://w3id.org/idsa/core/> . :source_000 rdf:type rml:LogicalSource ; rdfs:label "people-source" ; rml:source :propertyAffordance_000 ; rml:iterator "/" ; rml:referenceFormulation ql:XPath . :wot_000 rdf:type td:Thing ; td:hasPropertyAffordance :propertyAffordance_000 ; td:hasSecurityConfiguration :security_000 . :propertyAffordance_000 rdf:type td:PropertyAffordance ; td:hasForm :form_000 . :form_000 rdf:type td:Form ; hctl:hasTarget "http://example.org/file.xml" ; hctl:forContentType "application/xml" ; hctl:hasOperationType td:readproperty . :security_000 rdf:type td:APISecurityScheme ; wotsec:in "header" ; wotsec:name "apikey" ; idsa:tokenValue "123456789" . :map_person_000 rml:logicalSource :source_000 ; rdf:type rr:TriplesMap ; rdfs:label "person" ; rr:subjectMap :s_000 ; rr:predicateObjectMap :pom_000, :pom_001 . :s_000 rdf:type rr:SubjectMap ; rr:template "http://example.org/{id}" . :pom_000 rdf:type rr:PredicateObjectMap ; rr:predicateMap :pm_000 ; rr:objectMap :om_000 . :pm_000 rdf:type rr:PredicateMap ; rr:constant foaf:name . :om_000 rdf:type rr:ObjectMap ; rml:reference "name" ; rr:termType rr:Literal . :pom_001 rdf:type rr:PredicateObjectMap ; rr:predicateMap :pm_001 ; rr:objectMap :om_001 . :pm_001 rdf:type rr:PredicateMap ; rr:constant foaf:age . :om_001 rdf:type rr:ObjectMap ; rml:reference "age" ; rr:termType rr:Literal .