vnadgir-ft / sparkle-g

Automatically exported from code.google.com/p/sparkle-g
Apache License 2.0
0 stars 0 forks source link

Incorrect rewrite of argList in iriRefOrFunction rule #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem reported by Thomas Francart with respect to release 3.3.

The following query:

PREFIX owl:<http://www.w3.org/2002/07/owl#>
SELECT DISTINCT ?s WHERE {
  ?s a ?type .
  FILTER(?type != owl:Class)
}

had been incorrectly reformatted to:

PREFIX owl:<http://www.w3.org/2002/07/owl#>
SELECT DISTINCT ?s
WHERE {
  ?s a ?type
  FILTER(?type != owl:Class())
}

Rewrite of argList in iriRefOrFunction rule corrected.
Braces are omitted now, when no function is specified.

The following example:

PREFIX owl:<http://www.w3.org/2002/07/owl#>
SELECT DISTINCT ?s WHERE {
  ?s a ?type .
  FILTER(?type != my:function(1*1))
}

is reformatted to:

PREFIX owl:<http://www.w3.org/2002/07/owl#>
SELECT DISTINCT ?s
WHERE {
  ?s a ?type
  FILTER(?type != my:function(1 * 1))
}

Original issue reported on code.google.com by Juergen....@gmail.com on 28 Mar 2012 at 10:41

GoogleCodeExporter commented 9 years ago
Rewrite of argList in iriRefOrFunction rule corrected (file SparqlT.g).

Original comment by Juergen....@gmail.com on 28 Mar 2012 at 10:44