(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`
returns a resource suitable as an object given g
and object
g
is a Jena IGraphobject
is any argumentreturns a resource suitable as an object given `g` and `object` - where - `g` is a Jena IGraph - `object` is any argument - dispatched on fn [g obj] -> [(type g) (type obj)]
(derivable-media-types ont)
Returns {child parent, ...} for media types
child
should be declared to derive from parent
, being subsumed by
:dct/MediaTypeOrExtent
Returns {child parent, ...} for media types - where - `child` should be declared to derive from `parent`, being subsumed by `:dct/MediaTypeOrExtent` - note - these derivations would inform method dispatch for rdf/write-rdf methods.
(get-subjects jena-model)
Returns a sequence of KWIs corresponding to subjects in jena-model
Returns a sequence of KWIs corresponding to 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.
(load-rdf to-load)
Returns a new graph initialized with to-load
This is a wrapper around rdf/load-rdf
with context as standard-io-context
Returns a new graph initialized with `to-load` This is a wrapper around `rdf/load-rdf` with context as `standard-io-context`
(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 g s p o)
Returns a Jena Statment for s
p
and o
Returns a Jena Statment for `s` `p` and `o`
A native-normal graph holding the supporting ontology for igraph-jena
A native-normal graph holding the supporting ontology for igraph-jena
(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 g to-read)
Side-effect: updates g
to include contents of to-read
This is a wrapper around rdf/read-rdf
Side-effect: updates `g` to include contents of `to-read` This is a wrapper around rdf/read-rdf
The standard context argument to igraph/rdf i/o methods
The standard context argument to igraph/rdf i/o methods
(write-with-jena-writer g target fmt)
(write-with-jena-writer g target fmt base)
Side-effect: writes contents of g
to target
in fmt
g
is a jena igraphtarget
names a filefmt
names an RDF format, e.g. 'Turtle' or 'text/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 format, e.g. 'Turtle' or 'text/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