Show / Hide Table of Contents

Class GraphContent

Represents and HTTP entity body that carries a serialization of an RDF graph.

Inheritance
object
HttpContent
GraphContent
Implements
IDisposable
Inherited Members
HttpContent.CopyToAsync(Stream)
HttpContent.CopyToAsync(Stream, TransportContext)
HttpContent.CreateContentReadStreamAsync()
HttpContent.Dispose()
HttpContent.LoadIntoBufferAsync()
HttpContent.LoadIntoBufferAsync(long)
HttpContent.ReadAsByteArrayAsync()
HttpContent.ReadAsStreamAsync()
HttpContent.ReadAsStringAsync()
HttpContent.Headers
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public class GraphContent : HttpContent, IDisposable

Constructors

| Edit this page View Source

GraphContent(IGraph, string)

Initializes a new instance of GraphContent carrying the specified RDF graph in the specified serialization.

Declaration
public GraphContent(IGraph graph, string contentType)
Parameters
Type Name Description
IGraph graph

The graph to be used for the payload content.

string contentType

The MIME type of the payload.

| Edit this page View Source

GraphContent(IGraph, IRdfWriter)

Initializes a new instance of GraphContent.

Declaration
public GraphContent(IGraph graph, IRdfWriter writer)
Parameters
Type Name Description
IGraph graph

The graph to be used for the payload content.

IRdfWriter writer

The writer to use to serialize the graph.

Properties

| Edit this page View Source

ContentLengthRequired

Get or set whether the server requires Content-Length to be set.

Declaration
public bool ContentLengthRequired { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Encoding

Get or set the text encoding to use when writing RDF data.

Declaration
public Encoding Encoding { get; set; }
Property Value
Type Description
Encoding

Methods

| Edit this page View Source

Dispose(bool)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
Overrides
HttpContent.Dispose(bool)
| Edit this page View Source

SerializeToStreamAsync(Stream, TransportContext)

Declaration
protected override Task SerializeToStreamAsync(Stream stream, TransportContext context)
Parameters
Type Name Description
Stream stream
TransportContext context
Returns
Type Description
Task
Overrides
HttpContent.SerializeToStreamAsync(Stream, TransportContext)
| Edit this page View Source

TryComputeLength(out long)

Declaration
protected override bool TryComputeLength(out long length)
Parameters
Type Name Description
long length
Returns
Type Description
bool
Overrides
HttpContent.TryComputeLength(out long)

Implements

IDisposable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • GraphContent(IGraph, string)
    • GraphContent(IGraph, IRdfWriter)
  • Properties
    • ContentLengthRequired
    • Encoding
  • Methods
    • Dispose(bool)
    • SerializeToStreamAsync(Stream, TransportContext)
    • TryComputeLength(out long)
  • Implements
  • Extension Methods
Back to top Generated by DocFX