File containing different API calls
- Source:
Methods
(static) fetchDataSchema(url) → {Promise.<{schemaData: *, prefixes: *}>}
Fetches the .ttl data schema, parses it and returns the parsed data with prefixes
Parameters:
Name | Type | Description |
---|---|---|
url |
URL of the data schema to fetch |
- Source:
Returns:
Schema data and prefixes
- Type
- Promise.<{schemaData: *, prefixes: *}>
(static) getHumanReadableDataPromises(urls, prefixToIri, iriToPrefix)
Returns an array of promises for getting the human readable data.
If the proxy route exists, uses it, otherwise creates direct requests.
Parameters:
Name | Type | Description |
---|---|---|
urls |
[String] Prefixed iris of the entities to search for | |
prefixToIri |
Map of prefix --> IRI | |
iriToPrefix |
Map of IRI --> prefix |
- Source:
Returns:
Array of promises for getting the human readable data.
(inner) downloadHumanReadableData()
Fetches human readable data
- Source:
(inner) pingDataFetchingRoute() → {Promise.<Response>}
Pings the /getData route to see if a proxy is used.
- Source:
Returns:
- Type
- Promise.<Response>