Liking cljdoc? Tell your friends :D

stardog.core


add-ns!clj

(add-ns! connection prefix rdf-ns)

Adds a namespace prefix

Adds a namespace prefix
raw docstring

askclj

(ask connection text & args)

Executes a boolean query. Optional parameters may be provided as a map or named parameters. Parameter names are:

  • base, parameters, reasoning, limit, offset, converter, key-converter.
Executes a boolean query.
Optional parameters may be provided as a map or named parameters.
Parameter names are:
- base, parameters, reasoning, limit, offset, converter, key-converter.
raw docstring

assert-argscljmacro

(assert-args & pairs)

Duplicates the functionality of the private clojure.core/assert-args

Duplicates the functionality of the private clojure.core/assert-args
raw docstring

binding->mapclj

(binding->map key-fn value-fn mb)

Converts a BindingSet into a map.

Converts a BindingSet into a map.
raw docstring

check-argclj

(check-arg pred [f & r :as a])

clojure-dataclj

(clojure-data results)
(clojure-data results keyfn valfn)

Converts query results into Clojure data. Optionally uses functions for interpreting names and value bindings in results.

Converts query results into Clojure data. Optionally uses functions for interpreting
names and value bindings in results.
raw docstring

ClojureResultcljprotocol

clojure-data*clj

(clojure-data* results keyfn valfn)

Typed dispatched conversion of query results into Clojure data

Typed dispatched conversion of query results into Clojure data

configure-queryclj

(configure-query q {:keys [parameters reasoning limit offset dataset]})

Configures a query is the valid parameters for that type of query

Configures a query is the valid parameters for that type of query
raw docstring

Connectablecljprotocol

connectclj

(connect c)

Creates a connection with the given parameters

Creates a connection with the given parameters

convert-to-mapclj

(convert-to-map [f & r :as args])

Converts an arguments array into a map. The arguments are either positional, named, or already in map form. This function is a fixpoint.

Converts an arguments array into a map. The arguments are either positional,
named, or already in map form. This function is a fixpoint.
raw docstring

create-db-specclj

(create-db-spec db url user pass reasoning)

Helper function to create a dbspec with sensible defaults for nontypical parameters

Helper function to create a dbspec with sensible defaults for nontypical parameters
raw docstring

create-queryclj

(create-query new-with-base new-without-base {:keys [base] :as args})

Creates a query using a map of optional arguments. new-with-base: Function that creates the query with a base URI. new-without-base: Function that creates the query without a base URI. args: A map containing any of the following: base, parameters, reasoning, limit, offset

Creates a query using a map of optional arguments.
new-with-base: Function that creates the query with a base URI.
new-without-base: Function that creates the query without a base URI.
args: A map containing any of the following: base, parameters, reasoning, limit, offset
raw docstring

executeclj

(execute q & args)

Executes a query that has already been created and configured. Valid parameters are key-converter and converter. Query configuration parameters are ignored.

Executes a query that has already been created and configured.
Valid parameters are key-converter and converter. Query configuration
parameters are ignored.
raw docstring

execute*clj

(execute* q
          {:keys [key-converter converter]
           :or {key-converter keyword converter values/standardize}})

graphclj

(graph connection text & args)

Executes a graph query. Optional parameters may be provided as a map or named parameters. Parameter names are:

  • base, parameters, reasoning, limit, offset, converter, key-converter.
Executes a graph query.
Optional parameters may be provided as a map or named parameters.
Parameter names are:
- base, parameters, reasoning, limit, offset, converter, key-converter.
raw docstring

insert!clj

(insert! connection triple-list)
(insert! connection triple-list graph-uri)

Inserts a statement (subject, predicate, object) represented as a 3 item vector. If a graph URI is specified, the statements will be added to the named graph.

Inserts a statement (subject, predicate, object) represented as a 3 item vector.
If a graph URI is specified, the statements will be added to the named graph.
raw docstring

key-map-resultsclj

(key-map-results keyfn valfn results)

Converts a Iteration of bindings into a seq of keymaps.

Converts a Iteration of bindings into a seq of keymaps.
raw docstring

list-namespacesclj

(list-namespaces connection)

Lists configured namespaces in the database

Lists configured namespaces in the database
raw docstring

make-datasourceclj

(make-datasource db-spec)

Creates a Stardog datasource, i.e. ConnectionPool

Creates a Stardog datasource, i.e. ConnectionPool
raw docstring

queryclj

(query connection text & args)

Executes a query and returns results. When constructing a query from text, the parameters are:

  • connection: The connection to query over (required).
  • text: The text of the connection (String - required). Remaining argument are optional, and may be positional args, a map of args, or named args. Mapped and named args use the keys:
  • base, parameters, reasoning, limit, offset, converter, key-converter Positional arguments are in order:
  • base: The base URI for the query (String).
  • parameters: A parameter map to bind parameters in the query (Map).
  • reasoning: boolean true/false for reasoning, or not
  • converter: A function to convert returned values with (Function).
  • key-converter: A function to convert returned binding names with (Function).
  • limit: The limit for the result. Must be present to use offset (integer).
  • offset: The offset to start the result (integer).
Executes a query and returns results.
When constructing a query from text, the parameters are:
- connection: The connection to query over (required).
- text: The text of the connection (String - required).
Remaining argument are optional, and may be positional args,
a map of args, or named args. Mapped and named args use the keys:
- base, parameters, reasoning, limit, offset, converter, key-converter
Positional arguments are in order:
- base: The base URI for the query (String).
- parameters: A parameter map to bind parameters in the query (Map).
- reasoning: boolean true/false for reasoning, or not
- converter: A function to convert returned values with (Function).
- key-converter: A function to convert returned binding names with (Function).
- limit: The limit for the result. Must be present to use offset (integer).
- offset: The offset to start the result (integer).
raw docstring

query-keysclj


remove!clj

(remove! connection triple-list)
(remove! connection triple-list graph-uri)

Remove a statement from the database; nil's can be used in any position to indicate a wildcard matching anything in that position, thereby removing multiple statements. If a graph URI is specified, all statements matching the given SPO pattern will be removed from the named graph.

Remove a statement from the database; nil's can be used in any position to
indicate a wildcard matching anything in that position, thereby removing multiple statements.
If a graph URI is specified, all statements matching the given SPO pattern will be removed
from the named graph.
raw docstring

remove-all!clj

(remove-all! connection)

Delete the entire contents of the database.

Delete the entire contents of the database.
raw docstring

remove-named-graph!clj

(remove-named-graph! connection)
(remove-named-graph! connection graph-uri)

Remove the named graph and all the statements within from the database. If no graph URI is provided this will remove the default graph (no context). If you want to remove everything in the database regardless of context, use remove-all!.

Remove the named graph and all the statements within from the database. If no graph URI is provided
this will remove the default graph (no context). If you want to remove everything in the database
regardless of context, use remove-all!.
raw docstring

remove-ns!clj

(remove-ns! connection prefix)

Removes a namespace prefix

Removes a namespace prefix
raw docstring

statement->mapclj

(statement->map value-fn mb)

Converts a Statement into a map.

Converts a Statement into a map.
raw docstring

transactclj

(transact pool func)

(transact pool (something con ..)) Executes a function over a connection pool and transaction

(transact pool (something con ..))
Executes a function over a connection pool and transaction
raw docstring

update!clj

(update! connection text & args)

Executes an update operation. Optional parameters may be provided as a map or named parameters. Parameter names are:

  • base, parameters, reasoning, converter.
Executes an update operation.
Optional parameters may be provided as a map or named parameters.
Parameter names are:
- base, parameters, reasoning, converter.
raw docstring

vector-map-resultsclj

(vector-map-results valfn results)

Converts a Graph of statements into a seq of vectors.

Converts a Graph of statements into a seq of vectors.
raw docstring

with-connection-poolcljmacro

(with-connection-pool bindings & body)

(with-connection-pool [con pool] .. con, body ..) Evaluates body in the context of an active connection

(with-connection-pool [con pool] .. con, body ..)
Evaluates body in the context of an active connection
raw docstring

with-connection-txcljmacro

(with-connection-tx bindings & body)

(with-connection-tx binding-forms body) Establishes a connection and a transaction to execute the body within.

(with-connection-tx binding-forms body)
Establishes a connection and a transaction to execute the body within.
raw docstring

with-transactioncljmacro

(with-transaction connections & body)

(with-transaction [connection...] body) Executes the body with a transaction on each of the connections. At completion of the body the transaction is committed. If the body fails due to exception, the transaction is rolled back. This macro intentionally restricts connections to be symbols, to encourage them to be bindings in with-open.

(with-transaction [connection...] body)
Executes the body with a transaction on each of the connections. At completion of the body
the transaction is committed. If the body fails due to exception, the transaction is rolled back.
This macro intentionally restricts connections to be symbols, to encourage them to be
bindings in with-open.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close