Skip to content

Commit

Permalink
example3: subject from __ (reLex-jolux-4-zh)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchlrch committed Apr 17, 2024
1 parent 24a778c commit 725482b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions mappings/mapping3.xrm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src-gen/mapping3.carml.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
];

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
];

Expand Down

0 comments on commit 725482b

Please sign in to comment.