1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="fn_GROUP_CONCAT">
<refmeta>
<refentrytitle>GROUP_CONCAT</refentrytitle>
<refmiscinfo>rdf</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GROUP_CONCAT</refname>
<refpurpose>returns an arbitrary value from the multiset passed to it.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis id="fsyn_GROUP_CONCAT">
<funcprototype id="fproto_GROUP_CONCAT">
<funcdef><function>GROUP_CONCAT</function></funcdef>
<paramdef>in <parameter>token</parameter> varchar</paramdef>
<paramdef>in <parameter>delim</parameter> varchar</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="desc_GROUP_CONCAT">
<title>Description</title>
<para>GROUP_CONCAT is aggregate function that performs a string concatenation across
the values of an expression with a group. The order of the strings is not specified.
The separator character used in the concatenation may be given with the scalar
argument delimiter.</para>
<para>Note: Using the "sql:" prefix is mandatory for this aggregate.</para>
</refsect1>
<refsect1 id="params_GROUP_CONCAT">
<title>Parameters</title>
<refsect2><title>token</title>
<para>An item that should be added to a delimited list.</para>
</refsect2>
<refsect2><title>delim</title>
<para>The delimeter character to be used in the concatenation.</para>
</refsect2>
</refsect1>
<refsect1 id="ret_GROUP_CONCAT"><title>Return Types</title>
<para>any</para>
</refsect1>
<refsect1 id="examples_GROUP_CONCAT">
<title>Examples</title>
<example id="ex_GROUP_CONCAT"><title></title>
<programlisting><![CDATA[
SQL>SPARQL
SELECT ?name, (sql:GROUP_CONCAT(?near, ' , '))
WHERE
{
GRAPH ?g
{
[] a foaf:Person ;
foaf:name ?name ;
foaf:based_near ?near
}
}
LIMIT 10
name callret-1
ANY ANY
________________________________________________
Jonas Smedegaard nodeID://b6190457 , nodeID://b6190507
Dimitar Dimitrov http://mitko.dnsalias.net:8005/dataspace/person/dav#based_near , http://ods-qa.openlinksw.com/dataspace/person/dav1#based_near , http://ods-qa.openlinksw.com/dataspace/person/dav2#based_near
Adam Harvey nodeID://b780751
John Breslin nodeID://b56694
John Breslin nodeID://b56694
Chris Bizer http://sws.geonames.org/2950159/ , http://dbpedia.org/resource/Berlin
Leo Sauermann nodeID://b53598
Andreas Harth http://dbpedia.org/resource/Karlsruhe , nodeID://b53559 , nodeID://b53569
Alexandre Passant http://dbpedia.org/resource/Galway
Leon Lord http://ods-qa.openlinksw.com/dataspace/person/t1#based_near
No. of rows in result: 10
]]></programlisting>
</example>
</refsect1>
<refsect1 id="seealso_GROUP_CONCAT">
<title>See Also</title>
<para><link linkend="fn_SAMPLE"><function>SAMPLE</function></link></para>
</refsect1>
</refentry>
|