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

Managing ontology refreshes #58

Open
RichSimon opened this issue Dec 22, 2020 · 1 comment
Open

Managing ontology refreshes #58

RichSimon opened this issue Dec 22, 2020 · 1 comment
Labels
question Further information is requested

Comments

@RichSimon
Copy link

Great work on this. We've got the no-AEON branch working to import an ontology from Protege into Mediawiki and we're starting to think about how to manage updates as they happen.

Unless there's a better idea, we're thinking about assigning a unique set of [[Category:]] or [[Property::]] to a taxonomy import event (say name, version, title) so we can address the ones that need to be updated. It might be as simple, to start, as mass deleting the old ones before refreshing the new ones.

Is there a better way we're missing to do this? #enhancement

@andrecastro0o
Copy link
Owner

Hello @RichSimon. Thank your for interest.

You no longer need to use the non-aeon branch. You can use the master branch now. Non-aeon branch has been merged to master in c8b5480

Now about your question: you want the changes you make on the developing ontology, to also change the wiki property and category definitions, right?
I do not see an issue there. If you update a few terms in the ontology, and run the ontology2smw with the updated ontology, only the terms which have changed will be edited. The terms that remain the same, will not be changed, in other words the MW api wont perform the edit.

The only possible issue I see is with ontology terms which get deleted from previous to the current version. ontology2smw does not perform deletion, as it knows nothing about the previous version of the ontology. You must do the deletion yourself. However you can look at the history diff of the MediaWiki:Smw_import_yourontology page to see what terms were removed, between the latest edit, and previous ones.

Hope it helps. But let me know if I am misreading your question.

@andrecastro0o andrecastro0o added the question Further information is requested label Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants