Skip to content
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

dataset examples file #1289

Merged
merged 3 commits into from
Jun 28, 2021
Merged

dataset examples file #1289

merged 3 commits into from
Jun 28, 2021

Conversation

nicholascar
Copy link
Member

A short examples file showing how to use Dataset. We just don't have one!

Copy link
Member

@white-gecko white-gecko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It currently fails with

Traceback (most recent call last):
  File "datasets.py", line 67, in <module>
    print(d.serialize(format="trig").decode().strip())
AttributeError: 'str' object has no attribute 'decode'

as the serialize methods return strings in our current master branch. So I think the example should work on the current master branch.

@white-gecko
Copy link
Member

So far I have only used ConjunctiveGraph not Dataset why do we have both? This might confuse people to decide which one to choose.

@nicholascar
Copy link
Member Author

Yes, Dataset is a very small enhancement to ConjunctiveGraph that is, I think, confusing. I wasn't involved in RDFlib years ago when it was made but I propose de-duplicating CJ & Dataset. I'm not sure which class people would prefer to keep. I think this might be subject to a poll.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.523% when pulling 760c534 on dataset_example into 4503405 on master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.523% when pulling 760c534 on dataset_example into 4503405 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.523% when pulling 760c534 on dataset_example into 4503405 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.523% when pulling 760c534 on dataset_example into 4503405 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.523% when pulling 760c534 on dataset_example into 4503405 on master.

@white-gecko
Copy link
Member

If Dataset is an enhancement of ConunctiveGraph, then we should make both classes do the same, and make it just a naming decision. If we cam to a conclusion which name to take, we throw a warning, when the other one is used, telling that it is the same as the one we chose and telling that the other one is deprecated and will be removed some day.

@nicholascar
Copy link
Member Author

@white-gecko @ashleysommer: You can see in PR #1296 that I'm proceeding through all the docs. If you can approve this example, I'll then tackle the comment above about "we should make both classes do the same". I think there are only a couple of differences between the two classes but I'll study this properly in the other PR.

@nicholascar
Copy link
Member Author

Merging as the test failure is the false "assign address" one

@nicholascar nicholascar merged commit 5d77b14 into master Jun 28, 2021
@nicholascar nicholascar deleted the dataset_example branch June 28, 2021 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants