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

create-object-resourcecljmultimethod

returns 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)]
returns 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)]
sourceraw docstring

create-object-resource-dispatchclj

(create-object-resource-dispatch g o)
source

derivable-media-typesclj

(derivable-media-types ont)

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

get-subjectsclj

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

load-rdfclj

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

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 g s p o)

Returns a Jena Statment for s p and o

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

ontologyclj

A native-normal graph holding the supporting ontology for igraph-jena

A native-normal graph holding the supporting ontology for igraph-jena
sourceraw docstring

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

Jena-specific values for rdf/query-template-defaults. Supports bnode-round-tripping.

Jena-specific values for rdf/query-template-defaults. Supports bnode-round-tripping.
sourceraw docstring

read-rdfclj

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

standard-io-contextclj

The standard context argument to igraph/rdf i/o methods

The standard context argument to igraph/rdf i/o methods
sourceraw docstring

write-with-jena-writerclj

(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

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

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

× close