Replies: 2 comments
-
hey @NurElHuda thanks for raising this concern, I will answer your questions, however, that doesn't mean we are not open to changing the structure if we found a better solution, so feel free to suggest improvement over the current solution, or maybe provide an entirely different approach that may work better for this project. cc @dzcode-io/maintainers @dzcode-io/members
Having one big JSON file is not scalable for contribution, if we have two or more open PRs for adding new data to the file, we will end up with conflict whenever we merge each one. The solution for that is having directories instead. this way, we can also better Git blame (or credit) whoever modified that portion of the data.
Maybe you didn't understand the way we handle data correctly here 😅, we don't actually consume the directories at all in the produced package, we instead consume a
Right, these names are not necessarily official codes, and they are not meant to be, they instead act as an identifier for each node, this is much needed if you want to store this in a database (or we export it into an SQL database file), or consider a case where, for example, we build a website that uses kuliya, and has to create a Page URL to Electrical engineering department of UMKB, we can write something like: https://www.example-academy.dz/UMKB/FST/GE/ETECH/...you-can-dive-deeper.
I guess I answered that as part of the first question's answer. Still, I don't have a specific way to do the search here, I thought we could just go for a library that searches JSON file content? or do we have to build our custom solution? |
Beta Was this translation helpful? Give feedback.
-
@ZibanPirate Thank you for the through answer. For the department names, I found that the used acronyms pattern is different for different scenarios:
I am trying to create a script that scrap and create the nested folders, so I have to set one pattern for all possibilities. For the search, I don't have an idea, I will look for possible solution.
Or something like this. |
Beta Was this translation helpful? Give feedback.
-
@ZibanPirate @Fcmam5
I was wondering why the structure of the data is set as a tree of directories with info.json leaf instead of one main JSON file that contains all data.
So.. what do you guys say? I am happy to convert the available data into a JSON file, than continue with the rest.
Or is there other reasons for why the data is stored like this that I am missing?
Beta Was this translation helpful? Give feedback.
All reactions