Giter Site home page Giter Site logo

pyrdb2rdf's People

Contributors

nisavid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyrdb2rdf's Issues

How does the library work?

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?

quote is no longer a part of base urllib but urllib.parse

Running:
graph = _rdf.Graph('rdb2rdf_dm')
results in

ImportError: cannot import name 'quote' from 'urllib' (C:\ProgramData\Anaconda3\lib\urllib_init_.py)

Possible solution:
update _common.py
from
from urllib import quote as _pct_encoded
to
from urllib.parse import quote as _pct_encoded

Using rdf2rdf with existing databases raises exception

Trying to use rdb2rdf with an existing database I get:

sqlalchemy.exc.ArgumentError: WARNING: when configuring property 'value' on 
Mapper|value_data|value_data, column 'value' conflicts with property '<RelationshipProperty at 
0x4be1710; value>'. To resolve this, map the column to the class under a different name in the 
'properties' dictionary.  Or, to remove all awareness of the column entirely (including its availability as a 
foreign key), use the 'include_properties' or 'exclude_properties' mapper arguments to control 
specifically which table columns get mapped.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.