Skip to main content

CIM Database Uploader & Downloader

Project description

CIM-Loader

Automated scripts for

  • uploading and downloading CIM files from various databases
  • converting CIM files between common formats (XML, TTL, etc.)

Installation

The library can be pip installed from PyPi using pip install cim-loader

To install a specific branch, clone the repo and install it using

git clone https://github.com/PNNL-CIM-Tools/CIM-Loader.git -b develop
pip install -e CIM-Loader

Usage

To use CIM-Loader for bulk upload and download, set the connection parameters with the correct url / host / port / username / password and then invoke the associated upload / download method

from cimloader.databases import ConnectionParameters
from cimloader.uploaders import BlazegraphUploader
params = ConnectionParameters(url = "http://localhost:8889/bigdata/namespace/kb/sparql")
loader = BlazegraphUploader(params)

loader.upload_from_file(filepath='./test_models', filename='ieee13_seto.xml')

Databases Supported

Databases to be supported in first full release:

  • Blazegraph
  • Neo4J
  • GraphDB
  • MySQL

Support may be added in the future for:

  • Apache Tinkerpop
  • SQlite
  • AVEVA PI Historian
  • Others as requested

Attribution and Disclaimer

This software was created under a project sponsored by the U.S. Department of Energy’s Office of Electricity, an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.

Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

PACIFIC NORTHWEST NATIONAL LABORATORY operated by BATTELLE for the UNITED STATES DEPARTMENT OF ENERGY under Contract DE-AC05-76RL01830

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cim_loader-0.1.3a0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cim_loader-0.1.3a0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file cim_loader-0.1.3a0.tar.gz.

File metadata

  • Download URL: cim_loader-0.1.3a0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.15 Linux/6.5.0-1025-azure

File hashes

Hashes for cim_loader-0.1.3a0.tar.gz
Algorithm Hash digest
SHA256 0106e297b986af2b62ecf50a5173ac4cf72e9f14dccf780176a69ce19dba9a60
MD5 d738128eaf7a5155750b9cde61909b86
BLAKE2b-256 164f6e0b88b3f1484a5aaef5964569c3bc700e44204ba5e3f4463ba42c76ec01

See more details on using hashes here.

File details

Details for the file cim_loader-0.1.3a0-py3-none-any.whl.

File metadata

  • Download URL: cim_loader-0.1.3a0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.15 Linux/6.5.0-1025-azure

File hashes

Hashes for cim_loader-0.1.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 98dc5cb6eb44bb6d04be7003b4fdff98c9be5760b45114d3309489a4bca9896a
MD5 94e24419763abbb7e0c0aa0986db93e3
BLAKE2b-256 c30a31b17268c7d9ffd2702382dff042bfed629e1a78e48fa39187f246376495

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page