A client library for the Metadata API.
A client library for the Metadata API.
(list-hierarchies _ username ontology-version)
(list-hierarchies _ username ontology-version opts)
List Ontology Hierarchies saved for the given ontology-version
.
List Ontology Hierarchies saved for the given `ontology-version`.
(filter-by-avus _ username target-types target-ids avus)
Filters the given target IDs by returning a list of any that have metadata with the given
attrs
and values
.
Filters the given target IDs by returning a list of any that have metadata with the given `attrs` and `values`.
(update-avus _ username target-type target-id body)
(update-avus _ username target-type target-id body opts)
Adds or updates Metadata AVUs on the given target item.
Adds or updates Metadata AVUs on the given target item.
(filter-unclassified _
username
ontology-version
root-iri
attr
target-types
target-ids)
Filters the given target IDs by returning a list of any that are not associated with any
Ontology classes of the hierarchy rooted at the given root-iri
.
Filters the given target IDs by returning a list of any that are not associated with any Ontology classes of the hierarchy rooted at the given `root-iri`.
(find-avus _ username criteria)
Searches for AVUs that match the given search criteria. Available criteria are :attribute
, :target-type
:value
, and :unit
. Each criterion can be either an acceptable match or a list of acceptable matches.
Searches for AVUs that match the given search criteria. Available criteria are `:attribute`, `:target-type` `:value`, and `:unit`. Each criterion can be either an acceptable match or a list of acceptable matches.
(delete-avus _ username target-types target-ids avus)
Deletes AVUs matching those in the given avus
list from the given target-ids
.
Deletes AVUs matching those in the given `avus` list from the given `target-ids`.
(filter-hierarchy-targets _
username
ontology-version
root-iri
attr
target-types
target-ids)
Filters the given target IDs by returning only those that are associated with any Ontology
classes of the hierarchy rooted at the given root-iri
.
Filters the given target IDs by returning only those that are associated with any Ontology classes of the hierarchy rooted at the given `root-iri`.
(copy-metadata-avus _ username target-type target-id dest-items)
Copies all Metadata Template AVUs from the data item with the ID given in the URL to other data items sent in the request body.
Copies all Metadata Template AVUs from the data item with the ID given in the URL to other data items sent in the request body.
(filter-targets-by-ontology-search _
username
ontology-version
attrs
search-term
target-types
target-ids)
Filters the given target IDs by returning only those that have any of the given attrs
and Ontology class IRIs as values whose labels match the given Ontology class label
.
Filters the given target IDs by returning only those that have any of the given `attrs` and Ontology class IRIs as values whose labels match the given Ontology class `label`.
(delete-ontology _ username ontology-version)
Marks an Ontology as deleted in the database.
Marks an Ontology as deleted in the database.
(list-avus _ username target-type target-id)
(list-avus _ username target-type target-id opts)
Lists all AVUs associated with the target item.
Lists all AVUs associated with the target item.
(set-avus _ username target-type target-id body)
(set-avus _ username target-type target-id body opts)
Sets Metadata AVUs on the given target item. Any AVUs not included in the request will be deleted. If the AVUs are omitted, then all AVUs for the given target ID will be deleted.
Sets Metadata AVUs on the given target item. Any AVUs not included in the request will be deleted. If the AVUs are omitted, then all AVUs for the given target ID will be deleted.
(list-ontologies _ username)
List Ontology Details
List Ontology Details
(filter-hierarchy _
username
ontology-version
root-iri
attr
target-types
target-ids)
Filters an Ontology Hierarchy, rooted at the given root-iri
, returning only the
hierarchy's leaf-classes that are associated with the given targets.
Filters an Ontology Hierarchy, rooted at the given `root-iri`, returning only the hierarchy's leaf-classes that are associated with the given targets.
(filter-hierarchies _ username ontology-version attrs target-type target-id)
Filters Ontology Hierarchies saved for the given ontology-version
,
returning only the hierarchy's leaf-classes that are associated with the given target.
Filters Ontology Hierarchies saved for the given `ontology-version`, returning only the hierarchy's leaf-classes that are associated with the given target.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close