예제 #1
0
 /// <summary>Adds object items as a RDFS list set (return last item)</summary>
 /// <returns><see cref="SubjectBuilder"/> for last list item</returns>
 /// <exception cref="TypeMustNotBeANode"></exception>
 public static SubjectBuilder List <T>(this SubjectBuilder self, params T[] literals) where T : notnull
 => self.List(literals.Select(x => self.Rdf().New(x))
              .Cast <Node>().ToArray()
              );
예제 #2
0
 /// <summary>Select predicate with Uri.</summary>
 public static PredicateBuilder With(this SubjectBuilder self, string predicate, out UriNode node)
 {
     node = self.Rdf().Uri(predicate);
     return(self.With(node));
 }
예제 #3
0
 /// <summary>Adds literal items as a RDFS list set (return last item)</summary>
 /// <returns><see cref="SubjectBuilder"/> for last list item</returns>
 public static SubjectBuilder List(this SubjectBuilder self, params string[] literals)
 => self.List(literals.Select(x => self.Rdf().New(x))
              .Cast <Node>().ToArray()
              );
예제 #4
0
 /// <summary>Select predicate with Uri.</summary>
 public static PredicateBuilder With(this SubjectBuilder self, ReadOnlySpan <char> predicate, out UriNode node)
 {
     node = self.Rdf().Uri(predicate);
     return(self.With(node));
 }