(ask-jena-model g q)
Returns true/false for ASK query q
posed to Jena model g
Returns true/false for ASK query `q` posed to Jena model `g`
(get-subjects jena-model)
Returns a sequence of KWIs corresponding ot subjects in jena-model
Returns a sequence of KWIs corresponding ot subjects in `jena-model`
(interpret-binding-element elt)
Returns a KWI or literal value as appropriate to elt
Where
elt
is bound to some variable in a query posed to a jena model.Returns a KWI or literal value as appropriate to `elt` Where - `elt` is bound to some variable in a query posed to a jena model.
(make-jena-graph)
(make-jena-graph model)
(make-jena-graph ds kwi)
Returns an implementation of igraph using a model
or a named model in ds
named kwi
Where
model
is a jena model (optional; default is a jena default model)ds
is a jena dataset to which we will declare a graph name with kwi
kwi
is a keyword identifier translatable to the URI of a named graph in ds
Returns an implementation of igraph using a `model` or a named model in `ds` named `kwi` Where - `model` is a jena model (optional; default is a jena default model) - `ds` is a jena dataset to which we will declare a graph name with `kwi` - `kwi` is a keyword identifier translatable to the URI of a named graph in `ds`
(make-statement s p o)
Returns a Jena Statment for s
p
and o
Returns a Jena Statment for `s` `p` and `o`
(query-jena-model g q)
(query-jena-model query-op g q)
Returns (binding-map
, ...) for q
posed to g
using query-op
Where
binding-map
:= {var
value
, ...}q
is a SPARQL queryg
is a jena modelquery-op
is the jena query operation (optional. defualt is #(.execSelect %)var
is a keyword corresponding to a variable in q
value
is an interpretation of the value bound to var
this will be either a KWI or a literal, as appropriate.Returns (`binding-map`, ...) for `q` posed to `g` using `query-op` Where - `binding-map` := {`var` `value`, ...} - `q` is a SPARQL query - `g` is a jena model - `query-op` is the jena query operation (optional. defualt is #(.execSelect %) - `var` is a keyword corresponding to a variable in `q` - `value` is an interpretation of the value bound to `var` this will be either a KWI or a literal, as appropriate.
(read-rdf rdf-file)
Returns g
for rdf-file
Where
g
is an igraphrdf-file
is an io/file in one of the RDF formatsReturns `g` for `rdf-file` Where - `g` is an igraph - `rdf-file` is an io/file in one of the RDF formats
(write-rdf g target fmt)
(write-rdf g target fmt base)
Side-effect: writes contents of g
to target
in fmt
Where
g
is a jena igraphtarget
names a filefmt
names an RDF fmt, e.g. 'Turtle'base
(optional) isthe base URI of any relative URIs. Default is nil.Side-effect: writes contents of `g` to `target` in `fmt` Where - `g` is a jena igraph - `target` names a file - `fmt` names an RDF fmt, e.g. 'Turtle' - `base` (optional) isthe base URI of any relative URIs. Default is nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close