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.1a0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

cim_loader-0.1.1a0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cim_loader-0.1.1a0.tar.gz
Algorithm Hash digest
SHA256 3e9bf07aee94a1588213761a99b95d3bf6069da4a3ead897ee49aff378b30cbe
MD5 332c81dbe615c952bd29db9d6bb6214b
BLAKE2b-256 ee2b526b3dd905f4bd01c718cb353cd6d0d52cc869ee841c6f3e95805b69d147

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cim_loader-0.1.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 7894b48dfecb2d4f5082a4c7a2f10987cf322f29b720b467a6847f52460fc13f
MD5 fddf746626da64d811b09c90df71b4f0
BLAKE2b-256 9f09884bdd97bc9798dfffbe942a911148d020a70bc2be60f73b99c3cdc2ad8c

See more details on using hashes here.

Supported by

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