public TemplateTriple AddTriple(TemplateTripleEnd subject, TemplateTriplePredicate predicate, TemplateTripleEnd @object) { TemplateTriple newTriple = new TemplateTriple(subject, predicate, @object); triples.Add(newTriple); return(newTriple); }
public TemplateTriple(TemplateTripleEnd subject, TemplateTriplePredicate predicate, TemplateTripleEnd @object) { if (subject == null) { throw new ArgumentNullException("subject"); } if (predicate == null) { throw new ArgumentNullException("predicate"); } if (@object == null) { throw new ArgumentNullException("object"); } this.tripleSubject = subject; this.triplePredicate = predicate; this.tripleObject = @object; }
public TemplateTriple AddTriple(TemplateTripleEnd subject, TemplateTriplePredicate predicate, Variable @object) { return(AddTriple(subject, predicate, new TemplateVariableEnd(@object))); }
public TemplateTriple AddTriple(Variable subject, TemplateTriplePredicate predicate, TemplateTripleEnd @object) { return(AddTriple(new TemplateVariableEnd(subject), predicate, @object)); }