Data Interface
Impostor._load!
— Function_load!(provider::T, content::T, locale::Vector{T}) :: DataFrame where {T <: AbstractString}
_load!(provider::T, content::T, locale::T = "noloc") :: DataFrame where {T <: AbstractString}
Fetch from the data archive the content
associated to the provided locale
and provider
. Data is returned as a DataFrame for further manipulation. Optionally provide locale = "noloc
for the specific contents without any locale assocated to them.
Parameters
provider::AbstractString
: provider name, e.g."localization"
.content::AbstractString
: content name, e.g."street_prefix"
.locale::Union{AbstractString, Vector{AbstractString}} = "noloc"
: locale(s) associated to thecontent
andprovider
provided. Defaults to the"noloc"
placeholder for contents which are considered "locale-less".
Impostor.is_provider_loaded
— Functionis_provider_loaded(d::DataContainer, provider::AbstractString) :: Bool
Return whether the DataContainer d
has already loaded the information associated to the content c
.
Impostor.is_content_loaded
— Functionis_content_loaded(d::DataContainer, provider::T, content::T) :: Bool
Return whether the DataContainer d
has already loaded the information associated to the content c
from provider p
.
Impostor.is_locale_loaded
— Functionis_locale_loaded(d::DataContainer, provider::T, content::T, locale::T) :: Bool
Return whether the DataContainer d
has already loaded the information associated to the content c
from provider p
related to locale l
.