# Array literal format

**URL:** https://community.stardog.com/t/array-literal-format/1737
**Category:** Support
**Created:** [June 13, 2019, 2:11pm UTC](https://community.stardog.com/t/array-literal-format/1737 "2019-06-13T14:11:20Z")
**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: [June 13, 2019, 2:11pm UTC](https://community.stardog.com/t/array-literal-format/1737/1 "2019-06-13T14:11:20Z")

</div>

I was curious what an array literal looks like. I'm guessing that it doesn't really matter since it's meant to be used with set and unnest. I was just curious. I had tried something similar out but using a property function. Does it have a datatype? If you have a language tag or datatype tag on the literal arguments to set do they carry through if you called unset?

---

<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: [June 13, 2019, 2:36pm UTC](https://community.stardog.com/t/array-literal-format/1737/2 "2019-06-13T14:36:55Z")

</div>

An array literal is a literal in the RDF sense. It has a datatype of `tag:stardog:api:array`. The lexical representation would look like an array of integers, eg. `[1,2,3]`. Each integer corresponds to an RDF value, either a resource or a literal. Literals have datatypes and nothing is lost in using an array.

---

<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: [June 27, 2019, 2:36pm UTC](https://community.stardog.com/t/array-literal-format/1737/3 "2019-06-27T14:36:58Z")

</div>

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