Learn R Programming

rtematres (version 0.2)

rtematres.api: Basic tematres server api

Description

Basic tematres server api

Usage

rtematres.api(task = "availableTasks", argument)

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.
argument
Is the argument for the api task. You find the information about the arguments when you call the task "availableTasks".

Value

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

Examples

Run this code
## Not run: 
#     rtematres.api(task = "availableTasks")
#     rtematres.api(task = "fetchVocabularyData")
#     rtematres.api(task = "fetchTopTerms")
#     rtematres.api(task = "search", argument = "measurement")
#     rtematres.api(task = "letter", argument = "t")
#     rtematres.api(task = "fetchTerm", argument = 12)
#     rtematres.api(task = "fetchDown", argument = 4 )
#     rtematres.api(task = "fetchUp", argument = 4)
#     rtematres.api(task = "fetchRelated", argument = 4)
#     rtematres.api(task = "fetchAlt", argument = 12 )
#     rtematres.api(task = "fetchCode", argument = "tree")
#     rtematres.api(task = "fetchNotes", argument = 5 )
#     rtematres.api(task = "fetchDirectTerms", argument = 12)
#     rtematres.api(task = "fetchURI", argument = 12)
#     rtematres.api(task = "fetchTargetTerms", argument = 12 )
#     rtematres.api(task = "fetchSourceTerm", argument = 12)
#     rtematres.api(task = "fetchTerms", argument = '12,13' )
#     rtematres.api(task = "fetchRelatedTerms", argument = '12,13' )
#     rtematres.api(task = "fetchSimilar", argument = 12)
#     rtematres.api(task = "fetchLast")
#     rtematres.api.conversion.keyword_id(given = "Measurement")
#     rtematres.api.conversion.keyword_id(given = 8)
#  ## End(Not run)

Run the code above in your browser using DataLab