rdf4j.utils

any-to-value

multimethod

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

comma->seq

(comma->seq previous key val)

context-array

added in 0.2.2

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

(create-dir path)

Create directory after given path normalisation.

get-all-statements

(get-all-statements r)

Generic method returns all statements from a data-source.

By defailt

iter-seq

(iter-seq i)

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

make-baseuri

(make-baseuri x)

Creates baseuri from file path.

map->binding

(map->binding m)

multioption->seq

(multioption->seq previous key val)

Function handles multioptions for command line arguments

normalise-path

multimethod

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

normalise-path-supportsp

(normalise-path-supportsp data)

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

rand-string

(rand-string length)

re-splitted->seq

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

Function handles options separated by regular expression.

string->id

(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

string->stream

(string->stream s)

temp-dir

(temp-dir & namespace)

value-factory

multimethod

(value-factory & [x])

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