extract_file {BrownDog}R Documentation

Extract file

Description

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

Usage

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

## 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)

[Package BrownDog version 0.2.1 Index]