Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining template with language-tag or datatype #152

Open
mchlrch opened this issue Apr 4, 2024 · 0 comments
Open

Combining template with language-tag or datatype #152

mchlrch opened this issue Apr 4, 2024 · 0 comments

Comments

@mchlrch
Copy link
Member

mchlrch commented Apr 4, 2024

Current version (1.5.0) does not support combining template with language-tag or datatype.

Sample for using template __ with __ as Literal with language-tag __ ;

// foo = hallo, bar = welt
template "{0} {1}!" with foo bar as Literal with language-tag de ;  // => "hallo welt!"@de

(r2ml)=>
rr:predicateObjectMap [
  rr:predicate schema:givenName;
  rr:objectMap [
    rr:template "{foo} {bar}!";
    rr:termType rr:Literal;
    rr:language "de"
  ]
].

Sample for using template __ with __ as Literal with datatype __ ;

// foo = Q1424987
template "https://www.wikidata.org/wiki/{0}" with foo as Literal with datatype xsd.anyURI ;  // => "https://www.wikidata.org/wiki/Q1424987"^^xsd:anyURI

(r2ml)=>
rr:predicateObjectMap [
  rr:predicate schema:givenName;
  rr:objectMap [
    rr:template "https://www.wikidata.org/wiki/{foo}";
    rr:termType rr:Literal;
    rr:datatype xsd:anyURI
  ]
].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant