On 03/07/12 13:07, Joshua TAYLOR wrote:
On Tue, Jul 3, 2012 at 7:47 AM, Claude Warren <[email protected]> wrote:
2 Quick questions:

1. Is there a list of standard filters that all SPARQL 1.1 must implement
(w3c specified for example)?

Looking at the SPARQL 1.1 docs, I don't see a particularly convenient
list anywhere, but if you look at the Filter production [1] (prod. 64)
in the grammar, and follow it a few levels down, you'll find out a lot
about what kind of filters you can write.  The BuiltInCall [2] (prod.
111) production is almost the list you're looking for.

The TOC of the query spec has a (vertical) list.

All the keyword'ed functions are required and the operators in the operator table. There is no subsets of features in SPARQL to be fully compliant. The WG has consistently decided to only describe the whole thing and not get into subsets.

The datatypes required are:

Plain literals without language tag
xsd:string
xsd:decimal and derived types (xsd:integer, xsd:int etc)
xsd;double
xsd:float
xsd:dateTime


ARQ adds:

xsd:date
xsd:time
xsd:g* -- gYearMonth · gYear · gMonthDay · gDay · gMonth
xsd:duration, yearMonthDuration, dayTimeDuration

which is roughly everything in XSD 1.1 that makes sense except dateTimeStamp which I haven't got round to doing yet. It's trivial (it's a dateTime with mandatory timezone).

Unknown datatypes get handled but without full operators coverage.


2. Is there a list of filters implemented in Jena?

The Extensions in ARQ page [3] descibes some of the things Jena
implements, and links to some property functions [4] and filter
functions [5].

I'm not a Jena/ARQ dev, just a Jena and SPARQL user, so I can't speak
authoritatively, but I hope this helps a bit.

//JT

[1] http://www.w3.org/TR/sparql11-query/#rFilter
[2] http://www.w3.org/TR/sparql11-query/#rBuiltInCall
[3] http://jena.sourceforge.net/ARQ/extension.html#valueFunctions
[4] http://jena.sourceforge.net/ARQ/library-propfunc.html
[5] http://jena.sourceforge.net/ARQ/library-function.html

now at jena.apache.org

http://jena.apache.org/documentation/query/library-function.html

etc etc.




Reply via email to