Exemple #1
0
        public BaseDirections()
        {
            Direction_LeftRight          = new OntologyNode("cc99d5365d564fd29d4f45b48af33029", "Left-Right");
            Direction_LeftRight.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Direction_LeftRight.ParentId = classes.Directions.Id;
            Direction_RightLeft          = new OntologyNode("061243fc4c134bd5800c2c33b70e99b2", "Right-Left");
            Direction_RightLeft.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Direction_RightLeft.ParentId = classes.Directions.Id;

            Direction_LeftRightIsObject = new OntologyEdge(Direction_LeftRight, relationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            Direction_LeftRightOfClass  = new OntologyEdge(classes.Directions, relationTypes.BaseClassOf, Direction_LeftRight);
            Direction_RightLeftIsObject = new OntologyEdge(Direction_RightLeft, relationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            Direction_RightLeftOfClass  = new OntologyEdge(classes.Directions, relationTypes.BaseClassOf, Direction_RightLeft);

            Directions = new List <OntologyNode>
            {
                Direction_LeftRight,
                Direction_RightLeft
            };

            NodeTypes = new List <OntologyEdge>
            {
                Direction_LeftRightIsObject,
                Direction_RightLeftIsObject
            };

            NodeClasses = new List <OntologyEdge>
            {
                Direction_LeftRightOfClass,
                Direction_RightLeftOfClass
            };
        }
        public BaseRegEx()
        {
            RegEx_Id          = new OntologyNode("7e84dc67a1234993b0ea62dffc2b895d", "Id");
            RegEx_Id.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            RegEx_Id.ParentId = classes.RegEx.Id;

            RegEx_IdIsObject = new OntologyEdge(RegEx_Id, relationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            RegEx_IdClass    = new OntologyEdge(classes.RegEx, relationTypes.BaseClassOf, RegEx_Id);


            RegEx = new List <OntologyNode>
            {
                RegEx_Id
            };

            NodeTypes = new List <OntologyEdge>
            {
                RegEx_IdIsObject
            };

            NodeClasses = new List <OntologyEdge>
            {
                RegEx_IdClass
            };
        }
        public ClassAttribute(OntologyNode classNode, OntologyNode attributeType, long minForw, long maxForw, long maxBackw)
        {
            ClassNode     = classNode;
            attributeType = AttributeType;

            ClassNodeToAttributeType = new OntologyEdge(AttributeType, baseRelationTypes.Describes, ClassNode);

            Min_Forw  = new OntologyRuleCardinality(ClassNodeToAttributeType, baseAttributeTypes.MinForw, minForw);
            Max_Forw  = new OntologyRuleCardinality(ClassNodeToAttributeType, baseAttributeTypes.MaxForw, maxForw);
            Max_Backw = new OntologyRuleCardinality(ClassNodeToAttributeType, baseAttributeTypes.MaxBackw, maxBackw);
        }
Exemple #4
0
        public OntologyRuleWeight(OntologyEdge edgeOfRule, OntologyNode weightAttributeType, long weight)
        {
            EdgeOfRule          = EdgeOfRule;
            WeightAttributeType = weightAttributeType;
            Weight = weight;

            WeightNode          = new OntologyNode(GlobalOntologyConfiguration.CreateNewId(), Weight.ToString());
            WeightNode.Val_Long = Weight;
            WeightNode.TypeId   = baseOntologyItemTypes.Attribute.Id;
            WeightNode.ParentId = WeightAttributeType.Id;

            WeightEdge = new OntologyEdge(edgeOfRule, baseRelationTypes.Defines, WeightNode);
        }
        public OntologyRuleCardinality(OntologyEdge edgeOfRule, OntologyNode cardinalityAttributeType, long cardinality)
        {
            EdgeOfRule = EdgeOfRule;
            CardinalityAttributeType = cardinalityAttributeType;
            Cardinality = cardinality;

            CardinalityNode          = new OntologyNode(GlobalOntologyConfiguration.CreateNewId(), cardinality.ToString());
            CardinalityNode.Val_Long = cardinality;
            CardinalityNode.TypeId   = baseOntologyItemTypes.Attribute.Id;
            CardinalityNode.ParentId = cardinalityAttributeType.Id;

            CardinalityEdge = new OntologyEdge(edgeOfRule, baseRelationTypes.Defines, CardinalityNode);
        }
        public BaseDataTypes()
        {
            BoolDType            = new OntologyNode("dd858f27d5e14363a5c33e561e432333", "Bool");
            BoolDType.TypeId     = baseOntologyItemTypes.DataTypeNode.Id;
            DateTimeDType        = new OntologyNode("905fda81788f4e3d83293e55ae984b9e", "DateTime");
            DateTimeDType.TypeId = baseOntologyItemTypes.DataTypeNode.Id;
            LongDType            = new OntologyNode("3a4f5b7bda754980933efbc33cc51439", "Long");
            LongDType.TypeId     = baseOntologyItemTypes.DataTypeNode.Id;
            RealDType            = new OntologyNode("a1244d0e187f46ee85742fc334077b7d", "Long");
            RealDType.TypeId     = baseOntologyItemTypes.DataTypeNode.Id;
            StringDType          = new OntologyNode("64530b52d96c4df186fe183f44513450", "Long");
            StringDType.TypeId   = baseOntologyItemTypes.DataTypeNode.Id;

            BoolIsDataType     = new OntologyEdge(BoolDType, relationTypes.IsOfType, baseOntologyItemTypes.DataTypeNode);
            DateTimeIsDataType = new OntologyEdge(DateTimeDType, relationTypes.IsOfType, baseOntologyItemTypes.DataTypeNode);
            LongIsDataType     = new OntologyEdge(LongDType, relationTypes.IsOfType, baseOntologyItemTypes.DataTypeNode);
            RealIsDataType     = new OntologyEdge(RealDType, relationTypes.IsOfType, baseOntologyItemTypes.DataTypeNode);
            StringIsDataType   = new OntologyEdge(BoolDType, relationTypes.IsOfType, baseOntologyItemTypes.DataTypeNode);

            DataTypes = new List <OntologyNode>
            {
                BoolDType,
                DateTimeDType,
                LongDType,
                RealDType,
                StringDType
            };

            NodeTypes = new List <OntologyEdge>
            {
                BoolIsDataType,
                DateTimeIsDataType,
                LongIsDataType,
                RealIsDataType,
                StringIsDataType
            };
        }
Exemple #7
0
        public BaseAttributeTypes()
        {
            WMI_ProcessorID          = new OntologyNode("a1b4945219dc4eaea000ef3802de35a9", "ProcessorID");
            WMI_ProcessorID.TypeId   = baseOntologyItemTypes.AttributeTypeNode.Id;
            WMI_ProcessorID.ParentId = dataTypes.StringDType.Id;

            WMI_BaseBoardSerial          = new OntologyNode("30b76a621b224f17b9a5ff665e08f35a", "BaseboardSerial");
            WMI_BaseBoardSerial.TypeId   = baseOntologyItemTypes.AttributeTypeNode.Id;
            WMI_BaseBoardSerial.ParentId = dataTypes.StringDType.Id;

            MinForw          = new OntologyNode("c60e083dc2944d5b8b0d5aadbc5587ac", "Min Forward");
            MinForw.TypeId   = baseOntologyItemTypes.AttributeTypeNode.Id;
            MinForw.ParentId = dataTypes.LongDType.Id;

            MaxForw          = new OntologyNode("8ca526856fe34e1d85c106f9e1aff2b8", "Max Forward");
            MaxForw.TypeId   = baseOntologyItemTypes.AttributeTypeNode.Id;
            MaxForw.ParentId = dataTypes.LongDType.Id;

            MaxBackw          = new OntologyNode("b5aabf43c36441a68964ac9406bd9c7e", "Max Backward");
            MaxBackw.TypeId   = baseOntologyItemTypes.AttributeTypeNode.Id;
            MaxBackw.ParentId = dataTypes.LongDType.Id;

            Weight          = new OntologyNode("f209eb0da51749a9bb6bc7cb5884f8f2", "Weight");
            Weight.TypeId   = baseOntologyItemTypes.AttributeTypeNode.Id;
            Weight.ParentId = dataTypes.LongDType.Id;

            RegEx          = new OntologyNode("22e93da2894a45d497d15e1711aa5657", "RegEx");
            RegEx.TypeId   = baseOntologyItemTypes.AttributeTypeNode.Id;
            RegEx.ParentId = dataTypes.StringDType.Id;

            WMI_BaseBoardSerialIsAttributeType = new OntologyEdge(WMI_BaseBoardSerial, relationTypes.IsOfType, baseOntologyItemTypes.AttributeTypeNode);
            WMI_ProcessorIDIsAttributeType     = new OntologyEdge(WMI_ProcessorID, relationTypes.IsOfType, baseOntologyItemTypes.AttributeTypeNode);
            MinForwIsAttributeType             = new OntologyEdge(MinForw, relationTypes.IsOfType, baseOntologyItemTypes.AttributeTypeNode);
            MaxForwIsAttributeType             = new OntologyEdge(MaxForw, relationTypes.IsOfType, baseOntologyItemTypes.AttributeTypeNode);
            MaxBackwIsAttributeType            = new OntologyEdge(MaxBackw, relationTypes.IsOfType, baseOntologyItemTypes.AttributeTypeNode);
            WeightIsAttributeType = new OntologyEdge(Weight, relationTypes.IsOfType, baseOntologyItemTypes.AttributeTypeNode);
            RegExIsAttributeType  = new OntologyEdge(RegEx, relationTypes.IsOfType, baseOntologyItemTypes.AttributeTypeNode);

            WMI_ProcessorIDIsString     = new OntologyEdge(WMI_ProcessorID, relationTypes.IsOfDataType, dataTypes.StringDType);
            WMI_BaseBoardSerialIsString = new OntologyEdge(WMI_BaseBoardSerial, relationTypes.IsOfDataType, dataTypes.StringDType);
            MinForwIsLong  = new OntologyEdge(MinForw, relationTypes.IsOfDataType, dataTypes.LongDType);
            MaxForwIsLong  = new OntologyEdge(MaxForw, relationTypes.IsOfDataType, dataTypes.LongDType);
            MaxBackwIsLong = new OntologyEdge(MaxBackw, relationTypes.IsOfDataType, dataTypes.LongDType);
            WeightIsLong   = new OntologyEdge(Weight, relationTypes.IsOfDataType, dataTypes.LongDType);
            RegExIsString  = new OntologyEdge(RegEx, relationTypes.IsOfDataType, dataTypes.StringDType);


            AttributeTypes = new List <OntologyNode>
            {
                WMI_BaseBoardSerial,
                WMI_ProcessorID,
                MinForw,
                MaxForw,
                MaxBackw,
                Weight,
                RegEx
            };

            NodeTypes = new List <OntologyEdge>
            {
                WMI_BaseBoardSerialIsAttributeType,
                WMI_ProcessorIDIsAttributeType,
                MinForwIsAttributeType,
                MaxForwIsAttributeType,
                MaxBackwIsAttributeType,
                WeightIsAttributeType,
                RegExIsAttributeType
            };

            NodeDataTypes = new List <OntologyEdge>
            {
                WMI_BaseBoardSerialIsString,
                WMI_ProcessorIDIsString,
                MinForwIsLong,
                MaxForwIsLong,
                MaxBackwIsLong,
                WeightIsLong,
                RegExIsString
            };
        }
Exemple #8
0
        public BaseLogStates()
        {
            Delete          = new OntologyNode("bb6a95553af640fc9fb0489d2678dff2", "Delete");
            Delete.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Delete.ParentId = baseClasses.Logstate.Id;
            Error           = new OntologyNode("cc71434176314b78b8f4385db073635f", "Error");
            Error.TypeId    = baseOntologyItemTypes.ObjectNode.Id;
            Error.ParentId  = baseClasses.Logstate.Id;
            Exists          = new OntologyNode("0b285306f64d4444bffe627a21687eff", "Exist");
            Exists.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Exists.ParentId = baseClasses.Logstate.Id;
            Insert          = new OntologyNode("a6df6ab2359045b1b32535334a2f574a", "Insert");
            Insert.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Insert.ParentId = baseClasses.Logstate.Id;

            ErrorIsObject  = new OntologyEdge(Error, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            ErrorOfClass   = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Error);
            DeleteIsObject = new OntologyEdge(Delete, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            DeleteOfClass  = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Delete);
            ExistsIsObject = new OntologyEdge(Exists, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            ExistsOfClass  = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Error);
            InsertIsObject = new OntologyEdge(Insert, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            InsertOfClass  = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Insert);



            Nothing          = new OntologyNode("95666887fb2a416e9624a48d48dc5446", "Nothing");
            NothingIsObject  = new OntologyEdge(Nothing, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            NothingOfClass   = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Nothing);
            Nothing.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Nothing.ParentId = baseClasses.Logstate.Id;

            Relation          = new OntologyNode("a46b74723c8e44a8b7853913b760db", "Relation");
            RelationIsObject  = new OntologyEdge(Relation, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            RelationOfClass   = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Relation);
            Relation.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Relation.ParentId = baseClasses.Logstate.Id;

            Success          = new OntologyNode("84251164265e4e0294b2ed7c40a02e56", "Success");
            SuccessIsObject  = new OntologyEdge(Success, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            SuccessOfClass   = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Success);
            Success.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Success.ParentId = baseClasses.Logstate.Id;

            Update          = new OntologyNode("2bf7e9d6fb9c40929b16ecc4fef7c072", "Update");
            UpdateIsObject  = new OntologyEdge(Update, baseRelationTypes.IsOfType, baseOntologyItemTypes.ObjectNode);
            UpdateOfClass   = new OntologyEdge(baseClasses.Logstate, baseRelationTypes.ParentClassOf, Update);
            Update.TypeId   = baseOntologyItemTypes.ObjectNode.Id;
            Update.ParentId = baseClasses.Logstate.Id;

            LogStates = new List <OntologyNode>
            {
                Delete,
                Error,
                Exists,
                Insert,
                Nothing,
                Relation,
                Success,
                Update
            };

            NodeTypes = new List <OntologyEdge>
            {
                DeleteIsObject,
                ErrorIsObject,
                ExistsIsObject,
                NothingIsObject,
                RelationIsObject,
                SuccessIsObject,
                UpdateIsObject
            };

            ClassInstances = new List <OntologyEdge>
            {
                DeleteOfClass,
                ErrorOfClass,
                ExistsOfClass,
                NothingOfClass,
                RelationOfClass,
                SuccessOfClass,
                UpdateOfClass
            };
        }
        public ClassItems()
        {
            Root                = new OntologyNode("49fdcd27e1054770941d7485dcad08c1", "Root");
            RootIsClass         = new OntologyEdge(Root, relationTypes.IsOfType, ontologyItemTypes.ClassNode);
            System              = new OntologyNode("665dd88b792e4256a27a68ee1e10ece6", "System");
            SystemIsClass       = new OntologyEdge(System, relationTypes.IsOfType, ontologyItemTypes.ClassNode);
            Logstate            = new OntologyNode("1d9568afb6da49908f4d907dfdd30749", "Logstate");
            LogStateIsClass     = new OntologyEdge(Logstate, relationTypes.IsOfType, ontologyItemTypes.ClassNode);
            Directions          = new OntologyNode("3d1dc6cfb96449869808f39b7c5c3907", "Direction");
            DirectionsIsClass   = new OntologyEdge(Directions, relationTypes.IsOfType, ontologyItemTypes.ClassNode);
            Server              = new OntologyNode("d7a03a35875142b48e0519fc7a77ee91", "Server");
            ServerIsClass       = new OntologyEdge(Server, relationTypes.IsOfType, ontologyItemTypes.ClassNode);
            Ontology            = new OntologyNode("eb411e2ff93d4a5ebbbac0b5d7ec0197", "Ontology");
            OntologyIsClass     = new OntologyEdge(Ontology, relationTypes.IsOfType, ontologyItemTypes.ClassNode);
            OntologyRule        = new OntologyNode("8f54e8867a97479ca667e18c1ad74b5b", "Ontology Rule");
            OntologyRuleIsClass = new OntologyEdge(OntologyRule, relationTypes.IsOfType, ontologyItemTypes.ClassNode);
            RegEx               = new OntologyNode("7e84dc67a1234993b0ea62dffc2b895d", "Regular Expressions");
            RegExIsCalss        = new OntologyEdge(RegEx, relationTypes.IsOfType, ontologyItemTypes.ClassNode);

            Root_System           = new OntologyEdge(Root, relationTypes.BaseClassOf, System);
            System.TypeId         = ontologyItemTypes.ClassNode.Id;
            System.ParentId       = Root.Id;
            System_Logstate       = new OntologyEdge(System, relationTypes.BaseClassOf, Logstate);
            Logstate.TypeId       = ontologyItemTypes.ClassNode.Id;
            Logstate.ParentId     = System.Id;
            System_Directions     = new OntologyEdge(System, relationTypes.BaseClassOf, Directions);
            Directions.TypeId     = ontologyItemTypes.ClassNode.Id;
            Directions.ParentId   = System.Id;
            System_Server         = new OntologyEdge(System, relationTypes.BaseClassOf, Server);
            Server.TypeId         = ontologyItemTypes.ClassNode.Id;
            Server.ParentId       = System.Id;
            System_Ontology       = new OntologyEdge(System, relationTypes.BaseClassOf, Ontology);
            Ontology.TypeId       = ontologyItemTypes.ClassNode.Id;
            Ontology.ParentId     = System.Id;
            Ontology_OntologyRule = new OntologyEdge(Ontology, relationTypes.BaseClassOf, OntologyRule);
            OntologyRule.TypeId   = ontologyItemTypes.ClassNode.Id;
            OntologyRule.ParentId = Ontology.Id;
            System_RegEx          = new OntologyEdge(System, relationTypes.BaseClassOf, RegEx);
            RegEx.TypeId          = ontologyItemTypes.ClassNode.Id;
            RegEx.ParentId        = System.Id;

            Classes = new List <OntologyNode>
            {
                Root,
                System,
                Logstate,
                Directions,
                Server,
                Ontology,
                OntologyRule,
                RegEx
            };

            ClassTypes = new List <OntologyEdge>
            {
                RootIsClass,
                SystemIsClass,
                LogStateIsClass,
                DirectionsIsClass,
                ServerIsClass,
                OntologyIsClass,
                OntologyRuleIsClass,
                RegExIsCalss
            };

            ClassInheritances = new List <OntologyEdge>
            {
                Root_System,
                System_Logstate,
                System_Directions,
                System_Server,
                System_Ontology,
                Ontology_OntologyRule,
                System_RegEx
            };
        }