Liking cljdoc? Tell your friends :D

rdf4j.utils


any-to-valuecljmultimethod

(any-to-value x)

Converts anything into Value.

The argument value is checked in the following order:

  • if v is valid IRI than create result using (.createIRI value-factory v)
  • otherwise create Literal.
Converts anything into `Value`.

The argument value is checked in the following order:
   - if `v` is valid IRI than create result using `(.createIRI value-factory v)`
   - otherwise create `Literal`.
sourceraw docstring

comma->seqclj

(comma->seq previous key val)
source

context-arrayclj

(context-array)
(context-array _)
(context-array kb a)
(context-array kb a & rest)

Create array of Resource.

Code was adapted from kr-sesame: sesame-context-array.

Create array of Resource. 

Code was adapted from kr-sesame: sesame-context-array.
sourceraw docstring

create-dirclj

(create-dir path)

Create directory after given path normalisation.

Create directory after given path normalisation.
sourceraw docstring

get-all-statementsclj

(get-all-statements r)

Generic method returns all statements from a data-source.

By defailt

Generic method returns all statements from a data-source.

By defailt 
sourceraw docstring

iter-seqclj

(iter-seq i)

It is iterator-seq like but works with iterator-like patterns. Reused implementation describe in http://stackoverflow.com/questions/9225948/ task.

It is iterator-seq like but works with iterator-like patterns.
Reused implementation describe in http://stackoverflow.com/questions/9225948/ task.
sourceraw docstring

make-baseuriclj

(make-baseuri x)

Creates baseuri from file path.

Creates baseuri from file path.
sourceraw docstring

map->bindingclj

(map->binding m)
source

multioption->seqclj

(multioption->seq previous key val)

Function handles multioptions for command line arguments

Function handles multioptions for command line arguments
sourceraw docstring

normalise-pathcljmultimethod

(normalise-path path)

Proceeds path string normalisation. Additionally replace '~' character by Java's 'user.home' system property content. If string is blank (ref. clojure.string/blank?) than returns nil.

Proceeds path string normalisation. Additionally replace '~' character by Java's 'user.home' system property content.
If string is blank (ref. clojure.string/blank?) than returns nil.
sourceraw docstring

normalise-path-supportspclj

(normalise-path-supportsp data)

Check if type of data is suppoerted by normalise-path.

Check if type of `data` is suppoerted by `normalise-path`.
sourceraw docstring

rand-stringclj

(rand-string length)
source

re-splitted->seqclj

(re-splitted->seq re previous key val)

Function handles options separated by regular expression.

Function handles options separated by regular expression.
sourceraw docstring

string->idclj

(string->id s)

Converts free string into id.

This method does following actions:

  • converts any white characters into single underscore
  • converts pattern \s*[,;-_]?\s+ into single underscore
  • converts all upper-case letters into lower-case
  • process XMLUtil/escapeText
Converts free string into id.

This method does following actions:
  - converts any white characters into single underscore
  - converts pattern `\s*[,;-_]?\s+` into single underscore
  - converts all upper-case letters into lower-case
  - process `XMLUtil/escapeText`
sourceraw docstring

string->streamclj

(string->stream s)
source

temp-dirclj

(temp-dir & namespace)
source

value-factorycljmultimethod

(value-factory & [x])

Returns instance of value factory for given optional object. The object might be either RepositoryConnection or Repository

Returns instance of value factory for given optional object. The object might be either RepositoryConnection or Repository
sourceraw docstring

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

× close