Example #1
0
 /// <summary>
 /// Adds the given sequence step to the path
 /// </summary>
 public RDFPropertyPath AddSequenceStep(RDFPropertyPathStep sequenceStep)
 {
     if (sequenceStep != null)
     {
         this.Steps.Add(sequenceStep.SetOrdinal(this.Steps.Count)
                        .SetFlavor(RDFQueryEnums.RDFPropertyPathStepFlavors.Sequence));
         this.IsEvaluable = true;
     }
     return(this);
 }
Example #2
0
        /// <summary>
        /// Adds the given sequence step to the path
        /// </summary>
        public RDFPropertyPath AddSequenceStep(RDFPropertyPathStep sequenceStep)
        {
            if (sequenceStep != null)
            {
                #region Steps Update
                this.Depth++;
                this.Steps.Add(sequenceStep.SetOrdinal(this.Steps.Count)
                               .SetFlavor(RDFQueryEnums.RDFPropertyPathStepFlavors.Sequence));
                #endregion

                #region Evaluability Guard
                if (this.Start is RDFVariable || this.End is RDFVariable || this.Depth > 1)
                {
                    this.IsEvaluable = true;
                }
                #endregion
            }
            return(this);
        }
Example #3
0
        /// <summary>
        /// Adds the given sequence step to the path
        /// </summary>
        public RDFPropertyPath AddSequenceStep(RDFPropertyPathStep sequenceStep)
        {
            if (sequenceStep != null)
            {
                #region Steps Update
                this.Depth++;
                this.Steps.Add(sequenceStep.SetOrdinal(this.Steps.Count)
                               .SetFlavor(RDFQueryEnums.RDFPropertyPathStepFlavors.Sequence));
                #endregion

                #region Evaluability Guard
                if (this.Start is RDFVariable || this.End is RDFVariable || this.Depth > 1)
                {
                    this.IsEvaluable = true;
                    RDFQueryEvents.RaiseGENERICQueryEvaluation("AddSequenceStep: non-ground property path detected, evaluability granted or confirmed.");
                }
                else
                {
                    RDFQueryEvents.RaiseGENERICQueryEvaluation("AddSequenceStep: ground property path detected, evaluability not granted.");
                }
                #endregion
            }
            return(this);
        }