internal Func <SparqlResult, dynamic> Bound(VariableNode variable) { return((result) => result[variable.index] != null); }
internal Func <SparqlResult, dynamic> Lang(VariableNode variable) { return((result) => variable.Value == null ? null : ((ILiteralNode)variable.Value).Language); }
//internal IEnumerable<VariableNode> GetVariables(int p) //{ // return Variables.Values.Cast<>.Skip(p); //} internal SparqlExpressionAsVariable CreateExpressionAsVariable(VariableNode variableNode, SparqlExpression sparqlExpression) { return(new SparqlExpressionAsVariable(variableNode, sparqlExpression, this)); }
internal void SetSubjectIsDataFalse(VariableNode s) { throw new Exception(); }
internal static Func <IEnumerable <Action> > sPD(IStore store, SparqlNode sEntityCode, VariableNode pParameter, VariableNode oParameter) { throw new NotImplementedException(); }
internal static Func <IEnumerable <Action> > SpD(VariableNode sParameter, object pEntityCode, VariableNode oParameter) { throw new NotImplementedException(); }
internal static Func <IEnumerable <Action> > sPd(IStore store, SparqlNode sEntityCode, VariableNode predicate, SparqlNode d) { throw new NotImplementedException(); }
internal static Func <IEnumerable <Action> > sPO(PolarTripleStore store, SparqlNode sEntityCode, VariableNode pParameter, VariableNode oParameter) { return(() => store .GetTriplesWithSubject(sEntityCode.Value) .Select(triple => new Action(() => { pParameter.Value = triple.Predicate; oParameter.Value = triple.Object; }))); }
internal static Func <IEnumerable <Action> > sPo(PolarTripleStore store, SparqlNode sEntityCode, VariableNode predicateVariableNode, SparqlNode oEntityCode) { return(() => store .GetTriplesWithSubjectObject(sEntityCode.Value, oEntityCode.Value) .Select(triple => triple.Predicate) .Select(predicate => new Action(() => { predicateVariableNode.Value = predicate; }))); }
public static Func <IEnumerable <Action> > spD(IStore store, SparqlNode sNode, SparqlNode pNode, VariableNode objectNode) { return(() => store .GetTriplesWithSubjectPredicate(sNode.Value, pNode.Value) .Select(triple => triple.Object) .Select(node => new Action(() => { objectNode.Value = node; }))); }
internal static Func <IEnumerable <Action> > SpO(PolarTripleStore store, VariableNode s, SparqlNode pEntityCode, VariableNode o) { throw new NotImplementedException(); }
internal static Func <IEnumerable <Action> > spO(PolarTripleStore store, SparqlNode subjNode, SparqlNode pEntityCode, VariableNode obj) { return(() => store .GetTriplesWithSubjectPredicate(subjNode.Value, pEntityCode.Value) .Select(triple => triple.Object) .Select(newObj => new Action(() => { obj.Value = newObj; }))); }
internal static Func <IEnumerable <Action> > SPO(PolarTripleStore store, VariableNode sParameter, VariableNode pParameter, VariableNode oParameter, SparqlNode graph) { throw new NotImplementedException(); }