Liking cljdoc? Tell your friends :D

asami.entities.writer

Converts external data into a graph format (triples).

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

*current-entity*clj/s


*current-graph*clj/s


*id-map*clj/s


*limit*clj/s


*top-level-entities*clj/s


*triples*clj/s


add-subentity-relationshipclj/s

(add-subentity-relationship node)

Adds a sub-entity relationship for a provided node. Returns the node

Adds a sub-entity relationship for a provided node. Returns the node
raw docstring

add-triples!clj/s

(add-triples! op data)

(backtrack-unlink-top-entities top-entities triples)

Goes back through generated triples and removes sub-entity links to entities that were later determined to be top-level entities.

Goes back through generated triples and removes sub-entity links to entities that were later
determined to be top-level entities.
raw docstring

entities->triplesclj/s≠

clj
(entities->triples graph entities)
(entities->triples graph entities id-map)
cljs
(entities->triples G__20025 G__20026)
(entities->triples G__20030 G__20031 G__20032)

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.
raw 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
raw 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]]
raw docstring

get-refclj/s

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

Inputs: [{id :db/id, ident :db/ident, ident2 :id, :as data} :- EntityMap]

Returns the reference (a node-id) for an object, and a flag that is false if a new reference was generated

Inputs: [{id :db/id, ident :db/ident, ident2 :id, :as data} :- EntityMap]

Returns the reference (a node-id) for an object, and a flag that is false if a new reference was generated
raw docstring

ident-map->triplesclj/s≠

clj
(ident-map->triples j)
(ident-map->triples graph j)
(ident-map->triples graph j id-map top-level-ids limit)
cljs
(ident-map->triples G__20007)
(ident-map->triples G__19994 G__19995)
(ident-map->triples G__19999 G__20000 G__20001 G__20002 G__20003)

Inputs: ([graph :- GraphType j :- EntityMap] [graph :- GraphType j :- EntityMap id-map :- #:s{Any s/Any} top-level-ids :- #{s/Any} limit :- (s/maybe s/Num)] [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} top-level-ids :- #{s/Any} limit :- (s/maybe s/Num)] [j :- EntityMap])

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

identity-prop?clj/s

Tests if a property is a identifier property

Tests if a property is a identifier property
raw docstring

list-triplesclj/s

(list-triples 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.
raw docstring

lookup-ref?clj/s

(lookup-ref? i)

Tests if i is a lookup ref. Similar to https://blog.datomic.com/2014/02/datomic-lookup-refs.html

Tests if i is a lookup ref. Similar to https://blog.datomic.com/2014/02/datomic-lookup-refs.html
raw docstring

map->triplesclj/s

(map->triples data)

Inputs: [data :- EntityMap]

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 :- EntityMap]

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

new-nodeclj/s

(new-node id)

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
raw docstring

resolve-refclj/s

(resolve-ref [prop id])

top-level-entity?clj/s

(top-level-entity? node)

Tripleclj/s


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.
raw docstring

value-triples-listclj/s

(value-triples-list vlist)

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

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

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

× close