Pathom3 resolvers to make accessing the DB easy.
Pathom3 resolvers to make accessing the DB easy.
(attr-fn attr resolve?)
Return a function for the argument. the dp/pull returns wrapped in the output Pathom requires.
Return a function for the argument. the dp/pull returns wrapped in the output Pathom requires.
(attr-info conn)
Return a vector of maps containing :attr/id and :attr/type for every attribute in the DB.
Return a vector of maps containing :attr/id and :attr/type for every attribute in the DB.
(attr-types conn)
Return map of two sets (with the following two keys):
Return map of two sets (with the following two keys): - :resource? : DB attributes that appear directly in resources. - :experssion? : DB attributes that do not appear directly in resources.
(make-resolver sym {:keys [input output fn]})
(make-resource-attr-resolvers conn)
Return a vector of resolvers for rdf resource attributes.
Return a vector of resolvers for rdf resource attributes.
a vector of miscellaneous resolvers defined in this namespace
a vector of miscellaneous resolvers defined in this namespace
(owl-order x y)
Return a comparator value for ordering the keys of a sorted map of owl-db-tools stuff.
Return a comparator value for ordering the keys of a sorted map of owl-db-tools stuff.
(pull-resource resource-iri
conn
&
{:keys [keep-db-ids? sort?] :or {sort? true}})
Return the nicely sorted sorted-map of a resource; it's like pretty printing.
Return the nicely sorted sorted-map of a resource; it's like pretty printing.
(register-resolvers! conn)
Register resolvers and create a boundary interface function that takes as an argument EQL compatible with any of the resolvers defined/computed in this file.
Register resolvers and create a boundary interface function that takes as an argument EQL compatible with any of the resolvers defined/computed in this file.
(subclass-of-order x y)
Sort a :rdfs/subClassOf property.
Sort a :rdfs/subClassOf property.
(subclass-of-sort v)
Sort a:rdfs/subClassOf property (a vector).
Sort a:rdfs/subClassOf property (a vector).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close