0

i am trying to convert relational db to rdf using rdflib , i tried code you can find it in this link https://pypi.org/project/rdb2rdf/ but does not work. i am using SQL server instead of PostgreSQL. after open() , i print length of graph and give me 0 !! can any one help

import rdflib as _rdf
import sqlalchemy as _sqla
db_str = 'postgresql://testuser:testpasswd@localhost/testdb'
db = _sqla.create_engine(db_str)
graph = _rdf.Graph()
graph.open(db)
print(graph.serialize(format='nt'))
alaa seb
  • 1
  • 2

0 Answers0