# SMS2 lang and datatype mappings

**URL:** https://community.stardog.com/t/sms2-lang-and-datatype-mappings/1948
**Category:** Support
**Created:** [September 28, 2019, 3:02pm UTC](https://community.stardog.com/t/sms2-lang-and-datatype-mappings/1948 "2019-09-28T15:02:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)
#### Post date: [September 28, 2019, 3:02pm UTC](https://community.stardog.com/t/sms2-lang-and-datatype-mappings/1948/1 "2019-09-28T15:02:29Z")

</div>

Is there any way to apply language tags or datatypes to SMS2 mappings? Is there maybe another argument to a template that I can use? I've tried STRDT nad STRLANG in various places with no luck and various incantations of templated strings.

I know the docs say that the only functions supported are template and datatype casts but I was wondering there might be some multi-arg template function or something.

If not do I need to drop back to SMS or maybe ever R2RML?

---

<div class="post-metadata">

### Author: ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)
#### Post date: [October 1, 2019, 11:03pm UTC](https://community.stardog.com/t/sms2-lang-and-datatype-mappings/1948/2 "2019-10-01T23:03:16Z")

</div>

In SMS2, you can cast to an XSD type using the standard cast function in the BIND, eg `bind(xsd:integer(?field) as ?fieldInteger)`. We haven't yet added support for `strdt` and `strlang` in SMS2.

Jess

---

<div class="post-metadata">

### Author: ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)
#### Post date: [October 15, 2019, 11:03pm UTC](https://community.stardog.com/t/sms2-lang-and-datatype-mappings/1948/3 "2019-10-15T23:03:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
