Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DSCC
FSO Metadata Auto R
Commits
96c4a5a9
Commit
96c4a5a9
authored
Oct 20, 2021
by
Pauline Maury Laribière
Browse files
adding dcat apis
parent
5070debd
Pipeline
#269068
passed with stage
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api_call.R
View file @
96c4a5a9
...
...
@@ -171,3 +171,107 @@ query_nomenclature(identifier='HCL_CH_ISCO_19_PROF', query='SELECT *', page_numb
###############################################################
dcat_list_all_agents
<-
function
(){
api
<-
api_class
(
api_type
=
"agents_list"
,
root_url
=
DCAT_URL
)
api
$
get_response
()
}
dcat_list_all_agents
()
dcat_get_agent_from_id
<-
function
(
agent_id
){
api
<-
api_class
(
api_type
=
"agent_id"
,
root_url
=
DCAT_URL
,
id
=
agent_id
)
api
$
get_response
()
}
dcat_get_agent_from_id
(
agent_id
=
'xx'
)
dcat_list_all_datasets
<-
function
(){
api
<-
api_class
(
api_type
=
"dataset_list"
,
root_url
=
DCAT_URL
)
api
$
get_response
()
}
dcat_list_all_datasets
()
dcat_get_distributions_from_dataset_id
<-
function
(
dataset_id
){
api
<-
api_class
(
api_type
=
"dataset_id_distributions"
,
root_url
=
DCAT_URL
,
id
=
dataset_id
)
api
$
get_response
()
}
dcat_get_distributions_from_dataset_id
(
dataset_id
=
'xx'
)
dcat_get_dataset_from_id
<-
function
(
dataset_id
){
api
<-
api_class
(
api_type
=
"dataset_id"
,
root_url
=
DCAT_URL
,
id
=
dataset_id
)
api
$
get_response
()
}
dcat_get_dataset_from_id
(
dataset_id
=
'xx'
)
dcat_get_dataset_from_identifier
<-
function
(
identifier
){
api
<-
api_class
(
api_type
=
"dataset_identifier"
,
root_url
=
DCAT_URL
,
id
=
identifier
)
api
$
get_response
()
}
dcat_get_dataset_from_identifier
(
identifier
=
'xx'
)
dcat_get_distributions_from_dataset_identifier
<-
function
(
identifier
){
api
<-
api_class
(
api_type
=
"dataset_identifier_distributions"
,
root_url
=
DCAT_URL
,
id
=
identifier
)
api
$
get_response
()
}
dcat_get_distributions_from_dataset_identifier
(
identifier
=
'xx'
)
dcat_list_all_distributions
<-
function
(){
api
<-
api_class
(
api_type
=
"distributions_list"
,
root_url
=
DCAT_URL
)
api
$
get_response
()
}
dcat_list_all_distributions
()
dcat_get_distribution_from_id
<-
function
(
distribution_id
){
api
<-
api_class
(
api_type
=
"distribution_id"
,
root_url
=
DCAT_URL
,
id
=
distribution_id
)
api
$
get_response
()
}
dcat_get_distribution_from_id
(
distribution_id
=
'xx'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment