Ejemplo n.º 1
0
 /// <summary>
 /// Create new <see cref="GraphBuilder"/> for the given
 /// <see cref="Graph"/> <paramref name="g"/>.
 /// </summary>
 public GraphBuilder(RdfBuilder owner, Graph g)
 {
     _owner = owner;
     _data  = g;
 }
Ejemplo n.º 2
0
 private static IRdfData Rdf(this RdfBuilder self) =>
 ((IQuadBuilderContext)self).Rdf;
Ejemplo n.º 3
0
        /// <summary>New <see cref="Graph"/> with labeled-blank node</summary>
        public static GraphBuilder FromBlank(this RdfBuilder self, ReadOnlySpan <char> label, out BlankNode node)
        {
            node = self.Rdf().BlankSelf(label);

            return(self.From(node));
        }
Ejemplo n.º 4
0
        /// <summary>New <see cref="Graph"/> with labeled-blank node</summary>
        public static GraphBuilder FromBlank(this RdfBuilder self, string label, out BlankNode node)
        {
            node = self.Rdf().BlankSelf(label);

            return(self.From(node));
        }
Ejemplo n.º 5
0
 /// <summary>Select URI <see cref="Graph"/>.</summary>
 public static GraphBuilder From(this RdfBuilder self, Uri graphUri)
 => self.From(self.Rdf().Uri(graphUri.ToString()));
Ejemplo n.º 6
0
 /// <summary>Select URI <see cref="Graph"/>.</summary>
 public static GraphBuilder From(this RdfBuilder self,
                                 string graphUri, out UriNode node)
 {
     node = self.Rdf().Uri(graphUri);
     return(self.From(node));
 }