コード例 #1
0
 public ObjectAttribute(OntologyNode objectNode, OntologyNode classNode, OntologyNode attributeTypeNode, long weight)
 {
     ObjectNode        = objectNode;
     ClassNode         = classNode;
     AttributeTypeNode = attributeTypeNode;
     AttributeEdge     = new OntologyEdge(AttributeTypeNode, relationTypes.Describes, objectNode);
     Weight            = new OntologyRuleWeight(AttributeEdge, attributeTypes.Weight, weight);
 }
コード例 #2
0
        public BaseOntologyItemTypes()
        {
            ClassNode         = new OntologyNode("cc6054d58f1741f2b546dd0f6185183a", "Class");
            ObjectNode        = new OntologyNode("1498cf175a21443ca2e49d089facc736", "Object");
            AttributeTypeNode = new OntologyNode("397f21b710d54a099ac35a7d2b65508f", "AttributeType");
            RelationTypeNode  = new OntologyNode("397f21b710d54a099ac35a7d2b65508f", "RelationType");
            DataTypeNode      = new OntologyNode("ec5e1ecf15744857b2bac856a5232712", "DataType");
            Attribute         = new OntologyNode("07535eef4d7f4d8181998d00625ab1c6", "Ontology-Attribute");

            OntologyTypes = new List <OntologyNode> {
                ClassNode, ObjectNode, AttributeTypeNode, RelationTypeNode, DataTypeNode, Attribute
            };
        }
コード例 #3
0
 public OntologyEdge(OntologyNode NodeLeft, OntologyNode RelationType)
 {
     this.NodeLeft     = NodeLeft;
     this.RelationType = RelationType;
 }
コード例 #4
0
 public OntologyEdge(OntologyEdge EdgeLeft, OntologyNode RelationType, OntologyEdge EdgeRight)
 {
     this.EdgeLeft     = EdgeLeft;
     this.EdgeRight    = EdgeRight;
     this.RelationType = RelationType;
 }