public ClassAssertion(
     IOntology ontology,
     IClassExpression classExpression,
     INamedIndividual namedIndividual
     ) : base(ontology)
 {
     _classExpression = classExpression;
     _namedIndividual = namedIndividual;
 }
 protected PropertyAssertion(
     IOntology ontology,
     IPropertyExpression propertyExpression,
     INamedIndividual sourceIndividual
     ) : base(ontology)
 {
     _propertyExpression = propertyExpression;
     _sourceIndividual   = sourceIndividual;
 }
 public DataPropertyAssertion(
     IOntology ontology,
     IDataPropertyExpression dataPropertyExpression,
     INamedIndividual sourceIndividual,
     object targetValue
     ) : base(
         ontology,
         dataPropertyExpression,
         sourceIndividual)
 {
     _dataPropertyExpression = dataPropertyExpression;
     _targetValue            = targetValue;
 }
 public ObjectPropertyAssertion(
     IOntology ontology,
     IObjectPropertyExpression objectPropertyExpression,
     INamedIndividual sourceIndividual,
     object targetIndividual
     ) : base(
         ontology,
         objectPropertyExpression,
         sourceIndividual)
 {
     _objectPropertyExpression = objectPropertyExpression;
     _targetIndividual         = targetIndividual;
 }
示例#5
0
        public RoleIndividuals(
            CommonDomainObjects commonDomainObjects,
            Roles roles
            ) : base(
                "RoleIndividuals",
                commonDomainObjects,
                roles)
        {
            var role = roles.Role;
            var id   = commonDomainObjects.Id;

            Sponsor  = role.DeclareNamedIndividual("Sponsor");
            Borrower = role.DeclareNamedIndividual("Borrower");
            Lender   = role.DeclareNamedIndividual("Lender");
            Advisor  = role.DeclareNamedIndividual("Advisor");
            Sponsor.Value(id, DealRoleIdentifier.Sponsor);
            Borrower.Value(id, DealRoleIdentifier.Borrower);
            Lender.Value(id, DealRoleIdentifier.Lender);
            Advisor.Value(id, DealRoleIdentifier.Advisor);
        }