d1_onedrive.impl.clients package¶
Submodules¶
d1_onedrive.impl.clients.onedrive_d1_client module¶
DataONE Client with caching.
-
class
d1_onedrive.impl.clients.onedrive_d1_client.
DataONEClient
(options)¶ Bases:
object
-
get_science_object
(pid)¶
-
get_system_metadata
(pid)¶ This method causes an implicit validation of the retrieved System Metadata.
-
get_system_metadata_as_string
(pid)¶ This method does not include validation of the System Metadata.
-
describe
(pid)¶
-
d1_onedrive.impl.clients.onedrive_solr_client module¶
Extend d1_client.solr_client.SolrClient for OneDrive.
-
class
d1_onedrive.impl.clients.onedrive_solr_client.
OneDriveSolrClient
(options, try_count=3)¶ Bases:
d1_client.solr_client.SolrClient
-
run_solr_query
(query, filter_queries=None, fields=None)¶
-
get_solr_record
(pid)¶
-
d1_onedrive.impl.clients.onedrive_zotero_client module¶
Hold a local cache of the online Zotero library.
Provide overview of what has changed in the online Zotero library since last sync.
Expose a simple API to query and refresh the cache.
-
class
d1_onedrive.impl.clients.onedrive_zotero_client.
ZoteroClient
(options)¶ Bases:
object
-
refresh
()¶ Refresh the local cache of the online Zotero library if stale.
-
force_refresh
()¶
-
get_filtered_sub_tree
(path)¶ Get a sub-tree rooted at [path] that contains only DataONE items.
The path is a list of collection names.
-
iterate_collection_trees
()¶
-
iterate_collection_tree
(collection_tree, path=None)¶
-
iterate_filtered_tree
(filtered_tree=None, path=None)¶
-
cache_is_stale
()¶
-
create_filtered_tree
()¶
-
d1_onedrive.impl.clients.query_engine_description module¶
Cache and manipulate a queryEngineDescription.