Example #1
0
        public TemplateTriple AddTriple(TemplateTripleEnd subject, TemplateTriplePredicate predicate, TemplateTripleEnd @object)
        {
            TemplateTriple newTriple = new TemplateTriple(subject, predicate, @object);

            triples.Add(newTriple);
            return(newTriple);
        }
Example #2
0
        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;
        }
Example #3
0
 public TemplateTriple AddTriple(Variable subject, TemplateTriplePredicate predicate, Variable @object)
 {
     return(AddTriple(new TemplateVariableEnd(subject),
                      predicate,
                      new TemplateVariableEnd(@object)));
 }