[an aside on JavaScript] Re: shapes-ISSUE-60 (Other Extension Languages): Shall SHACL support other extension languages beside SPARQL (like JavaScript)? [SHACL Spec]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05/31/2015 03:53 PM, Holger Knublauch wrote:

[...]

> I assume we agree that JavaScript is more expressive than SPARQL - this 
> is easy to prove because there exists at least one SPARQL engine 
> implemented in JavaScript.

Just because you can implement SPARQL in JavaScript that is not enough to
show that JavaScript is more expressive than SPARQL. You also need to show
that you cannot implement JavaScript in SPARQL. This is true, of course,
but does need to be part of the proof.

> JavaScript is a general-purpose programming language with features such 
> as loops and ifs, the ability to create intermediate helper objects, 
> functions and reusable libraries. It's not just for client-side UI code 
> and DOM manipulation, but is getting increasingly popular on the server 
> too (node.js etc). JavaScript can invoke web services that produce (among
> others) XML or JSON.

JavaScript is powerful enough to express general functions, and thus can do
some computations that SPARQL cannot. JavaScript does depend heavily on
libraries that extend the capabilities of the core language. Any use of
JavaScript as part of SHACL would almost certainly have to indicate which
libraries are required.


peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVbEXpAAoJECjN6+QThfjzMW4IAM3pGgLJYtOSzO0/vfJ8ZxUa
3xZcFpBjM891vt6SDkuFWvVCPWR3k6cInGF+f7EooWUNLrUvYyYej9vj3vFm+K9F
Dm4kzNDE2DMw8K9WuG+kSEn6E7i/RnWF6DTs8n7icuH+Z8xUllvqs7eHxqTVT1Zp
zaarMLZnOyFYINq+eir8/fM7rM+8DIcsC21exUbzfr7hNyAIc5wWy7quJNyMmkUz
CWKEc6b3ug/uC/rwTLkaxtI0DuUukY00U4owN6D5iKoVcxIYBQMcXe6dEHFD1/lP
Ke7RpSHmAPBclXOPJRlmikO5w+dqt0/q+lGebx3hOXEqMsNkMKqlexyxSN+Hg08=
=DnOT
-----END PGP SIGNATURE-----

Received on Monday, 1 June 2015 11:46:32 UTC