Skip to content

Commit

Permalink
Update mapping-language.md
Browse files Browse the repository at this point in the history
more xrm object map samples
  • Loading branch information
mchlrch authored Apr 4, 2024
1 parent c674835 commit 7cfda3b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions documentation/mapping-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,26 @@ from foo with datatype xsd.anyURI ; // => "https://www.wikidata.org/wiki/Q14249
// foo = http://www.wikidata.org/entity/Q31465098
from foo as IRI ; // => <http://www.wikidata.org/entity/Q31465098>
// foo = http://www.wikidata.org/entity/Q31465098
template "https://data.example.org/?x={0}" with foo ; // => <https://data.example.org/?x=http%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ31465098>
// foo = http://www.wikidata.org/entity/Q31465098
template "The URL is {0}" with foo as Literal ; // => "The URL is http://www.wikidata.org/entity/Q31465098"^^xsd:string
// foo = http://www.wikidata.org/entity/Q31465098
template "{0}" with foo as BlankNode ; // => _:b2_httpwwwwikidataorgentityQ31465098
// --------------------------------------------
// foo = a/b c:d
from foo ; // => "a/b c:d"^^xsd:string
// foo = a/b c:d
from foo as BlankNode ; // => _:b2_abcd
// foo = a/b c:d
template "https://data.example.org/?x={0}" with foo ; // => <https://data.example.org/?x=a%2Fb%20c%3Ad>
```


Expand Down

0 comments on commit 7cfda3b

Please sign in to comment.