RDF support for Pandas
Project description
RdfPandas is a module providing RDF support for Pandas. It consists initially of a simple function for graph conversion to create RDFLib Graph data from Pandas DataFrame.
The graph data can then be serialized using RDFLib serialize method on the graph.
Getting Started
For more information about Resource Description Framework (RDF) and Pandas see:
Pandas: https://pandas.pydata.org/
Prerequisites
You will need Python 3 to use Pandas and RdfPandas.
Installation
pip install rdfpandas
Usage
Getting RDF out of the DataFrame
import rdfpandas as pd import rdflib df = pd.DataFrame() g = to_graph(df) s = g.serialize(format='turtle')
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
rdfpandas-0.1.1.tar.gz
(2.5 kB
view hashes)
Built Distributions
Close
Hashes for rdfpandas-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb3ca64790ed62928739da512b9bd28737b3bce5c2852303b0c2ccbb76372ea |
|
MD5 | ffd9b15369381ee3e86c49d09f3816d9 |
|
BLAKE2b-256 | d78c60988338c804b8c7a166fed9e281bf0c7c79a3a24cb9514885958b1557ce |
Close
Hashes for rdfpandas-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ecde2b7f618d7d10512ff19510cf758a8384701ef48cf46bc179ba64dcc1b8e |
|
MD5 | d96441575d105e1dfbd1e3dbeafc2b70 |
|
BLAKE2b-256 | c08274ed72758e56732a9b8654f48a512ff7eb4f68e7c95f586461f5663772b8 |