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

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