예제 #1
0
 public SparqlPathAlternative(SparqlPathTranslator p1, SparqlPathTranslator p2) : base(null)
 {
     this.alt = new List <SparqlPathTranslator>()
     {
         p1, p2
     };
 }
예제 #2
0
 public SparqlPathSequence(SparqlPathTranslator sparqlPathTranslator, SparqlPathTranslator sparqlPathTranslator1) : base(null)
 {
     seq = new List <SparqlPathTranslator>()
     {
         sparqlPathTranslator, sparqlPathTranslator1
     };
 }
예제 #3
0
 public SparqlPathManyTriple(ObjectVariants subject, SparqlPathTranslator pred, ObjectVariants @object, RdfQuery11Translator q)
 {
     this.predicatePath = pred;
     Subject            = subject;
     Object             = @object;
     this.q             = q;
     sVariableNode      = Subject as VariableNode;
     oVariableNode      = Object as VariableNode;
 }
예제 #4
0
 public SparqlPathZeroOrMany(SparqlPathTranslator path)
     : base(path.predicate)
 {
     this.path = path;
 }
예제 #5
0
 public SparqlPathNotTranslator(SparqlPathTranslator path)
     : base(path.predicate)
 {
     // TODO: Complete member initialization
     this.alt.Add(path);
 }
예제 #6
0
 internal override SparqlPathTranslator AddSeq(SparqlPathTranslator sparqlPathTranslator)
 {
     seq.Add(sparqlPathTranslator);
     return(this);
 }
 internal virtual SparqlPathTranslator AddSeq(SparqlPathTranslator sparqlPathTranslator)
 {
     return(new SparqlPathSequence(this, sparqlPathTranslator));
 }
 internal virtual SparqlPathTranslator AddAlt(SparqlPathTranslator sparqlPathTranslator)
 {
     return(new SparqlPathAlternative(this, sparqlPathTranslator));
 }
예제 #9
0
 internal override SparqlPathTranslator AddAlt(SparqlPathTranslator sparqlPathTranslator)
 {
     this.alt.Add(sparqlPathTranslator);
     return(this);
 }
예제 #10
0
 public override void ReadXml(XmlReader reader)
 {
     this.path = (SparqlPathTranslator)SparqlQuery.CreateByTypeAttribute(reader);
 }
예제 #11
0
 public SparqlPathMaybeOne(SparqlPathTranslator path) : base(path.predicate)
 {
     this.path = path;
 }
예제 #12
0
 public void ReadXml(XmlReader reader)
 {
     this.Subject       = (ObjectVariants)SparqlQuery.SparqlClasses.Query.SparqlQuery.CreateByTypeAttribute(reader);
     this.predicatePath = (SparqlPathTranslator)SparqlQuery.SparqlClasses.Query.SparqlQuery.CreateByTypeAttribute(reader);
     this.Object        = (ObjectVariants)SparqlQuery.SparqlClasses.Query.SparqlQuery.CreateByTypeAttribute(reader);
 }