Liking cljdoc? Tell your friends :D

ont-app.igraph-jena.core


ask-jena-modelclj

(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`
sourceraw docstring

get-subjectsclj

(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`
sourceraw docstring

interpret-binding-elementclj

(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.
sourceraw docstring

JenaGraphclj

source

make-jena-graphclj

(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`
sourceraw docstring

make-statementclj

(make-statement s p o)

Returns a Jena Statment for s p and o

Returns a Jena Statment for `s` `p` and `o`
sourceraw docstring

ontologyclj

source

query-jena-modelclj

(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 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.
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.
sourceraw docstring

query-template-defaultsclj

source

read-rdfclj

(read-rdf rdf-file)

Returns g for rdf-file Where

  • g is an igraph
  • rdf-file is an io/file in one of the RDF formats
Returns `g` for `rdf-file`
Where
- `g` is an igraph
- `rdf-file` is an io/file in one of the RDF formats
sourceraw docstring

write-rdfclj

(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 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.
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.
sourceraw docstring

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

× close