Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

How does the library work? #2

Open
virajpwr opened this issue Nov 25, 2021 · 1 comment
Open

How does the library work? #2

virajpwr opened this issue Nov 25, 2021 · 1 comment

Comments

@virajpwr
Copy link

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'))

How does this code work?

@ChrisDelClea
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants