Skip to content

Instantly share code, notes, and snippets.

@ktk
Created February 22, 2015 21:18
Show Gist options
  • Save ktk/1df91a3d8e281ac9575d to your computer and use it in GitHub Desktop.
Save ktk/1df91a3d8e281ac9575d to your computer and use it in GitHub Desktop.
@prefix rr: <http://www.w3.org/ns/r2rml#>.
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix oslo: <http://purl.org/oslo/ns/localgov#>.
@prefix adms: <http://www.w3.org/ns/adms#>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix adms: <http://www.w3.org/ns/adms#>.
@prefix locn: <http://www.w3.org/ns/locn#>.
@prefix schema: <http://schema.org/>.
@prefix eCH-0071: <http://www.ech.ch/xmlns/eCH-0071/1> .
@prefix bfs: <http://data.example.org/id/>.
<#Canton>
rml:logicalSource [
rml:source "ech_sample.xml";
rml:referenceFormulation ql:XPath;
rml:iterator "/eCH-0071:nomenclature/cantons/canton" ];
rr:subjectMap [
rr:template "http://data.example.org/id/canton/{cantonId}";
rr:class eCH-0071:Canton ;
];
rr:predicateObjectMap [
rr:predicate eCH-0071:cantonAbbreviation;
rr:objectMap [
rml:reference "/canton/cantonAbbreviation";
]
] .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment