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
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="fn_sample">
<refmeta>
<refentrytitle>SAMPLE</refentrytitle>
<refmiscinfo>rdf</refmiscinfo>
</refmeta>
<refnamediv>
<refname>SAMPLE</refname>
<refpurpose>returns an arbitrary value from the multiset passed to it.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis id="fsyn_sample">
<funcprototype id="fproto_sample">
<funcdef><function>SAMPLE</function></funcdef>
<paramdef>in <parameter>token</parameter> varchar</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="desc_sample">
<title>Description</title>
<para>SAMPLE is aggregate function that returns an arbitrary value from the multiset passed to it.</para>
<para>Note: Using the "sql:" prefix is mandatory for this aggregate.</para>
</refsect1>
<refsect1 id="params_sample">
<title>Parameters</title>
<refsect2><title>strg</title>
<para>An item from multiset.</para>
</refsect2>
</refsect1>
<refsect1 id="ret_sample"><title>Return Types</title>
<para>any</para>
</refsect1>
<refsect1 id="examples_sample">
<title>Examples</title>
<example id="ex_sample"><title></title>
<programlisting><![CDATA[
SQL>SPARQL
SELECT (sql:SAMPLE(?nick)), (sql:SAMPLE(?interest))
WHERE
{
?p a foaf:Person .
?p foaf:nick ?nick.
?p foaf:interest ?interest.
}
callret-0 callret-1
VARCHAR VARCHAR
________________________________________________
dr. Jones http://purl.org/rss/1.0/
No. of rows in result: 1
]]></programlisting>
</example>
</refsect1>
<refsect1 id="seealso_sample">
<title>See Also</title>
<para><link linkend="fn_GROUP_CONCAT"><function>GROUP_CONCAT</function></link></para>
</refsect1>
</refentry>
|