12345678910111213141516171819202122232425262728293031 |
- const mongoose = require('mongoose');
- const Schema = mongoose.Schema;
- const knowledgeBaseSchema = new Schema({
- knowledgeBaseID: { type: Number },
- ProblematicThing: { type: String },
- Subject: { type: String },
- Predicate: { type: String },
- Object: { type: String },
- FailedMertic: { type: String },
- Exception: { type: String },
- SubjectRelatedExceptions: [String],
- PredicateRelatedExceptions: [String],
- ObjectRelatedExceptions: [String],
- SameTripleSameProblematicThingRelatedExceptions: [String],
- SameTripleDifferentProblematicThingRelatedExceptions: [String],
- rootCause: [String]
- });
- const KnowledgeBase = mongoose.model("knowledgeBase", knowledgeBaseSchema);
- module.exports = KnowledgeBase;
|