Liking cljdoc? Tell your friends :D

grafter-2.rdf4j.formats

Symbols used to specify different Linked Data Serializations.

Includes functions to coerce formats from clojure keywords / file extension strings into their underlying RDF4j RDFFormat object.

Supported format keywords are:

:brf :json :n3 :nq :nt :rdf (also :owl :rdfs :xml) :rj :trig :trix :ttl

Symbols used to specify different Linked Data Serializations.

Includes functions to coerce formats from clojure keywords / file
extension strings into their underlying RDF4j RDFFormat object.

Supported format keywords are:

:brf
:json
:n3
:nq
:nt
:rdf (also :owl :rdfs :xml)
:rj
:trig
:trix
:ttl
raw docstring

->rdf-formatcljmultimethod

Extensible multi-method that coerces mime-type strings, or strings or keys representing file extensions for RDF types into RDFFormat objects for use with Sesame.

e.g. it can coerce :nt, "nt" or "application/n-triples" into the appropriate RDFFormat object.

Extensible multi-method that coerces mime-type strings, or strings
or keys representing file extensions for RDF types into RDFFormat
objects for use with Sesame.

e.g. it can coerce :nt, "nt" or "application/n-triples" into the
appropriate RDFFormat object.
sourceraw docstring

filename->rdf-formatclj

(filename->rdf-format fname)

Given a filename we attempt to return an appropriate RDFFormat object based on the files extension.

Given a filename we attempt to return an appropriate RDFFormat
object based on the files extension.
sourceraw docstring

mimetype->rdf-formatcljmultimethod

Extensible multimethod that accepts a mime-type string and returns the appropriate sesame RDFFormat object.

NOTE: the ->rdf-format function also uses this, and supports both mime-types and file extensions.

Extensible multimethod that accepts a mime-type string and returns
the appropriate sesame RDFFormat object.

NOTE: the ->rdf-format function also uses this, and supports both
mime-types and file extensions.
sourceraw docstring

select-input-coercerclj

(select-input-coercer fmt)

Depending on whether the format is text or binary returns either a Reader or an InputStream.

Depending on whether the format is text or binary returns either a
Reader or an InputStream.
sourceraw docstring

select-output-coercerclj

(select-output-coercer fmt)

Depending on whether the format is text or binary returns either a Writer or an OutputStream.

Depending on whether the format is text or binary returns either a
Writer or an OutputStream.
sourceraw docstring

url->rdf-formatclj

(url->rdf-format url)

Parse a URL for the file extension of its last path segment, ignoring query string and other URL parts.

Parse a URL for the file extension of its last path segment,
ignoring query string and other URL parts.
sourceraw docstring

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

× close