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__11049 G__11050)
(entities->triples G__11054 G__11055 G__11056)

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__11036)
(ident-map->triples G__11025 G__11026)
(ident-map->triples G__11030 G__11031 G__11032)

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

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

lookup-ref?clj/s

(lookup-ref? i)

Tests if i is a lookup ref

Tests if i is a lookup ref
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. The triples are built up statefully in the volatile triples.

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

Converts a single map to triples. Returns the entity reference or node id.
 The triples are built up statefully in the volatile *triples*.
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

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

resolve-refclj/s

(resolve-ref [prop id])
source

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