Class ValidationQuery

    • Field Detail

      • namespaces

        private final java.util.Set<Namespace> namespaces
      • query

        private java.lang.String query
      • targetIndex

        private int targetIndex
      • valueIndex

        private int valueIndex
      • propertyShapeWithValue

        private boolean propertyShapeWithValue
      • propertyShapeWithValue_validationReport

        private boolean propertyShapeWithValue_validationReport
      • targetIndex_validationReport

        private int targetIndex_validationReport
      • valueIndex_validationReport

        private int valueIndex_validationReport
      • constraintComponent_validationReport

        private ConstraintComponent constraintComponent_validationReport
      • shape

        private Shape shape
    • Method Detail

      • union

        public static ValidationQuery union​(ValidationQuery a,
                                            ValidationQuery b,
                                            boolean skipValueCheck)
        Creates the SPARQL UNION of two ValidationQuery objects.
        Parameters:
        a - The first ValidationQuery.
        b - The second ValidationQuery.
        skipValueCheck - Skips checks that the two ValidationQuery object are using the same value. This is useful if the ValidationQuery is guaranteed to not use the current value because shiftToNodeShape() or popTargetChain() will always called on the returned ValidationQuery
        Returns:
      • getQuery

        public java.lang.String getQuery()
      • getFullQueryString

        private java.lang.String getFullQueryString()
      • getValueVariable

        private java.lang.String getValueVariable​(boolean forValidationReport)
      • getTargetVariable

        private java.lang.String getTargetVariable​(boolean forValidationReport)
      • popTargetChain

        public void popTargetChain()
      • shiftToNodeShape

        public void shiftToNodeShape()
      • shiftToPropertyShape

        public void shiftToPropertyShape()
      • makeCurrentStateValidationReport

        public void makeCurrentStateValidationReport()