/// <summary> /// Default-ctor to build a validation result with the given properties /// </summary> internal RDFValidationResult(RDFResource sourceShape, RDFResource sourceConstraintComponent, RDFPatternMember focusNode, RDFResource resultPath, RDFPatternMember resultValue, List <RDFLiteral> resultMessages, RDFValidationEnums.RDFShapeSeverity severity = RDFValidationEnums.RDFShapeSeverity.Violation) : base() { this.SourceShape = sourceShape; this.SourceConstraintComponent = sourceConstraintComponent; this.FocusNode = focusNode; this.ResultPath = resultPath; this.ResultValue = resultValue; this.ResultMessages = resultMessages ?? new List <RDFLiteral>(); this.Severity = severity; }
/// <summary> /// Sets the severity level of this shape /// </summary> public RDFShape SetSeverity(RDFValidationEnums.RDFShapeSeverity shapeSeverity) { this.Severity = shapeSeverity; return(this); }