View source: R/odata_entitylist_metadata_get.R
odata_entitylist_metadata_get | R Documentation |
odata_entitylist_metadata_get(
pid = get_default_pid(),
did = "",
url = get_default_url(),
un = get_default_un(),
pw = get_default_pw(),
retries = get_retries(),
odkc_version = get_default_odkc_version(),
orders = get_default_orders(),
tz = get_default_tz()
)
pid |
The numeric ID of the project, e.g.: 2. Default: Set default See |
did |
(chr) The name of the Entity List, internally called Dataset. The function will error if this parameter is not given. Default: "". |
url |
The ODK Central base URL without trailing slash. Default: Set default See |
un |
The ODK Central username (an email address).
Default: |
pw |
The ODK Central password.
Default: |
retries |
The number of attempts to retrieve a web resource. This parameter is given to Default: 3. |
odkc_version |
The ODK Central version as a semantic version string
(year.minor.patch), e.g. "2023.5.1". The version is shown on ODK Central's
version page Default: Set default See |
orders |
(vector of character) Orders of datetime elements for lubridate. Default:
|
tz |
A timezone to convert dates and times to. Read |
The Metadata Document describes, in EDMX CSDL, the schema of all the data you can retrieve from the OData Dataset Service in question. Essentially, these are the Dataset properties, or the schema of each Entity, translated into the OData format.
An S3 class odata_entitylist_metadata_get
and list
containing
the Metadata document following the DDMX CSDL standard
version
The EDMX version, e.g. "4.0"
complex_types
entity_types
containers
https://docs.getodk.org/central-api-odata-endpoints/#id2
https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/odata-csdl-xml-v4.01.html
Other entity-management:
entity_audits()
,
entity_changes()
,
entity_create()
,
entity_delete()
,
entity_detail()
,
entity_list()
,
entity_update()
,
entity_versions()
,
entitylist_detail()
,
entitylist_download()
,
entitylist_list()
,
entitylist_update()
,
odata_entitylist_data_get()
,
odata_entitylist_service_get()
## Not run:
# See vignette("setup") for setup and authentication options
# ruODK::ru_setup(svc = "....svc", un = "me@email.com", pw = "...")
ds <- entitylist_list(pid = get_default_pid())
dm1 <- odata_entitylist_metadata_get(pid = get_default_pid(), did = ds$name[1])
# Overview
print(dm1)
# Get all property names for an entity type
names(dm1$entity_types$Entities$properties)
# Check what properties are non-filterable
dm1$containers$trees$entity_sets$Entities$capabilities
# Get complex type definitions
dm1$complex_types$metadata$properties
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.