Connector Details
Type
Virtual machines, Single VM , BYOL
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
Big data, Analytics, DevOps
Bahrain Open Data Portal Connector
Connector Details
Type
Virtual machines, Single VM , BYOL
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
Big data, Analytics, DevOps
Overview
The Bahrain Open Data Connector enables seamless integration with the Bahrain Open Data Portal, providing access to catalog and dataset-related data for applications such as data analytics, visualization tools, or geographic information systems. The connector acts as a proxy to streamline data retrieval, supporting actions for dataset enumeration, record queries, data exports, and facet-based navigation.
Integration Overview
This document outlines each integration point, its purpose, configuration, and workflow support using the Bahrain Open Data Connector.
Supported Integration Action Points
Detailed Integration Documentation
Catalog Datasets Retrieval
Action
getDatasets
Purpose
Retrieves a comprehensive list of all datasets in the catalog, serving as the primary entry point for exploring available data.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Configure the connector for the Bahrain Open Data Portal.
2. Execute the getDatasets action to fetch a list of datasets.
3. Process the response to identify datasets (e.g., population-statistics) for further actions.
Catalog Exports Listing
Action
listExportFormats
Purpose
Lists all available export formats for the dataset catalog, helping users choose an appropriate format for data export.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Execute the listExportFormats action to retrieve available export formats.
2. Review the response to select a format (e.g., csv) for catalog export.
3. Proceed to the exportDatasets action for export.
Catalog Export by Format
Action
exportDatasets
Purpose
Exports the entire dataset catalog in a user-specified format, such as JSON, CSV, or XLSX, for versatile data use.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the listExportFormats action to identify supported formats.
2. Execute the exportDatasets action with format=csv and limit_export=10.
3. Save the exported CSV file for external analysis.
Catalog CSV Export
Action
exportCatalogCSV
Purpose
Exports the dataset catalog in CSV format with customizable parameters, allowing tailored data extraction for analysis or reporting.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Execute the exportCatalogCSV action with delimiter=,.
2. Save the CSV file containing catalog metadata.
3. Use the file for data analysis or reporting.
Catalog DCAT Export
Action
exportCatalogDCAT
Purpose
Exports catalog metadata in RDF/XML (DCAT-AP) format, enabling integration with metadata systems supporting DCAT standards.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Execute the exportCatalogDCAT action with dcat_ap_format=dcat_ap_ch.
2. Save the RDF/XML file.
3. Use the file for metadata integration with DCAT-compatible systems.
Catalog Facets Retrieval
Action
getDatasetsFacets
Purpose
Retrieves facet values for datasets to aid navigation, helping users filter datasets based on attributes like publisher.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity
Output
Workflow Example
1. Execute the getDatasetsFacets action with facet=publisher.
2. Review facet values (e.g., Information & eGovernment Authority) to refine dataset queries.
3. Use facets to filter results in subsequent actions.
Dataset Metadata Retrieval
Action
getDataset
Purpose
Retrieves detailed metadata for a specific dataset, including fields and endpoints to plan further data queries or exports.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the getDatasets action to identify a dataset (e.g., population-statistics).
2. Execute the getDataset action with the selected dataset_id.
3. Review metadata to plan record queries or exports.
Dataset Records Retrieval
Action
getRecords
Purpose
Queries records from a specific dataset, allowing users to access detailed data entries for analysis or visualization.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the getDataset action to select a dataset (e.g., population-statistics).
2. Execute the getRecords action with dataset_id=population-statistics and where=year:2020.
3. Process the response to display or analyze records.
Dataset Record Retrieval
Action
getRecord
Purpose
Retrieves a single record from a dataset, providing detailed information for a specific data entry.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the getRecords action to identify a record in population-statistics.
2. Execute the getRecord action with dataset_id=population-statistics and record_id=pop_001.
3. Review the record details for further processing.
Dataset Exports Listing
Action
listDatasetExportFormats
Purpose
Lists available export formats for a specific dataset, helping users select a format for dataset export.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the getDataset action to select a dataset (e.g., population-statistics).
2. Execute the listDatasetExportFormats action with dataset_id=population-statistics.
3. Review available formats (e.g., csv, parquet) for export.
Dataset Export by Format
Action
exportRecords
Purpose
Exports a dataset in a user-specified format, such as CSV or GeoJSON, for diverse applications.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the listDatasetExportFormats action to identify supported formats for population-statistics.
2. Execute the exportRecords action with dataset_id=population-statistics and format=csv.
3. Save the exported file for external use.
Dataset CSV Export
Action
exportRecordsCSV
Purpose
Exports a dataset in CSV format with customizable parameters, enabling tailored data extraction for specific needs.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Execute the exportRecordsCSV action with dataset_id=population-statistics and delimiter=,.
2. Save the CSV file containing dataset records.
3. Use the file for data analysis or reporting.
Dataset Parquet Export
Action
exportRecordsParquet
Purpose
Exports a dataset in Parquet format, ideal for efficient storage and processing in data analytics platforms.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Execute the exportRecordsParquet action with dataset_id=population-statistics.
2. Save the Parquet file.
3. Use the file for data processing in compatible systems.
Dataset GPX Export
Action
exportRecordsGPX
Purpose
Exports a dataset in GPX format, suitable for geographic data visualization and GPS applications.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Execute the exportRecordsGPX action with dataset_id=population-statistics and name_field=region.
2. Save the GPX file.
3. Use the file for geographic data visualization.
Dataset Facets Retrieval
Action
getRecordsFacets
Purpose
Retrieves facet values for records in a specific dataset, aiding in filtering and navigating dataset records effectively.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the getDataset action to select population-statistics.
2. Execute the getRecordsFacets action with dataset_id=population-statistics and facet=year.
2. Use facet values to refine record queries.
Dataset Attachments Retrieval
Action
getDatasetAttachments
Purpose
Retrieves files or attachments related to a specific dataset, providing access to supplementary data or resources.
Parameters
Configuration
Ensure the connector is configured with the appropriate environment variables for authentication and connectivity.
Output
Workflow Example
1. Use the getDataset action to select population-statistics.
2. Execute the getDatasetAttachments action with dataset_id=population-statistics.
3. Download attachments (e.g., population_report.pdf) for further use.
Workflow Creation with the Connector
Example Workflow: Exploring and Exporting Population Statistics
Retrieve Catalog Datasets:
Refine Dataset Exploration:
Execute the getRecordsFacets action with dataset_id=population-statistics and facet=year to filter records.
Query Dataset Records:
Use the getRecords action with dataset_id=population-statistics and where=year:2020 to fetch relevant records.
Export Dataset Data:
Retrieve Metadata and Attachments:
Export Catalog Metadata
Pricing
iSolution logo - white - transparent 250 px
Register To The Future Fabric Event
[forminator_form id=”14485″]
[forminator_form id=”14419″]
[forminator_form id=”14298″]
[forminator_form id=”13094″]