Skip to content

Commit

Permalink
example1: graphs constant __
Browse files Browse the repository at this point in the history
  • Loading branch information
mchlrch committed Apr 17, 2024
1 parent 725482b commit 293035c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions mappings/mapping1.xrm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ output carml // choose from carml, rml, r2rml, csvw etc
map example1 from Example1Json {
subject template someIri with foo;

graphs
constant "http://example.org/graph1" ;

properties
rdfs.comment template "{0} {1}!" with foo bar as Literal ;

Expand Down
2 changes: 1 addition & 1 deletion mappings/mapping2.xrm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ map example2 from Example2Json {

properties

// TODO: xrm#123
// TODO: https://github.com/zazuko/xrm/issues/152

rdfs.comment template "{0} {1}!" with foo bar as Literal ;
// template "{0} {1}!" with foo bar as Literal with language-tag en ;
Expand Down
5 changes: 4 additions & 1 deletion src-gen/mapping1.carml.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
];

rr:subjectMap [
rr:template "http://data.example.org/some/{foo}"
rr:template "http://data.example.org/some/{foo}";
rr:graphMap [
rr:constant <http://example.org/graph1>
]
];

rr:predicateObjectMap [
Expand Down

0 comments on commit 293035c

Please sign in to comment.