extract_file: Extract file

Description Usage Arguments Value Examples

Description

Extract content-based metadata from the given input file's content using Brown Dog extraction service

Usage

1
extract_file(url, file, token, wait = 60)

Arguments

url

The URL to the Brown Dog server to use.

file

The input file could be URL or file with the path

token

Brown Dog access token

wait

The amount of time to wait for the DTS to respond. Default is 60 seconds

Value

The extracted metadata in JSON format

Examples

1
2
3
4
5
6
7
## Not run: 
key <- get_key("https://bd-api-dev.ncsa.illinois.edu", "your email", "password")
token <- get_token("https://bd-api-dev.ncsa.illinois.edu", key)
extract_file("https://bd-api-dev.ncsa.illinois.edu", 
"http://browndog.ncsa.illinois.edu/examples/gi/Dongying_sample.csv", token)

## End(Not run)

NCSABrownDog/bd.r documentation built on May 7, 2019, 6:01 p.m.