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

💡 Tutorial-like jupyter notebooks, e.g. How to add children of concepts in a collection to the collection? #52

Open
markdoerr opened this issue Feb 20, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@markdoerr
Copy link

Description

children of concepts should be automatically added to the collection
( or is this already implemented ?)

@dalito
Copy link
Member

dalito commented Feb 20, 2024

This is not implemented.

On what use case where you thinking? Should this be a way to flatten a hierarchy to a list and access the list as collection?

@markdoerr
Copy link
Author

just to make collections more convenient: one only needs add the top-most concept (in stead of entering every single narrower concept) in the list, the hierarchy can still be kept.
To avoid unintentional additions, we could introduce a syntax, like v4c-bc:0000001+ (addition of a plus at the end of the IRI) to indicate, please also include narrower terms as specified in the vocabulary.

@dalito
Copy link
Member

dalito commented Feb 20, 2024

We need not only Excel -> SKOS but also SKOS -> Excel which may get difficult for this convenience feature. Another detail to consider: skos:broader / skos:narrower may form circles that need to be handled. Both are not transitive by default. This will get too complex in my opinion.

Another way is to find the narrower concepts and add them to a collection via a separate script. With the help of a SPARQL query or by filtering the RDF triples the concepts missing in a collection can be found easily. An update of the collection turtle file can then be submitted as PR. A new Excel file with the extended collection will be automatically build by the pipeline.

Maybe we should add some jupyter notebooks that show how to do such things with rdflib.

@markdoerr
Copy link
Author

I see your valid point, @dalito,
and I think a separate script (or jupyter notebook) will certainly help - it is a good idea, worth putting on the list of future features.

@dalito dalito changed the title 💡 collections: children of concepts should be automatically added to the collection 💡 Tutorial-like jupyter notebooks, e.g. How to add children of concepts in a collection to the collection? Mar 21, 2024
@dalito dalito added good first issue Good for newcomers documentation Improvements or additions to documentation labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants