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

Example #10

Open
kerphi opened this issue Apr 17, 2021 · 6 comments
Open

Example #10

kerphi opened this issue Apr 17, 2021 · 6 comments

Comments

@kerphi
Copy link

kerphi commented Apr 17, 2021

Hello,

I'm a bit lost and I wonder if a basic usage example could be added to the README?

Maybe showing a simple RDF file for the first step, then the program using wbsync to convert the RDF to wikibase, then the result into wikibase, maybe with a screenshot showing the few generated Property/Item.

Thanks a lot for the good work.

@mistermboy
Copy link
Member

Hi @kerphi! Thanks for your comment.

There is README with an example in wbsync and in rdfsync.
I´m afraid there is not any screenshot of the results yet but hopefully, there will be soon.

If you need any help, please let us know :)

@kerphi
Copy link
Author

kerphi commented Apr 17, 2021 via email

@kerphi kerphi changed the title Exemple Example Apr 17, 2021
@mistermboy
Copy link
Member

mistermboy commented Apr 17, 2021

wbsync receives the RDF data before and after the modifications. For example, if you want to synchronize for the first time a
RDF file with a wikibase instance the source_content must be empty (because it´s the first time) and the target_content must be the content of the file. After setting that, wbsync calculates the differences between the original_content and the target_content in order to know which operations are needed to make the wikibase instance consistent with the RFD file.

About the notebook link I didn´t know about it, thanks!

@kerphi
Copy link
Author

kerphi commented Apr 17, 2021

Ok thanks a lot. That is more clear.

One more question: should the RDF respect a specific model to match wikibase model? Or is it possible to import any RDF then a specific mapping is maybe needed?

@mistermboy
Copy link
Member

Mmmm I´m not sure at all but I think wbsync deals with the mappings between the RDF and the Wikibase, so you don´t need to look for it.

Maybe @alejgh knows more about it

@almereyda
Copy link

There is also https://github.com/HerculesCRUE/ib-hercules-sync which can act as an example on how to use this library.

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

No branches or pull requests

3 participants