All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xsparql.testcases-dawg-sparql-1.1.functions.coalesce01.xsparql Maven / Gradle / Ivy

The newest version!
prefix : 
prefix xsd: 

{for
	(coalesce($x, -1) as $cx)     # error when $x is unbound -> -1
	(coalesce($o/$x, -2) as $div) # error when $x is unbound or zero -> -2
	(coalesce($z, -3) as $def)    # always unbound -> -3
	(coalesce($z) as $err)        # always an error -> unbound
from  where {
	$s :p $o .
	optional {
		$s :q $x
	}
}

return 
 
	{$def}
	{$err}
	{$div}
	{$cx}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy