-
Notifications
You must be signed in to change notification settings - Fork 0
filter
Michael Luggen edited this page Jul 26, 2016
·
7 revisions
- data-filter Filter type (name in paranthese).
- [data-prefix] Optional, adds a PREFIX if not yet set
Filters on one specific attribute.
- data-predicate
- data-object
?sub @data-predicate @data-object.
Filters with an operator on a literal.
- data-predicate
- data-operator [<, >, <=, >=, =, !=]
- data-literal
- [data-variable] optional if not set UID is choosen
?sub @data-predicate @UID.
FILTER(?UID @data-operator @data-literal)
?sub <http://www.w3.org/2006/time#intervalStarts> ?start.
FILTER (?start >= xsd:date('2015-01-01'))
Castings like xsd:date can be added transparently to @data-literal.
- date-subject
- data-predicate
@data-subject @data-predicate+ ?sub.
Note the + behind the @data-predicate.
<http://data.staatsarchiv-bs.ch/id/archivalresource/CH-000027-1/pa-633c-a-11> <http://purl.org/dc/terms/hasPart>+ ?sub.
This seems to be extremely slow with current store. (We need to look into optimizations.)
Including the @data-predicate in the results.
{
@data-subject @data-predicate+ ?sub.
}
UNION
{
BIND(@data-predicate AS ?sub)
}
@ signifies a value in the filters
Dots matter!