Liking cljdoc? Tell your friends :D

michelangelo.core

Utilities to connect Raphael and Donatello.

Utilities to connect Raphael and Donatello.
raw docstring

*no-defaults*clj/s

A flag to indicate that nil bases or namespaces should result in no base or namespace to be written. The default is to maintain the existing base and namespace if none are specified.

A flag to indicate that nil bases or namespaces should result in no base or namespace to be written.
The default is to maintain the existing base and namespace if none are specified.
raw docstring

add-allclj/s

(add-all idx st)

Inserts all triples in a sequence into a nested map

Inserts all triples in a sequence into a nested map
raw docstring

index-addclj/s

(index-add idx [a b c])

Merges a single triple into a nested map

Merges a single triple into a nested map
raw docstring

parseclj/s

(parse s)

Parses input and creates a graph

Parses input and creates a graph
raw docstring

parsed-graphclj/s

(parsed-graph {:keys [base namespaces triples] :as parsed})

Converts a graph parsed by Raphel into a nested map, with metadata for the prefixes and base.

Converts a graph parsed by Raphel into a nested map, with metadata for the prefixes and base.
raw docstring

round-trip-generatorclj/s

(round-trip-generator)

Creates a new RoundTripGenerator

Creates a new RoundTripGenerator
raw docstring

simple-graphclj/s

(simple-graph triples)

Creates a nested-map version of a graph from a sequence of triples

Creates a nested-map version of a graph from a sequence of triples
raw docstring

transform-fileclj

(transform-file infile tx-fn outfile)

Transforms a TTL file. Accepts an input filename, a transforming function, and an output filename. The transforming function receives:

  • graph: the graph to transform.
  • namespaces: The prefix namespaces of of the graph.
  • base: The base of the graph. The result may be one of:
  • a vector of: [new-graph namespaces base]
  • a graph with a meta map of :namespaces and :base Both the base and namespaces are optional to return. If they are not returned, then the previous base and namespaces will be used, unless no-default has been set.
Transforms a TTL file.
Accepts an input filename, a transforming function, and an output filename.
The transforming function receives:
- graph: the graph to transform.
- namespaces: The prefix namespaces of of the graph.
- base: The base of the graph.
The result may be one of:
- a vector of: [new-graph namespaces base]
- a graph with a meta map of `:namespaces` and `:base`
Both the base and namespaces are optional to return. If they are not returned, then the
previous base and namespaces will be used, unless *no-default* has been set.
raw docstring

transform-stringclj/s

(transform-string in tx-fn)

Transforms a string containing TTL. Accepts an input string, and a transforming function. Returns a string containing the transformed TTL. The transforming function receives:

  • graph: the graph to transform.
  • namespaces: The prefix namespaces of of the graph.
  • base: The base of the graph. The result may be one of:
  • a vector of: [new-graph namespaces base]
  • a graph with a meta map of :namespaces and :base Both the base and namespaces are optional to return. If they are not returned, then the previous base and namespaces will be used, unless no-default has been set.
Transforms a string containing TTL.
Accepts an input string, and a transforming function. Returns a string containing the transformed TTL.
The transforming function receives:
- graph: the graph to transform.
- namespaces: The prefix namespaces of of the graph.
- base: The base of the graph.
The result may be one of:
- a vector of: [new-graph namespaces base]
- a graph with a meta map of `:namespaces` and `:base`
Both the base and namespaces are optional to return. If they are not returned, then the
previous base and namespaces will be used, unless *no-default* has been set.
raw docstring

uriclj/s≠

clj
(uri s)
cljs

write-graphclj/s

(write-graph out g)
(write-graph out g {:keys [namespaces base]})
(write-graph out g namespaces base)

Writes a parsed graph to a stream as Turtle. out - An OutputStream to write to. g - The graph to write. Tha base and namespace prefixes for the graph may included as:

  • metadata (as a map with keys of :namespaces and :base).
  • a map (as per the metadata map).
  • as individual arguments.
Writes a parsed graph to a stream as Turtle.
out - An OutputStream to write to.
g - The graph to write.
Tha base and namespace prefixes for the graph may included as:
  - metadata (as a map with keys of `:namespaces` and `:base`).
  - a map (as per the metadata map).
  - as individual arguments.
raw docstring

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

× close