Skip to content
ericprud edited this page Sep 18, 2012 · 13 revisions

This is a list of extensions to the SWObjects SPARQL implementation.

Grammar Extensions

  • list accessors:
    • starts(n-args) - match a list which starts with these args: _:flag <colors> starts("blue", "white") . | _:flag <colors> starts(?c1, ?c2) .
    • ends(n-args)
    • set(n-args)
  • select un-named expression - SELECT ?name (?a + ?b) WHERE ...

Extension Functions

  • concat - n-args - concatonate the lexical value of all of the arguments.

LDP Extension Functions

  • host (resourceStem, collectionHead, pageSize) - invent a name and add it to a collection.