1234567891011121314151617181920212223242526272829 |
- //© 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.
- const mongoose = require('mongoose');
- const Schema = mongoose.Schema;
- const knowledgeBaseSchema = new Schema({
- ProblematicThing: [String],
- Subject: { type: String },
- Predicate: { type: String },
- Object: { type: String },
- FailedMertic: { type: String },
- Exception: { type: String },
- SubjectRelatedException: [String],
- PredicateRelatedException: [String],
- ObjectRelatedException: [String],
- RootProblematicThing : { type: String },
- RootCauseException: { type: String }
- });
- /*
- const knowledgeBaseSchema = new Schema({
-
- knowledgeBaseID: {type:Number},
- knowledgeBase:[knowledgeBaseContent]
- });
- */
- const KnowledgeBase = mongoose.model("knowledgeBase", knowledgeBaseSchema);
- module.exports = KnowledgeBase;
|