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); }
private void SetSession() { Session = GlobalOntologyConfiguration.CreateNewId(); }