You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Tim Harsch <ha...@yahoo.com> on 2011/09/24 01:51:46 UTC

Syntax.syntaxARQ special syntax

Hi,
I was looking at:

http://jena.sourceforge.net/ARQ/extension.html

and trying to determine some SPARQL that is not supported in Sparql11 or Sparql10. In other words, something the "com.hp.hpl.jena.sparql.lang.arq.ARQParser" could parse that the other parsers could not.  The doc above says that bnode labels are an extension in ARQ, but I don't think that is true.  And the parsers seem to agree cause SPARQLParser10 doesn't seem to barf on the syntax.  The other items described in the doc above are valid SPARQL syntax, but would have special semantics in ARQ.

Is there some SPARQL syntax only ARQ can handle?

Thanks,

Tim


Re: Syntax.syntaxARQ special syntax

Posted by Andy Seaborne <an...@apache.org>.
On 24/09/11 00:51, Tim Harsch wrote:
> Hi,
> I was looking at:
>
> http://jena.sourceforge.net/ARQ/extension.html
>
> and trying to determine some SPARQL that is not supported in Sparql11 or Sparql10. In other words, something the "com.hp.hpl.jena.sparql.lang.arq.ARQParser" could parse that the other parsers could not.  The doc above says that bnode labels are an extension in ARQ, but I don't think that is true.  And the parsers seem to agree cause SPARQLParser10 doesn't seem to barf on the syntax.  The other items described in the doc above are valid SPARQL syntax, but would have special semantics in ARQ.
>
> Is there some SPARQL syntax only ARQ can handle?

Not much now - much of it is in SPARQL 1.1

+ LET (as opposed to BIND - the semantic are slightly different)
+ Unnamed aggregates and select-expressions
+ Compatibility for old style SPARQL/Update (the submission)
+ Some grammar rules rewritten for scalability (remove recursions)
+ :p^:q in paths (SPARQL 1.1 does not have a binary ^, only a unary ^)
+ EXISTS, NOT EXISTS without needing FILTER

and some old experimental stuff (switched off)


Maybe sometime:

A/ GROUP_CONCAT (  ... ; ORDER BY ....)

B/ CONSTRUCT JSON
    { ... json template ... }
    WHERE
    { .. sparql pattern .. }

	Andy



>
> Thanks,
>
> Tim
>


Re: Syntax.syntaxARQ special syntax

Posted by Damian Steer <d....@bristol.ac.uk>.
On 24 Sep 2011, at 00:51, Tim Harsch wrote:

> Hi,
> I was looking at:
> 
> http://jena.sourceforge.net/ARQ/extension.html
> 
> and trying to determine some SPARQL that is not supported in Sparql11 or Sparql10. In other words, something the "com.hp.hpl.jena.sparql.lang.arq.ARQParser" could parse that the other parsers could not.  The doc above says that bnode labels are an extension in ARQ, but I don't think that is true.  And the parsers seem to agree cause SPARQLParser10 doesn't seem to barf on the syntax.  The other items described in the doc above are valid SPARQL syntax, but would have special semantics in ARQ.
> 
> Is there some SPARQL syntax only ARQ can handle?
> 
> Thanks,
> 
> Tim
> 

Off the top of my head: aggregates with no alias? e.g.

select count(*) {}

1.1 changed to require (count(*) as ?count) a while ago.

Damian