# Array functionality

**URL:** https://community.stardog.com/t/array-functionality/1353
**Category:** Support
**Created:** [October 24, 2018, 3:13am UTC](https://community.stardog.com/t/array-functionality/1353 "2018-10-24T03:13:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![potluri84](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/potluri84/32/326_2.png) [@potluri84](https://community.stardog.com/u/potluri84)
#### Post date: [October 24, 2018, 3:13am UTC](https://community.stardog.com/t/array-functionality/1353/1 "2018-10-24T03:13:50Z")

</div>

Is the Array functionality not available anymore?

SELECT \* {  
?person :date ?bdate .  
{ SELECT ?person (array(?child, ?date) AS ?children) {  
?person :hasChild ?child .  
?child :birthDate ?date  
}  
GROUP BY ?person  
}  
}

I get a query eval error.

---

<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 24, 2018, 3:52am UTC](https://community.stardog.com/t/array-functionality/1353/2 "2018-10-24T03:52:18Z")

</div>

The only thing I can think of is the `set()` function. However, `set()` is an internals-oriented function that returns an encoded form using internal ids. Maybe you can use something like `group_concat()`?

---

<div class="post-metadata">

### Author: ![rivettp](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rivettp](https://community.stardog.com/u/rivettp)
#### Post date: [October 24, 2018, 9:39am UTC](https://community.stardog.com/t/array-functionality/1353/3 "2018-10-24T09:39:24Z")

</div>

I think the question was about the array() functionality proposed here [Extending the Solution | Stardog](https://www.stardog.com/blog/extending-the-solution/) back in Feb 2017, which AFAIK was never released. Is it planned to be?

---

<div class="post-metadata">

### Author: ![pavel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pavel/32/18_2.png) [@pavel](https://community.stardog.com/u/pavel)
#### Post date: [October 24, 2018, 9:46am UTC](https://community.stardog.com/t/array-functionality/1353/4 "2018-10-24T09:46:37Z")

</div>

Yes, it is on the roadmap but without a specific target date. It's been originally proposed in the context of path queries however we've been able to release path queries without functions over paths. We're still collecting data on how people use path queries to prioritise future directions.

As Jess pointed out, the most closely related functionality that is available now is `group_concat`.

Cheers,  
Pavel

---

<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 24, 2018, 10:22am UTC](https://community.stardog.com/t/array-functionality/1353/5 "2018-10-24T10:22:21Z")

</div>

I included a couple if array functions in the strings plugin I released

[https://github.com/semantalytics-stardog/kibbles-string](https://github.com/semantalytics-stardog/kibbles-string)

The intent was to make it a little easier to deal with string arrays and avoid exploding the array if it wasn’t necessary. It just uses the ascii record separator so it’s only good for strings. It doesn’t do anything more than you could do with concat and group\_concat but would be hopefully cleaner.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [November 7, 2018, 10:22am UTC](https://community.stardog.com/t/array-functionality/1353/6 "2018-11-07T10:22:26Z")

</div>

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