Liking cljdoc? Tell your friends :D

zuko.entity.writer

Converts external data into a graph format (triples).

Converts external data into a graph format (triples).
raw docstring

*current-graph*clj/s

source

*id-map*clj/s

source

*triples*clj/s

source

entities->triplesclj/s≠

clj
(entities->triples graph entities)
(entities->triples graph entities id-map)
cljs
(entities->triples G__12051 G__12052)
(entities->triples G__12056 G__12057 G__12058)

Inputs: ([graph :- GraphType entities :- [EntityMap]] [graph :- GraphType entities :- [EntityMap] id-map :- #:s{Any s/Any}]) Returns: [Triple]

Converts objects into a sequence of triples.

Inputs: ([graph :- GraphType entities :- [EntityMap]] [graph :- GraphType entities :- [EntityMap] id-map :- #:s{Any s/Any}])
Returns: [Triple]

Converts objects into a sequence of triples.
sourceraw docstring

entity-update->triplesclj/s

(entity-update->triples graph node-ref entity)

Inputs: [graph :- GraphType node-ref entity] Returns: [(s/one [Triple] "assertions") (s/one [Triple] "retractions")]

Takes a single structure and converts it into triples to be added and triples to be retracted to create a change

Inputs: [graph :- GraphType node-ref entity]
Returns: [(s/one [Triple] "assertions") (s/one [Triple] "retractions")]

Takes a single structure and converts it into triples to be added and triples to be retracted to create a change
sourceraw docstring

existing-triplesclj/s

(existing-triples graph node-ref [k v])

Inputs: [graph :- GraphType node-ref [k v]]

Inputs: [graph :- GraphType node-ref [k v]]
sourceraw docstring

get-refclj/s

(get-ref {id :db/id ident :db/ident :as data})

Inputs: [{id :db/id, ident :db/ident, :as data} :- #:s{Keyword s/Any}]

Returns the reference for an object, and a flag to indicate if a new reference was generated

Inputs: [{id :db/id, ident :db/ident, :as data} :- #:s{Keyword s/Any}]

Returns the reference for an object, and a flag to indicate if a new reference was generated
sourceraw docstring

ident-map->triplesclj/s≠

clj
(ident-map->triples j)
(ident-map->triples graph j)
(ident-map->triples graph j id-map)
cljs
(ident-map->triples G__12038)
(ident-map->triples G__12027 G__12028)
(ident-map->triples G__12032 G__12033 G__12034)

Inputs: ([graph :- GraphType j :- EntityMap] [graph :- GraphType j :- EntityMap id-map :- #:s{Any s/Any}] [j :- EntityMap])

Converts a single map to triples for an ID'ed map

Inputs: ([graph :- GraphType j :- EntityMap] [graph :- GraphType j :- EntityMap id-map :- #:s{Any s/Any}] [j :- EntityMap])

Converts a single map to triples for an ID'ed map
sourceraw docstring

json-generate-stringclj/s

(json-generate-string data)
(json-generate-string data indent)
source (clj)source (cljs)

list-triplesclj/s

(list-triples [v & vs :as vlist])

Creates the triples for a list. Returns a node and list of nodes representing contents of the list.

Creates the triples for a list. Returns a node and list of nodes representing contents of the list.
sourceraw docstring

map->triplesclj/s

(map->triples data)

Inputs: [data :- #:s{Keyword s/Any}]

Converts a single map to triples. Returns the entity reference or node id.

Inputs: [data :- #:s{Keyword s/Any}]

Converts a single map to triples. Returns the entity reference or node id.
sourceraw docstring

name-forclj/s

(name-for id)

Convert an id (probably a number) to a keyword for identification

Convert an id (probably a number) to a keyword for identification
sourceraw docstring

new-nodeclj/s

(new-node id)
source

parse-json-stringclj/s

source (clj)source (cljs)

property-valsclj/s

(property-vals entity-ref [property value])

Inputs: [entity-ref :- s/Any [property value] :- KeyValue]

Takes a property-value pair associated with an entity, and builds triples around it

Inputs: [entity-ref :- s/Any [property value] :- KeyValue]

Takes a property-value pair associated with an entity,
 and builds triples around it
sourceraw docstring

stream->triplesclj/s≠

(stream->triples graph io)
clj

Inputs: [graph :- GraphType io] Returns: [Triple]

Converts a stream to triples

Inputs: [graph :- GraphType io]
Returns: [Triple]

Converts a stream to triples
cljs

Inputs: [graph io] Returns: [Triple]

Inputs: [graph io]
Returns: [Triple]
source (clj)source (cljs)raw docstring

string->triplesclj/s

(string->triples graph s)

Inputs: [graph :- GraphType s :- s/Str] Returns: [Triple]

Converts a string to triples

Inputs: [graph :- GraphType s :- s/Str]
Returns: [Triple]

Converts a string to triples
sourceraw docstring

Tripleclj/s

source

value-triplesclj/s

(value-triples v)

Converts a value into a list of triples. Return the entity ID of the data.

Converts a value into a list of triples.
Return the entity ID of the data.
sourceraw docstring

value-triples-listclj/s

(value-triples-list vlist)

Inputs: [vlist :- [s/Any]]

Inputs: [vlist :- [s/Any]]
sourceraw docstring

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

× close