API for plaza.rdf.sparql

by Unknown

Usage:
(ns your-namespace
  (:require plaza.rdf.sparql))

Overview



Public Variables and Functions



build-query

function
Usage: (build-query query)
Transforms a query representation into a Jena Query object


defquery

macro
Usage: (defquery & rest)
Sets up a default query for a set of form that describe the query incrementally


make-filter

function
Usage: (make-filter name & args)
Makes a new filter expression


make-pattern

function
Usage: (make-pattern triples)
Builds a new pattern representation


model-query

function
Usage: (model-query model query)
Queries a model and returns a map of bindings


model-query-triples

function
Usage: (model-query-triples model query)
Queries a model and returns a list of triple sets with results binding variables in que query pattern


pattern-apply

function
Usage: (pattern-apply triples pattern)
Applies a pattern to a set of triples


pattern-bind

function
Usage: (pattern-bind pattern binding-map)
Binds variables in a pattern with some values


pattern-collect-vars

function
Usage: (pattern-collect-vars pattern)
Returns an array with all the vars in a pattern


query-add-var

function
Usage: (query-add-var query var)
       (query-add-var vars)
Adds a var to the collection of vars in the query


query-remove-var

function
Usage: (query-remove-var query var)
       (query-remove-var vars)
Removes a var from the collection of vars in the query


query-set-distinct

function
Usage: (query-set-distinct query)
       (query-set-distinct)
Sets a distinct contrain in the results


query-set-filters

function
Usage: (query-set-filters query filters)
       (query-set-filters filters)
Set a collection of filters for the query


query-set-limit

function
Usage: (query-set-limit query limit)
       (query-set-limit limit)
Sets a limit in the number of results


query-set-offset

function
Usage: (query-set-offset query offset)
       (query-set-offset offset)
Sets an offset in the results


query-set-pattern

function
Usage: (query-set-pattern query pattern)
       (query-set-pattern pattern)
Sets the pattern for the query


query-set-reduced

function
Usage: (query-set-reduced query)
       (query-set-reduced)
Sets a reduced constrain in the results


query-set-type

function
Usage: (query-set-type kind)
       (query-set-type query kind)
Sets the type of a query


query-set-vars

function
Usage: (query-set-vars query vars)
       (query-set-vars vars)
Set a collection of vars for the query


query-to-string

function
Usage: (query-to-string query)
Returns the strin representation of a query


query-unset-distinct

function
Usage: (query-unset-distinct query)
       (query-unset-distinct)
Removes the distinct constrain in the results


query-unset-limit

function
Usage: (query-unset-limit query)
       (query-unset-limit)
Removes the limit constrain in the number of results


query-unset-offset

function
Usage: (query-unset-offset query)
       (query-unset-offset)
Removes the offset constraint in the results


query-unset-reduced

function
Usage: (query-unset-reduced query)
       (query-unset-reduced)
Removes the reduced constrain in the number results


sparql-to-pattern

function
Usage: (sparql-to-pattern sparql-string-or-query)
Parses a SPARQL query and transform it into a pattern


sparql-to-query

function
Usage: (sparql-to-query sparql-string)
Parses a SPARQL query and builds a whole query dictionary
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.