Re: Arguments are ordered?

On 10/25/2015 0:53, Vladimir Alexiev wrote:
> SHACL Sec 9.2 Function Arguments
> http://w3c.github.io/data-shapes/shacl/#function-arguments
> says "Arguments are ordered" and gives this example:
>
>    sh:argument [sh:predicate sh:arg1 ...];
>    sh:argument [sh:predicate sh:arg2 ...];
>
> However, the multiple values of sh:argument are not ordered in RDF.
> Does the spec mean argument names are ordered lexicographically?

The ordering of arguments is relevant to map variable bindings from 
function calls in the SPARQL syntax. E.g. in order to map 
ex:exampleFunction(?arg1, ?arg2) to the argument variables, the system 
needs to know which one is the first and second argument. This is not 
about the order of values of sh:argument - which as you state is not 
ordered in RDF. The spec enumerates the rules by which the order is 
determined, e.g. based on sh:index.

Holger

Received on Monday, 26 October 2015 00:11:34 UTC