Beispiel #1
0
 public SparqlOrderCondition(SparqlFunctionCall sparqlFunctionCall, RdfQuery11Translator q)
 {
     this.q = q;
     // TODO: Complete member initialization
     getNode        = sparqlFunctionCall.Operator;
     AggregateLevel = sparqlFunctionCall.AggregateLevel;
 }
Beispiel #2
0
        public void ReadXml(XmlReader reader)
        {
            var field = SparqlQuery.SparqlClasses.Query.SparqlQuery.CreateByTypeAttribute(reader);

            sparqlExpression   = field as SparqlExpression;
            sparqlFunctionCall = field as SparqlFunctionCall;
            variableNode       = field as VariableNode;
        }
Beispiel #3
0
        public void ReadXml(XmlReader reader)
        {
            Enum.TryParse(reader.GetAttribute("Group"), out this.AggregateLevel);
            var readed = Query.SparqlQuery.CreateByTypeAttribute(reader);

            if (readed == null)
            {
                throw new Exception("readed null");
            }
            if ((this.sparqlFunctionCall = readed as SparqlFunctionCall) == null)
            {
                if ((this.sparqlExpression = readed as SparqlExpression) == null)
                {
                    if ((this.variableNode = readed as VariableNode) == null)
                    {
                        throw new Exception("readed null");
                    }
                }
            }
            else
            {
                var readed2 = Query.SparqlQuery.CreateByTypeAttribute(reader);
                if (readed2 == null)
                {
                    return;
                }
                if ((this.sparqlExpression = readed2 as SparqlExpression) == null)
                {
                    if ((this.variableNode = readed2 as VariableNode) == null)
                    {
                        throw new Exception("readed some else");
                    }
                }
                else
                {
                    var readed3 = Query.SparqlQuery.CreateByTypeAttribute(reader);
                    if (readed3 == null)
                    {
                        return;
                    }

                    if ((this.variableNode = readed3 as VariableNode) == null)
                    {
                        throw new Exception("readed some else");
                    }
                }
            }
        }
Beispiel #4
0
 public SparqlGroupConstraint(SparqlFunctionCall sparqlFunctionCall)
 {
     // TODO: Complete member initialization
     this.Constrained        = sparqlFunctionCall.TypedOperator;
     this.sparqlFunctionCall = sparqlFunctionCall;
 }