rtematres.api.do: A convenient wrapper to all tasks of the base api.

Description Usage Arguments Value Examples

Description

As some of the task of the base api only take ids the wrapper does a conversion from a term to the id to communicate with the server. So you can use terms in all taks with this function.

Usage

1
  rtematres.api.do(task = "availableTasks", term)

Arguments

task

The api task you like to execute. Use the the "availableTasks" to get an overview about the base api. It returns a data frame with descriptions and the arguments for the tasks.

term

Is the term(s) you like to execute the task for.

Value

The function returns either a dataframe for information or a list of keywords and ids

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
    rtematres.api.do(task = "availableTasks")
    rtematres.api.do(task = "fetchVocabularyData")
    rtematres.api.do(task = "suggest", term = "measurement")
    rtematres.api.do(task = "suggestDetails", term = "measurement")
    rtematres.api.do(task = "fetchTopTerms")
    rtematres.api.do(task = "search", term = "measurement")
    rtematres.api.do(task = "letter", term = "t")
    rtematres.api.do(task = "fetchTerm", term = "tree")
    rtematres.api.do(task = "fetchTerms", term = c("Context", "tree") )
    rtematres.api.do(task = "fetchDown", term = "Context")
    rtematres.api.do(task = "fetchUp", term = "measurement")
    rtematres.api.do(task = "fetchRelated", term = "tree")
    rtematres.api.do(task = "fetchAlt", term = "tree" )
    rtematres.api.do(task = "fetchCode", term = "tree")
    rtematres.api.do(task = "fetchNotes", term = "Context")
    rtematres.api.do(task = "fetchDirectTerms", term = "carbon")
    rtematres.api.do(task = "fetchURI", term = "carbon")
    rtematres.api.do(task = "fetchTargetTerms", term = "carbon")
    rtematres.api.do(task = "fetchSourceTerm", term = "Context")
    rtematres.api.do(task = "fetchRelatedTerms", term = c("Context", "tree"))
    rtematres.api.do(task = "fetchSimilar", term = "tree")
    rtematres.api.do(task = "fetchLast")
  
## End(Not run)

rtematres documentation built on May 2, 2019, 11:12 a.m.