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

What is the MongoDB schema? #63

Open
afshar-mohammad opened this issue Jan 19, 2021 · 5 comments
Open

What is the MongoDB schema? #63

afshar-mohammad opened this issue Jan 19, 2021 · 5 comments

Comments

@afshar-mohammad
Copy link

afshar-mohammad commented Jan 19, 2021

Hi,

I want to use this with my own MongoDB, but I can't figure out the database structure needed for this to work. Is there a sample schema I can use?

Well, I fill my MongoDB credentials in the properties file, but that's just an empty database. What tables do I need there?

Thanks

@mborko
Copy link

mborko commented Oct 30, 2024

I think it is necessary to import your XML Files there. It would be nice if Europeana would give a better Documentation for that. I am searching for using an easy import mechanism in their metis-framework/metis-common repository.

Or have you found a solution?

@hugomanguinhas
Copy link

hello afshar-mohammad and mborko

thank you for your interest in the code we develop.

I wouldnt recommend using the MongoDB structure we have in place because 1) it is far from being the most optimal, 2) we are changing it as part of the work on the new version of the Record API. The code btw for the current MongoDB is on the api2 project but also has dependencies with corelib.

If you are interested on using this package, I would suggest forking and replacing the parts of the code that interface with the backend with your own... you would then be free to plug it to any kind of backend.

In fact, after seeing both your comments makes me realise that it would be beneficial for us to make this package as a framework that can be extended.. this is also beneficial for us since we are going to plug into a different Mongo structure soon. I will discuss this with my team.

Hope this helps.

Kind regards,
Hugo Manguinhas

@mborko
Copy link

mborko commented Oct 30, 2024

So you suggest using the RecordAPI, but how can I import my generated XML files there? Haven't found a doc for that. Please help!

@hugomanguinhas
Copy link

I wasnt suggesting using the Record API.

My suggestion would be to fork the code and replace with your backend part. If you already have XML files read for serving, you can work with a file directory and simply serve them from there.

@mborko
Copy link

mborko commented Nov 3, 2024

Sorry for misunderstanding. I only have the RDF Documents with the ProvidedCHO (e.g. https://sammlung.azw.at/werke/edm/0d256c4d-0e30-4a96-ab15-e49c00694203) Information. I have already set up a mongoDB instance, serving those documents as they are. The static html-files were all pointing to the https://api.europeana.eu/oai/record Link, which I changed already.

So my question is, what are the steps I need to change to get the Records Information shown properly, as described in the OAI Standard?

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