Skip to main content

Simple RDF tools to load/modify/export RDF data using Pandas DataFrames

Project description

RDF parser:

  • Parses CIM RDF/XML data to pandas dataframe with 4 columns [ID, KEY, VALUE, INSTANCE_ID] (triplestore like)
  • The solution does not care about CIM version nor namespaces
  • Input files can be xml or zip files (containing one or mutiple xml files)
  • All files are parsed into one and same Pandas DataFrame, thus if you want single file or single data model, you need to filter on INSTANCE_ID column

To get started:

import pandas
from triplets import rdf_parser

path = "CGMES_v2.4.15_RealGridTestConfiguration_v2.zip"
data = pandas.read_RDF([path])

Result:

image

You can then query a dataframe of all same type elements and its parameters across all [EQ, SSH, TP, SV etc.] instance files, where parameters are columns and index is object ID-s

data.type_tableview("ACLineSegment")

image

Look into examples folders for more

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

triplets-0.0.6.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

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

triplets-0.0.6-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file triplets-0.0.6.tar.gz.

File metadata

  • Download URL: triplets-0.0.6.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for triplets-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a82301da64553a8efe9ee4ac57daeb93d252fde9b2658343048768e33bae3063
MD5 bb049b87b41ba29d45ffd2ee2ba89401
BLAKE2b-256 918d1497db345f915fe76864e55e37612c4b7be82de18ed594f49bd21503aade

See more details on using hashes here.

File details

Details for the file triplets-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: triplets-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for triplets-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c99955902f376819c71c0cc93a3721f44ce68a0223445bbd49729ad1ce44b6
MD5 f6c5a123a1604eb1d8b69f02e4643fd1
BLAKE2b-256 6bfa0e668b6d617fb61c8b35920113ef8b796566ec5804074f97bc09dfaeae9b

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