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:
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")
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.8.tar.gz
(37.9 kB
view details)
Built Distribution
triplets-0.0.8-py3-none-any.whl
(23.8 kB
view details)
File details
Details for the file triplets-0.0.8.tar.gz
.
File metadata
- Download URL: triplets-0.0.8.tar.gz
- Upload date:
- Size: 37.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b09934bf31ffe901375fa79984c917ec90cca180cdf35a854cdfdaffb03d24ce |
|
MD5 | aa0aac91f964d8ae0f6544397d7547a0 |
|
BLAKE2b-256 | a83a381c1bd960b42e9599ff20e2f69b0036c73a88f1d6b759d6267aa6df4a28 |
File details
Details for the file triplets-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: triplets-0.0.8-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29462423d8c323c34896b044ce1e9e7fda6fa65c764a1288c7d4d5acb9ce9ffe |
|
MD5 | 5fc20bc76a676dd3c535e095e61f0ab2 |
|
BLAKE2b-256 | 29205086a1b9ac0305eb896d47014caac2f6a2182b4c10979bb1bd953011c9c9 |