W3C home > Mailing lists > Public > semantic-web@w3.org > October 2010

SPARQL 1.1: functions?

From: Ivan Shmakov <ivan@main.uusia.org>
Date: Mon, 04 Oct 2010 22:39:14 +0700
To: semantic-web@w3.org
Message-ID: <874od20xy5.fsf_-_@violet.siamics.net>
>>>>> Steve Harris <steve.harris@garlik.com> writes:
>>>>> On 2010-10-01, at 18:28, Ivan Shmakov wrote:

[…]

 >> SELECT ( fn:concat(?G, " ", ?S) AS ?name )

[…]

 >> It makes me wonder, is there a way to introduce new values in the
 >> CONSTRUCTed graph?

 > Yes, You can use that projected value in your construct, using a sub
 > query:

 > CONSTRUCT { [] :name ?name }
 > WHERE {
 > { SELECT ( fn:concat(?G, " ", ?S) AS ?name ) ... }
 > }

	Thanks!  Somehow, I've missed subqueries altogether when
	scanning through the specification.

	(Unfortunately, Rasqal doesn't seem to fully implement SPARQL
	1.1 as of yet.)

	One more question: the SPARQL 1.1 specification frequently
	refers to XPath.  However, nowhere I see it stated in clear,
	which XPath functions are to be provided by a compliant SPARQL
	implementation.  Neither I see a requirement for such an
	implementation to provide all the functions.  Could this issue
	be clarified, please?

-- 
FSF associate member #7257

Received on Monday, 4 October 2010 15:39:56 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:45:20 UTC