Liking cljdoc? Tell your friends :D

jena.triplestore


clear-dbclj

(clear-db database-path)
source

clear-modelclj

(clear-model dataset)
source

construct-queryclj

(construct-query dataset sparql-query)

Runs a CONSTRUCT query in the specified Jena dataset.

Runs a CONSTRUCT query in the specified Jena dataset.
sourceraw docstring

fields->seqclj

(fields->seq o & {:keys [no-ns] :or {no-ns false}})
source

init-databaseclj

(init-database path)

Connects to the triplestore at given filesystem path and returns a Jena Dataset object that represents the connection.

Connects to the triplestore at given filesystem path and returns a Jena
Dataset object that represents the connection.
sourceraw docstring

init-dbclj

(init-db database-path & rdf-filepaths)
source

init-db-with-reasonerclj

(init-db-with-reasoner reasoner-type database-path & rdf-filepaths)
source

insert-modelclj

(insert-model dataset model)

Takes a tdb dataset and a model and inserts all triples from the model into the triplestore

Takes a tdb dataset and a model and inserts all triples from the model
into the triplestore
sourceraw docstring

insert-rdfclj

(insert-rdf dataset rdf-path)

Takes a tdb dataset and a path to an rdf file and inserts all the triples from the rdf file into the triplestore

Takes a tdb dataset and a path to an rdf file and inserts all the triples
from the rdf file into the triplestore
sourceraw docstring

insert-tripleclj

(insert-triple dataset subject predicate object)
source

mk-propertyclj

(mk-property s)

Creates a Jena Property object from a string

Creates a Jena Property object from a string
sourceraw docstring

mk-string-literalclj

(mk-string-literal s)

Creates a Jena string literal object from a string

Creates a Jena string literal object from a string
sourceraw docstring

mk-uriclj

(mk-uri s)

Creates a Jena Resource (URI) object from a string

Creates a Jena Resource (URI) object from a string
sourceraw docstring

query-sparqlclj

(query-sparql db sparql)
source

rdf-valueclj

(rdf-value node)
source

rdf-value-no-nsclj

(rdf-value-no-ns node)
source

result->hashclj

(result->hash resultset)
source

result->hash-no-nsclj

(result->hash-no-ns resultset)
source

resultset->seqclj

(resultset->seq resultset)

Returns a clojure lazy sequence from a Jena ResultSet

Returns a clojure lazy sequence from a Jena ResultSet
sourceraw docstring

select-queryclj

(select-query dataset sparql-query)

Runs a SELECT query in the specified Jena dataset.

Runs a SELECT query in the specified Jena dataset.
sourceraw docstring

with-transactioncljmacro

(with-transaction dataset rw-type & body)

Custom statement. Syntax: (with-transaction ReadWrite/[READ|WRITE] db ... body ...) The body is wrapped in a transaction of the supplied type (read or write) that works inside the supplied Jena Dataset. If an exception is thrown from whithin the body, the transaction is aborted and the exception is thrown. Otherwise the last expression in the body is returned. WARNING: Do not return the database or its contents (e.g. Dataset, Model) from this statement or the database will escape the scope of the transaction throwing an exception. WARNING2: Beware when creating a lazy sequence of the resultset. You must consume it fully before trying to add new triples into the triplestore. Use doall if needed.

Custom statement. Syntax:
 (with-transaction ReadWrite/[READ|WRITE] db
   ... body ...)
The body is wrapped in a transaction of the supplied type (read or write) that
works inside the supplied Jena Dataset. If an exception is thrown from whithin
the body, the transaction is aborted and the exception is thrown. Otherwise
the last expression in the body is returned.
WARNING: Do not return the database or its contents (e.g. Dataset, Model) from
this statement or the database will escape the scope of the transaction throwing
an exception.
WARNING2: Beware when creating a lazy sequence of the resultset. You must consume it
fully before trying to add new triples into the triplestore. Use doall if needed.
sourceraw docstring

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

× close