Skip to content

Checking if all Python tutorials work in the latest version #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Cheukting opened this issue Jul 24, 2020 · 3 comments
Open

Checking if all Python tutorials work in the latest version #22

Cheukting opened this issue Jul 24, 2020 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed mentored-sprint multi-contributors This task require multiple contributors

Comments

@Cheukting
Copy link
Contributor

Cheukting commented Jul 24, 2020

We have made our TerminusDB more powerful and ready for sharing data and collaborating on Hub. It means that the old python code may not work in the latest TerminusDB and Python client. 😞 We need people to help to check if the tutorial codes are good 👍🏻 Could you help us out? 🙏🏻

  1. Install the latest versions of TerminusDB following the instructions here. You will need to have Docker. 🐳

  2. Create a new Python environment (optional), install the Python client (pip install terminusdb-client[dataframe]) and Jupyter notebook (pip install notebook)

  3. Pick a tutorial (folder) that you want to test form here: https://github.com/terminusdb/terminus-tutorials

  4. Check the comment below that no one is working on it, then you can claim it to yours. Make sure you let people know by writing a comment 💬

  5. If there's any problem, open a new issue and let us know. In the issue, please stay clearly which versions of the database and the client you are using (latest as of 4th October 2020 is Terminusdb v3.0.7 and Python client 0.4.0), and the file that fail ❌

  6. (optional) update the file and send a PR to close the issue in step 5.

  7. If nothing's wrong, comment below to say which file you checked and it's a-okay 👌🏻 Also, stay clearly which versions of the database and the client you are using.

Thanks a lot ☺️

@Cheukting Cheukting added good first issue Good for newcomers help wanted Extra attention is needed EuroPython2020 multi-contributors This task require multiple contributors labels Jul 24, 2020
@jametron
Copy link

I am working on it

@jametron
Copy link

Dublin voting example with python client does not add the csv data to the database. Running the script returns many dicts that include possible error messages in the following format:

"@type":"vio:InstanceCardinalityRestrictionViolation",
"vio:cardinality": {"@type":"xsd:string", "@value":"1"},
"vio:message": {
"@type":"xsd:string",
"@value":"Cardinality does not match for restrction: terminusdb://admin/dublin_voting/schema#similar_to_cardinality"

@kevinchekovfeeney
Copy link
Contributor

Thanks Jametron - there was a bug in the schema - it should be max(2) not cardinality(2) - it fails because of self-similarity measures. I fixed the schema now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed mentored-sprint multi-contributors This task require multiple contributors
Projects
None yet
Development

No branches or pull requests

3 participants