I write my own document management system (DMS) in Java (available to me do not satisfy my needs).
Documents must be described in the DublinCore standard metadata standard. The easiest way to do this, in my opinion, is to assemble key-value pairs in an RDF model with an XML representation.
To save metadata for all documents, I have two ideas (document files will be stored in the file system):
- Store all metadata of all documents in a single XML file
- Create an XML file for each document and save it either in the file system or in the RDBMS (for example, in the core of the H2 database for Java), the database with the key will not solve this, because the keys for one document are not unique.
Since (many) documents are interconnected, the first approach may be better for data analysis, but the second approach can be much faster.
Which solution would you recommend? Or are there any better solutions?
Stephen
source
share