query: Returns an answer to a query hash

Description Usage Arguments Details Value See Also Examples

View source: R/query.R

Description

Internally, an answer is retrieved by appending the relative path of the query hash provided by hash2path to the url endpoint:

Usage

1
2

Arguments

query_hash

query_hash explicitly specify version to start with, by default, the first version is queried.

hash2url

function that maps a query hash to a url

Details

https://example.org/hash/path

where:

Value

an answer in the form a content hash

See Also

https://github.com/bio-guoda/preston/blob/master/architecture.md#simplified-hexastore#

https://archive.org/details/biodiversity-dataset-archives

https://preston.guoda.bio

Examples

1
2
 first_version <- query()
 # "hash://sha256/c253a5311a20c2fc082bf9bac87a1ec5eb6e4e51ff936e7be20c29c8e77dee55"

jhpoelen/reston documentation built on April 11, 2020, 11:51 a.m.