# Namespaces in templates for SMS2

**URL:** <https://community.stardog.com/t/namespaces-in-templates-for-sms2/3292>\
**Category:** Feature Request\
**Created:** [October 1, 2021, 10:01am UTC](https://community.stardog.com/t/namespaces-in-templates-for-sms2/3292 "2021-10-01T10:01:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgueret](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/cgueret/32/1152_2.png) [@cgueret](https://community.stardog.com/u/cgueret)\
**Post date:** [October 1, 2021, 10:01am UTC](https://community.stardog.com/t/namespaces-in-templates-for-sms2/3292/1 "2021-10-01T10:01:38Z")

</div>

Maybe I was not doing it right but it seems we can't use the prefix in templates. I'm currently doing

```auto
BIND(template("http://linkedlifedata.com/resource/umls/id/{CUI}") AS ?umls_uri)

```

where I would rather do

```auto
BIND(template("umls:{CUI}") AS ?umls_uri)

```

and define the prefix for UMLS in the database list of prefixes

Is that possible already with maybe a different syntax? If not I think that would be a great feature 😉

On a related note, I also noticed that doing

```auto
BIND(template("CUI_URI") AS ?umls_uri)

```

to just cast a full URI present in the data source as is into a IRI for the mappings doesn't work at intended :-/ (even if the setting to percent encode the IRI is off) Stardog automatically adds an extra http:// prefix to the existing one. To go around that I had to remove http using the SQL query to let Stardog add it back... (but I then only kept the CUI in the source data to get to the above code 😉 )

---

<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 5, 2021, 10:48pm UTC](https://community.stardog.com/t/namespaces-in-templates-for-sms2/3292/2 "2021-10-05T22:48:36Z")

</div>

Hi Christophe,

We're aware of the convenience factor here and plan to implement this soon. The internal issue key is PLAT-3056. Please keep an eye out for in the upcoming release notes. If you have a support contract, your CSM can help to prioritize this request.

Best,  
Jess
