diff --git a/README.md b/README.md index 8bc7a18a..f969b0fd 100644 --- a/README.md +++ b/README.md @@ -348,10 +348,17 @@ In the first case, the engine computes the cardinal product of all the variables In the second case, the query is executed for each set of bindings in the result set. -## Magic Properties +## Magic Properties and Functions The SPARQL Anything engine is sensible to the magic property ````. This property matches the RDF container membership properties (e.g. ``rdf:_1``, ``rdf:_2`` ...). +The system supports the following functions on container membership properties (See #67): + +- `fx:before(?a, ?b)` returns `true` if ?a and ?b are container membership properties and ?a is lower than ?b, false otherwise +- `fx:after(?a, ?b)` returns `true` if ?a and ?b are container membership properties and ?a is higher than ?b, false otherwise +- `fx:previous(?a)` returns the container membership property that preceeds ?a (rdf:\_2 -> rdf:\_1) +- `fx:next(?b)` returns the container membership property that succeedes ?b (rdf:\_1 -> rdf:\_2) + ## Download and Usage