func (n NQuad) Bytes() []byte {
	b := new(bytes.Buffer)
	b.WriteString(n.Subject.RDF())
	if n.Predicate == Star {
		fmt.Fprint(b, " * ")
	} else {
		fmt.Fprintf(b, " <%s> ", n.Predicate)
	}
	if s, ok := n.Object.(string); ok {
		if s == Star {
			fmt.Fprint(b, "*")
		} else {
			fmt.Fprintf(b, "%q", s)
		}
	} else if uid, ok := n.Object.(UID); ok {
		fmt.Fprintf(b, "%s", uid.RDF())
	} else if s, ok := n.Object.(string); ok {
		fmt.Fprintf(b, "%q", s)
	} else if i, ok := n.Object.(int); ok {
		fmt.Fprintf(b, "\"%d\"", i)
	} else {
		fmt.Fprintf(b, "%v", n.Object)
	}
	if len(n.StorageType) > 0 {
		fmt.Fprintf(b, "^^%s ", n.StorageType)
	} else {
		fmt.Fprintf(b, " ")
	}
	if n.Facets != nil && len(n.Facets) > 0 {
		fmt.Fprintf(b, "(")
		first := true
		for k, v := range n.Facets {
			if !first {
				fmt.Fprintf(b, ", ")
			}
			var s string
			if t, ok := v.(time.Time); ok {
				s = t.Format(DateTimeFormat)
			} else if q, ok := v.(string); ok {
				s = fmt.Sprintf("%q", q)
			} else {
				s = fmt.Sprintf("%v", v)
			}
			fmt.Fprintf(b, "%s=%s", k, s)
			first = false
		}
		fmt.Fprintf(b, ") ")
	}
	fmt.Fprintf(b, ".")
	return b.Bytes()
}
// Bytes returns the mutation line.
Bytes returns the mutation line.
// Bytes returns the mutation line .
func (n NQuad) Bytes() []byte {
	b := new(bytes.Buffer)
	b.WriteString(n.Subject.RDF())
	if n.Predicate == Star {
		fmt.Fprint(b, " * ")
	} else {
		fmt.Fprintf(b, " <%s> ", n.Predicate)
	}
	if s, ok := n.Object.(string); ok {
		if s == Star {
			fmt.Fprint(b, "*")
		} else {
			fmt.Fprintf(b, "%q", s)
		}
	} else if uid, ok := n.Object.(UID); ok {
		fmt.Fprintf(b, "%s", uid.RDF())
	} else if s, ok := n.Object.(string); ok {
		fmt.Fprintf(b, "%q", s)
	} else if i, ok := n.Object.(int); ok {
		fmt.Fprintf(b, "\"%d\"", i)
	} else {
		fmt.Fprintf(b, "%v", n.Object)
	}
	if len(n.StorageType) > 0 {
		fmt.Fprintf(b, "^^%s ", n.StorageType)
	} else {
		fmt.Fprintf(b, " ")
	}
	if n.Facets != nil && len(n.Facets) > 0 {
		fmt.Fprintf(b, "(")
		first := true
		for k, v := range n.Facets {
			if !first {
				fmt.Fprintf(b, ", ")
			}
			var s string
			if t, ok := v.(time.Time); ok {
				s = t.Format(DateTimeFormat)
			} else if q, ok := v.(string); ok {
				s = fmt.Sprintf("%q", q)
			} else {
				s = fmt.Sprintf("%v", v)
			}
			fmt.Fprintf(b, "%s=%s", k, s)
			first = false
		}
		fmt.Fprintf(b, ") ")
	}
	fmt.Fprintf(b, ".")
	return b.Bytes()
}
func ( n NQuad ) Bytes ( ) [ ] byte { b := new ( bytes . Buffer ) b . WriteString ( n . Subject . RDF ( ) ) if n . Predicate == Star { fmt . Fprint ( b , " " ) } else { fmt . Fprintf ( b , " " , n . Predicate ) } if s , ok := n . Object . ( string ) ; ok { if s == Star { fmt . Fprint ( b , " " ) } else { fmt . Fprintf ( b , " " , s ) } } else if uid , ok := n . Object . ( UID ) ; ok { fmt . Fprintf ( b , " " , uid . RDF ( ) ) } else if s , ok := n . Object . ( string ) ; ok { fmt . Fprintf ( b , " " , s ) } else if i , ok := n . Object . ( int ) ; ok { fmt . Fprintf ( b , " \" \" " , i ) } else { fmt . Fprintf ( b , " " , n . Object ) } if len ( n . StorageType ) > 0 { fmt . Fprintf ( b , " " , n . StorageType ) } else { fmt . Fprintf ( b , " " ) } if n . Facets != nil && len ( n . Facets ) > 0 { fmt . Fprintf ( b , " " ) first := true for k , v := range n . Facets { if ! first { fmt . Fprintf ( b , " " ) } var s string if t , ok := v . ( time . Time ) ; ok { s = t . Format ( DateTimeFormat ) } else if q , ok := v . ( string ) ; ok { s = fmt . Sprintf ( " " , q ) } else { s = fmt . Sprintf ( " " , v ) } fmt . Fprintf ( b , " " , k , s ) first = false } fmt . Fprintf ( b , " " ) } fmt . Fprintf ( b , " " ) return b . Bytes ( ) }
Bytes returns the mutation line.
Bytes returns the mutation line .