semvec/pypi-packages huggingface dataset:
hivemind-util 0.1b44
A simple wrapper for the Hivemind API

# Hivemind utility functions

These functions provide lightweight wrappers around the Hivemind API calls.

They handle construction of HTTP requests, pagination of results, and the pairing up of output data with corresponding input data. Apart from that they do nothing complicated at all, and can be used as a template for constructing your own more complicated API calls.

Version history can be viewed at [HISTORY.md](https://bitbucket.org/hvmd/hivemind.utility/src/master/HISTORY.md).

Example usage:
```
>>> from hivemindutil import hm
>>> hm.help('dataset')
- getDatasetRows(datasetId, baseUrl, apiKey, queries=[])
Returns Dataset Rows for a dataset in the workflows tab.  Queries can be supplied as a list of strings where each string defines a (1) key path, (2) logical comparison and (3)value (e.g. "metadata.timestamp=2021-01-01" or "data.path.to.my.key>=0").


- getDatasetRow(datasetId, baseUrl, apiKey, datasetRowId)
Returns a specified row of a dataset.


- deleteDatasetRows(datasetId, baseUrl, apiKey, datasetRowIds=[], allRows=False, raiseForStatus=True)
Deletes specified rows in a dataset.  If allRows is set to True, the values passed to datasetRowIds are ignored, and all dataset rows are identified and deleted.


- addDatasetRows(datasetId, baseUrl, apikey, rowsData=[])
Bulk add rows to a dataset.  The value of rowsData should be a list of dictionaries of the rows data.


- addDatasetRow(datasetId, baseUrl, apiKey, rowData={})
Add a single row to a dataset.  Value for rowData should be the dictionary of the row data object.

>>> r = addDatasetRow(1, 'https://studio.lambda.hvmd.io', 'API-XXXXXXXXXXXXXXXXXXXXXXXX', rowData={'foo': 'bar'})
>>> r
{
  'data': {
    'datasetRowId': 1,
    'datasetId': 1,
    'data': {'foo': 'bar'},
    'metadata': {'creator': {'id': 0, 'type': 'User'},
      'upstream': [],
      'timestamp': '2021-08-10T15:26:47.2433333Z',
      'sequenceId': 1,
      'version': 1
    }
  }
}
```
pyscigraph 0.6
Python API for accessing Springer Nature SciGraph Linked Open Data.

# PySciGraph

Python command line utility for accessing [Springer Nature SciGraph](https://scigraph.springernature.com).

> SN SciGraph is a Linked Open Data repository containing info about 14 million+ research publications from Springer Nature, plus related researchers, grants, patents, organizations, etc..

The code is hosted on Pypi:

- [https://pypi.org/project/pyscigraph/](https://pypi.org/project/pyscigraph/)

[![Downloads](https://pepy.tech/badge/pyscigraph)](https://pepy.tech/project/pyscigraph)

### Example

```bash
# Search Nicola+Guarino on SciGraph website
$ pyscigraph Nicola Guarino

# Get JSONLD for a SN publication from its DOI
$ pyscigraph --doi 10.1038/171737a0 

# Get JSONLD for a SN publication from its full URI
$ pyscigraph --uri http://scigraph.springernature.com/pub.10.1038/171737a0

# Serialise RDF to Turtle format (default= JSONLD)
$ pyscigraph --doi 10.1038/171737a0 --rdf turtle

# Get JSONLD for other entity types
$ pyscigraph --uri http://scigraph.springernature.com/clinicaltrial.NCT05060562
$ pyscigraph --uri http://scigraph.springernature.com/grant.2691278
$ pyscigraph --uri http://scigraph.springernature.com/patent.US-10355159-B2
$ pyscigraph --uri http://scigraph.springernature.com/journal.1136213
$ pyscigraph --uri http://www.grid.ac/institutes/grid.511171.2
$ pyscigraph --uri http://scigraph.springernature.com/person.01311060163.26

```

### Install

```
pip install pyscigraph
```


### Status

Prototype.