Skip to main content

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:

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)

Uploaded Source

Built Distributions

rdfpandas-0.1.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

rdfpandas-0.1.1-py2.py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 2 Python 3

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