QueryResultItem: QueryResultItem Class

QueryResultItemR Documentation

QueryResultItem Class

Description

For more information on the NBA object model, please refer to the official NBA documentation at https://docs.biodiversitydata.nl and the NBA model and endpoints reference at https://docs.biodiversitydata.nl/endpoints-reference.

Usage

# QueryResultItem$new()

Format

R6 class

Details

Model class for QueryResultItem objects. Contains an object returned from a QuerySpec query. Holds an item and a relevance score.

Fields

score

numeric

item

list

Methods

$new()

Constructor QueryResultItem object.

$fromList(QueryResultItemList)

Create QueryResultItem object from list.

$toList()

Get list representation of QueryResultItem.

fromJSONString(QueryResultItemJson)

Create QueryResultItem object from JSON.

toJSONString(pretty=TRUE)

Get JSON representation of QueryResultItem.


naturalis/nbaR documentation built on Nov. 12, 2023, 4:47 p.m.