diff --git a/mappings/mapping3.xrm b/mappings/mapping3.xrm index fdc4ef3..5f0bca0 100644 --- a/mappings/mapping3.xrm +++ b/mappings/mapping3.xrm @@ -3,9 +3,10 @@ output carml template workIri "http://zrh.ch/akn/{0}/{1}/{2}/{3}" map example3 from Example3Xml { - // subject from legalResourceIri as IRI; - // u nid so - subject template workIri with jurisdiction doctype docdate docnumber; + subject from legalResourceIri; + + // u nid so ... + // subject template workIri with jurisdiction doctype docdate docnumber; types eli.LegalResource diff --git a/src-gen/mapping3.carml.ttl b/src-gen/mapping3.carml.ttl index af63f46..2935cae 100644 --- a/src-gen/mapping3.carml.ttl +++ b/src-gen/mapping3.carml.ttl @@ -23,7 +23,7 @@ PREFIX xsd: ]; rr:subjectMap [ - rr:template "http://zrh.ch/akn/{tokenize(akn:FRBRuri/@value, '/')[3]}/{tokenize(akn:FRBRuri/@value, '/')[4]}/{tokenize(akn:FRBRuri/@value, '/')[5]}/{tokenize(akn:FRBRuri/@value, '/')[6]}"; + rml:reference "concat('http://zrh.ch', akn:FRBRuri/@value)"; rr:class eli:LegalResource ];