1
0

knowledgeBaseModel.js 949 B

1234567891011121314151617181920212223242526272829
  1. //© 2019 Dublin City University, Trinity College Dublin. All rights reserved. This material may not be reproduced, displayed, modified or distributed without the express prior written permission of the copyright holder.
  2. const mongoose = require('mongoose');
  3. const Schema = mongoose.Schema;
  4. const knowledgeBaseSchema = new Schema({
  5. ProblematicThing: [String],
  6. Subject: { type: String },
  7. Predicate: { type: String },
  8. Object: { type: String },
  9. FailedMertic: { type: String },
  10. Exception: { type: String },
  11. SubjectRelatedException: [String],
  12. PredicateRelatedException: [String],
  13. ObjectRelatedException: [String],
  14. RootProblematicThing : { type: String },
  15. RootCauseException: { type: String }
  16. });
  17. /*
  18. const knowledgeBaseSchema = new Schema({
  19. knowledgeBaseID: {type:Number},
  20. knowledgeBase:[knowledgeBaseContent]
  21. });
  22. */
  23. const KnowledgeBase = mongoose.model("knowledgeBase", knowledgeBaseSchema);
  24. module.exports = KnowledgeBase;