PyRDB2RDF provides RDFLib with an interface to relational databases as RDF stores. The underlying data is accessed via SQLAlchemy. It is mapped to RDF according to the specifications of RDB2RDF. The corresponding RDF graph is represented as an RDFLib graph.
pip install rdb2rdf
Serializing a database as N-Triples
import rdflib as _rdf import sqlalchemy as _sqla db_str = 'postgresql://testuser:testpasswd@localhost/testdb' db = _sqla.create_engine(db_str) graph = _rdf.Graph('rdb2rdf_dm') graph.open(db) print(graph.serialize(format='nt'))
- Updated references to Spruce projects (lang, iri, types) and Goose Types.
- Improved the setup script.
- Improved documentation.
- Added a missing installation dependency.
First public release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, Size & Hash SHA256 Hash Help||File Type||Python Version||Upload Date|
(16.7 kB) Copy SHA256 Hash SHA256
|Egg||2.7||Nov 24, 2014|
(21.4 kB) Copy SHA256 Hash SHA256
|Wheel||2.7||Nov 24, 2014|
(29.9 kB) Copy SHA256 Hash SHA256
|Source||None||Nov 24, 2014|