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

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