예제 #1
0
        public static SparqlExpression operator -(SparqlExpression e)
        {
            //   e.SetExprType(ExpressionTypeEnum.numeric);
            var uminus = new SparqlUnaryExpression(o => - o, e);

            //     uminus.SetExprType(e);
            return(uminus);
        }
예제 #2
0
        public static SparqlExpression operator !(SparqlExpression e)
        {
            //    e.SetExprType(ObjectVariantEnum.@Bool);
            var opLogicalNot = new SparqlUnaryExpression(o => !o, e);

            //opLogicalNot.SetExprType(ObjectVariantEnum.Bool);

            return(opLogicalNot);
        }