Class MimeTypesHelper
Helper Class containing definitions of MIME Types for the various RDF Concrete Syntaxes and Content Negotation Methods.
Inheritance
System.Object
MimeTypesHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: dotNetRDF.dll
Syntax
public static class MimeTypesHelper
Fields
|
Improve this Doc
View Source
Any
MIME Type for accept any content Type.
Declaration
public const string Any = "*/*"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CharsetUtf16
Charset constants.
Declaration
public const string CharsetUtf16 = "utf-16"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CharsetUtf8
Charset constants.
Declaration
public const string CharsetUtf8 = "utf-8"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultCsvExtension
Default File Extension for CSV.
Declaration
public const string DefaultCsvExtension = "csv"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultGZipExtension
Default File Extension for GZip.
Declaration
public const string DefaultGZipExtension = "gz"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultHtmlExtension
Default File Extension for HTML.
Declaration
public const string DefaultHtmlExtension = "html"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultJsonExtension
Default File Extension for Json formats.
Declaration
public const string DefaultJsonExtension = "json"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultJsonLdExtension
Default file extension for JSON-LD formats.
Declaration
public const string DefaultJsonLdExtension = "jsonld"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultNotation3Extension
Default File Extension for Notation 3.
Declaration
public const string DefaultNotation3Extension = "n3"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultNQuadsExtension
Default File Extension for NQuads.
Declaration
public const string DefaultNQuadsExtension = "nq"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultNTriplesExtension
Default File Extension for NTriples.
Declaration
public const string DefaultNTriplesExtension = "nt"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultRdfJsonExtension
Default File Extension for RDF/JSON.
Declaration
public const string DefaultRdfJsonExtension = "rj"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultRdfXmlExtension
Default File Extension for RDF/XML.
Declaration
public const string DefaultRdfXmlExtension = "rdf"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultSparqlJsonExtension
Default File Extension for SPARQL JSON Results Format.
Declaration
public const string DefaultSparqlJsonExtension = "srj"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultSparqlQueryExtension
Default File Extension for SPARQL Queries.
Declaration
public const string DefaultSparqlQueryExtension = "rq"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultSparqlUpdateExtension
Default File Extension for SPARQL Updates.
Declaration
public const string DefaultSparqlUpdateExtension = "ru"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultSparqlXmlExtension
Default File Extension for SPARQL XML Results Format.
Declaration
public const string DefaultSparqlXmlExtension = "srx"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultTriGExtension
Default File Extension for TriG.
Declaration
public const string DefaultTriGExtension = "trig"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultTriXExtension
Default File Extension for TriX.
Declaration
public const string DefaultTriXExtension = "xml"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultTsvExtension
Default File Extension for TSV.
Declaration
public const string DefaultTsvExtension = "tsv"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultTurtleExtension
Default File Extension for Turtle Files.
Declaration
public const string DefaultTurtleExtension = "ttl"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DefaultXHtmlExtension
Default File Extension for XHTML.
Declaration
public const string DefaultXHtmlExtension = "xhtml"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
MIME Type for Multipart Form Data.
Declaration
public const string FormMultipart = "multipart/form-data"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SparqlQuery
MIME Type for SPARQL Queries.
Declaration
public const string SparqlQuery = "application/sparql-query"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SparqlResultsXml
MIME Types for SPARQL Results XML.
Declaration
public static string[] SparqlResultsXml
Field Value
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
SparqlUpdate
MIME Type for SPARQL Updates.
Declaration
public const string SparqlUpdate = "application/sparql-update"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
MIME Type for URL Enoded WWW Form Content used when POSTing over HTTP in UTF-8 encoding.
Declaration
public const string Utf8WWWFormURLEncoded = "application/x-www-form-urlencoded;charset=utf-8"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
MIME Type for URL Encoded WWW Form Content used when POSTing over HTTP.
Declaration
public const string WWWFormURLEncoded = "application/x-www-form-urlencoded"
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
Definitions
Gets the available MIME Type Definitions.
Declaration
public static IEnumerable<MimeTypeDefinition> Definitions { get; }
Property Value
|
Improve this Doc
View Source
Builds the String for the HTTP Accept Header that should be used when you want to ask for content in RDF formats (except Sparql Results).
Declaration
public static string HttpAcceptHeader { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Builds the String for the HTTP Accept Header that should be used for making HTTP Requests where the returned data will be an RDF dataset.
Declaration
public static string HttpRdfDatasetAcceptHeader { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Builds the String for the HTTP Accept Header that should be used for making HTTP Requests where the returned data may be RDF or an RDF dataset.
Declaration
public static string HttpRdfOrDatasetAcceptHeader { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Builds the String for the HTTP Accept Header that should be used for making HTTP Requests where the returned data may be RDF or a SPARQL Result Set.
Declaration
public static string HttpRdfOrSparqlAcceptHeader { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Builds the String for the HTTP Accept Header that should be used for querying Sparql Endpoints where the response will be a SPARQL Result Set format.
Declaration
public static string HttpSparqlAcceptHeader { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SupportedRdfDatasetMimeTypes
Gets the Enumeration of supported MIME Types for RDF Datasets.
Declaration
public static IEnumerable<string> SupportedRdfDatasetMimeTypes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
SupportedRdfMimeTypes
Gets the Enumeration of supported MIME Types for RDF Graphs.
Declaration
public static IEnumerable<string> SupportedRdfMimeTypes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
SupportedRdfOrSparqlMimeTypes
Gets the Enumeration of supported MIME Types for RDF Graphs or SPARQL Results.
Declaration
public static IEnumerable<string> SupportedRdfOrSparqlMimeTypes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
SupportedSparqlMimeTypes
Gets the Enumeration of supported MIME Types for SPARQL Results.
Declaration
public static IEnumerable<string> SupportedSparqlMimeTypes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Methods
|
Improve this Doc
View Source
AddDefinition(MimeTypeDefinition)
Adds a new MIME Type Definition.
Declaration
public static void AddDefinition(MimeTypeDefinition definition)
Parameters
|
Improve this Doc
View Source
ApplyParserOptions(Object)
Applies global options to a parser.
Declaration
public static void ApplyParserOptions(object parser)
Parameters
Type |
Name |
Description |
System.Object |
parser |
Parser. |
|
Improve this Doc
View Source
Creates a Custom HTTP Accept Header containing the given selection of MIME Types.
Declaration
public static string CustomHttpAcceptHeader(IEnumerable<string> mimeTypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
Enumeration of MIME Types to use. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Creates a Custom HTTP Accept Header containing the given selection of MIME Types where those MIME Types also appear in the list of supported Types.
Declaration
public static string CustomHttpAcceptHeader(IEnumerable<string> mimeTypes, IEnumerable<string> supportedTypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
Enumeration of MIME Types to use. |
System.Collections.Generic.IEnumerable<System.String> |
supportedTypes |
Enumeration of supported MIME Types. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Creates a Custom HTTP Accept Header containing only the Accept Types supported by a specific parser.
Declaration
public static string CustomHttpAcceptHeader(IRdfReader parser)
Parameters
Type |
Name |
Description |
IRdfReader |
parser |
RDF Parser. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Creates a Custom HTTP Accept Header containing only the Accept Types supported by a specific parser.
Declaration
public static string CustomHttpAcceptHeader(IStoreReader parser)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetDefinitions(IEnumerable<String>)
Gets all MIME Type definitions which support the given MIME Types.
Declaration
public static IEnumerable<MimeTypeDefinition> GetDefinitions(IEnumerable<string> mimeTypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
MIME Types. |
Returns
|
Improve this Doc
View Source
GetDefinitions(String)
Gets all MIME Type definitions which support the given MIME Type.
Declaration
public static IEnumerable<MimeTypeDefinition> GetDefinitions(string mimeType)
Parameters
Type |
Name |
Description |
System.String |
mimeType |
MIME Type. |
Returns
|
Improve this Doc
View Source
GetDefinitionsByFileExtension(String)
Gets all MIME Types definitions which are associated with a given file extension.
Declaration
public static IEnumerable<MimeTypeDefinition> GetDefinitionsByFileExtension(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
|
Improve this Doc
View Source
GetFileExtension(String)
Selects the appropriate File Extension for the given MIME Type.
Declaration
public static string GetFileExtension(string mimeType)
Parameters
Type |
Name |
Description |
System.String |
mimeType |
MIME Type. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetFileExtension(IRdfWriter)
Selects the appropriate File Extension for the given RDF Writer.
Declaration
public static string GetFileExtension(IRdfWriter writer)
Parameters
Type |
Name |
Description |
IRdfWriter |
writer |
RDF Writer. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetFileExtension(IStoreWriter)
Selects the appropriate File Extension for the given Store Writer.
Declaration
public static string GetFileExtension(IStoreWriter writer)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetFilenameFilter()
Generates a Filename Filter that can be used with any .Net application and includes all formats that dotNetRDF is aware of.
Declaration
public static string GetFilenameFilter()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetFilenameFilter(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Generates a Filename Filter that can be used with any .Net application and includes a user dictated subset of the formats that dotNetRDF is aware of.
Declaration
public static string GetFilenameFilter(bool rdf, bool rdfDatasets, bool sparqlResults, bool sparqlQuery, bool sparqlUpdate, bool allFiles)
Parameters
Type |
Name |
Description |
System.Boolean |
rdf |
Allow RDF Graph formats (e.g. Turtle). |
System.Boolean |
rdfDatasets |
Allow RDF Dataset formats (e.g. NQuads). |
System.Boolean |
sparqlResults |
Allow SPARQL Results formats (e.g. SPARQL Results XML). |
System.Boolean |
sparqlQuery |
Allow SPARQL Query (i.e. .rq files). |
System.Boolean |
sparqlUpdate |
Allow SPARQL Update (i.e. .ru files). |
System.Boolean |
allFiles |
Allow All Files (i.e. */*). |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetMimeType(String)
Selects the appropriate MIME Type for the given File Extension if the File Extension is a standard extension for an RDF format.
Declaration
[Obsolete("This method is deprecated, please use GetDefinitionsForExtension() to find relevant definitions and extract the MIME types from there", false)]
public static string GetMimeType(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetMimeType(IRdfWriter)
Get the preferred MIME type that is registered for a specific writer.
Declaration
public static string GetMimeType(IRdfWriter writer)
Parameters
Type |
Name |
Description |
IRdfWriter |
writer |
RDF Writer. |
Returns
Type |
Description |
System.String |
The preferred MIME type associated with the parser. |
Exceptions
|
Improve this Doc
View Source
GetMimeTypes(String)
Gets all the MIME Types associated with a given File Extension.
Declaration
[Obsolete("This method is deprecated, please use GetDefinitionsForExtension() to find relevant definitions and extract the MIME types from there", false)]
public static IEnumerable<string> GetMimeTypes(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
GetParser(IEnumerable<String>)
Selects an appropriate
IRdfReader based on the given MIME Types.
Declaration
public static IRdfReader GetParser(IEnumerable<string> ctypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME TYpes. |
Returns
|
Improve this Doc
View Source
GetParser(String)
Selects an appropriate
IRdfReader based on the HTTP Content-Type header from a HTTP Response.
Declaration
public static IRdfReader GetParser(string contentType)
Parameters
Type |
Name |
Description |
System.String |
contentType |
Value of the HTTP Content-Type Header. |
Returns
|
Improve this Doc
View Source
GetParserByFileExtension(String)
Declaration
public static IRdfReader GetParserByFileExtension(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
|
Improve this Doc
View Source
GetSparqlParser(IEnumerable<String>, Boolean)
Selects a SPARQL Parser based on the MIME types.
Declaration
public static ISparqlResultsReader GetSparqlParser(IEnumerable<string> ctypes, bool allowPlainTextResults)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME Types. |
System.Boolean |
allowPlainTextResults |
Whether to allow for plain text results. |
Returns
|
Improve this Doc
View Source
GetSparqlParser(String)
Selects an appropriate
ISparqlResultsReader based on the HTTP Content-Type header from a HTTP Response.
Declaration
public static ISparqlResultsReader GetSparqlParser(string contentType)
Parameters
Type |
Name |
Description |
System.String |
contentType |
Value of the HTTP Content-Type Header. |
Returns
|
Improve this Doc
View Source
GetSparqlParser(String, Boolean)
Selects an appropriate
ISparqlResultsReader based on the HTTP Content-Type header from a HTTP Response.
Declaration
public static ISparqlResultsReader GetSparqlParser(string contentType, bool allowPlainTextResults)
Parameters
Type |
Name |
Description |
System.String |
contentType |
Value of the HTTP Content-Type Header. |
System.Boolean |
allowPlainTextResults |
Whether you allow Sparql Boolean results in text/plain format (Boolean results in text/boolean are handled properly but text/plain results can be conflated with CONSTRUCT/DESCRIBE results in NTriples format). |
Returns
|
Improve this Doc
View Source
GetSparqlParserByFileExtension(String)
Declaration
public static ISparqlResultsReader GetSparqlParserByFileExtension(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
|
Improve this Doc
View Source
GetSparqlWriter(IEnumerable<String>)
Declaration
public static ISparqlResultsWriter GetSparqlWriter(IEnumerable<string> ctypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME Types. |
Returns
|
Improve this Doc
View Source
GetSparqlWriter(IEnumerable<String>, out String)
Declaration
public static ISparqlResultsWriter GetSparqlWriter(IEnumerable<string> ctypes, out string contentType)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
String array of accepted Content Types. |
System.String |
contentType |
The Content Type header that should be sent in the Response to the Request. |
Returns
Type |
Description |
ISparqlResultsWriter |
A Writer for a Content Type the client accepts and the Content Type that should be sent to the client. |
|
Improve this Doc
View Source
GetSparqlWriter(String)
Declaration
public static ISparqlResultsWriter GetSparqlWriter(string acceptHeader)
Parameters
Type |
Name |
Description |
System.String |
acceptHeader |
Value of the HTTP Accept Header. |
Returns
|
Improve this Doc
View Source
GetSparqlWriter(String, out String)
Declaration
public static ISparqlResultsWriter GetSparqlWriter(string acceptHeader, out string contentType)
Parameters
Type |
Name |
Description |
System.String |
acceptHeader |
Value of the HTTP Accept Header. |
System.String |
contentType |
The Content Type header that should be sent in the Response to the Request. |
Returns
Type |
Description |
ISparqlResultsWriter |
A Writer for a Content Type the client accepts and the Content Type that should be sent to the client. |
|
Improve this Doc
View Source
GetSparqlWriterByFileExtension(String)
Declaration
public static ISparqlResultsWriter GetSparqlWriterByFileExtension(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
|
Improve this Doc
View Source
GetSparqlWriterByFileExtension(String, out String)
Declaration
public static ISparqlResultsWriter GetSparqlWriterByFileExtension(string fileExt, out string contentType)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
System.String |
contentType |
Content Type of the selected writer. |
Returns
|
Improve this Doc
View Source
GetStoreParser(IEnumerable<String>)
Selects a Store parser based on the MIME types.
Declaration
public static IStoreReader GetStoreParser(IEnumerable<string> ctypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME Types. |
Returns
|
Improve this Doc
View Source
GetStoreParser(String)
Selects an appropriate
IStoreReader based on the HTTP Content-Type header from a HTTP Response.
Declaration
public static IStoreReader GetStoreParser(string contentType)
Parameters
Type |
Name |
Description |
System.String |
contentType |
Value of the HTTP Content-Type Header. |
Returns
|
Improve this Doc
View Source
GetStoreParserByFileExtension(String)
Selects a Store parser based on the file extension.
Declaration
public static IStoreReader GetStoreParserByFileExtension(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
|
Improve this Doc
View Source
GetStoreWriter(IEnumerable<String>)
Selects an appropriate
IStoreWriter based on the given MIME Types.
Declaration
public static IStoreWriter GetStoreWriter(IEnumerable<string> ctypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME Types. |
Returns
|
Improve this Doc
View Source
GetStoreWriter(IEnumerable<String>, out String)
Selects an appropriate
IStoreWriter based on the given MIME Types.
Declaration
public static IStoreWriter GetStoreWriter(IEnumerable<string> ctypes, out string contentType)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME Types. |
System.String |
contentType |
The Content Type header that should be sent in the Response to the Request. |
Returns
|
Improve this Doc
View Source
GetStoreWriter(String)
Selects an appropriate
IStoreWriter based on the HTTP Accept header form a HTTP Request.
Declaration
public static IStoreWriter GetStoreWriter(string acceptHeader)
Parameters
Type |
Name |
Description |
System.String |
acceptHeader |
Value of the HTTP Accept Header. |
Returns
Type |
Description |
IStoreWriter |
A Writer for a Content Type the client accepts. |
|
Improve this Doc
View Source
GetStoreWriter(String, out String)
Selects an appropriate
IStoreWriter based on the HTTP Accept header form a HTTP Request.
Declaration
public static IStoreWriter GetStoreWriter(string acceptHeader, out string contentType)
Parameters
Type |
Name |
Description |
System.String |
acceptHeader |
Value of the HTTP Accept Header. |
System.String |
contentType |
The Content Type header that should be sent in the Response to the Request. |
Returns
Type |
Description |
IStoreWriter |
A Writer for a Content Type the client accepts and the Content Type that should be sent to the client. |
|
Improve this Doc
View Source
GetStoreWriterByFileExtension(String)
Declaration
public static IStoreWriter GetStoreWriterByFileExtension(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
|
Improve this Doc
View Source
GetStoreWriterByFileExtension(String, out String)
Declaration
public static IStoreWriter GetStoreWriterByFileExtension(string fileExt, out string contentType)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
System.String |
contentType |
Content Type of the selected writer. |
Returns
|
Improve this Doc
View Source
GetTrueFileExtension(String)
Gets the true file extension for a filename.
Declaration
public static string GetTrueFileExtension(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetTrueResourceExtension(String)
Gets the true extension for a resource.
Declaration
public static string GetTrueResourceExtension(string resource)
Parameters
Type |
Name |
Description |
System.String |
resource |
Resource. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetWriter(IEnumerable<String>)
Selects an appropriate
IRdfWriter based on the given MIME Types.
Declaration
public static IRdfWriter GetWriter(IEnumerable<string> ctypes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME Types. |
Returns
|
Improve this Doc
View Source
GetWriter(IEnumerable<String>, out String)
Selects an appropriate
IRdfWriter based on the given MIME Types.
Declaration
public static IRdfWriter GetWriter(IEnumerable<string> ctypes, out string contentType)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
ctypes |
MIME Types. |
System.String |
contentType |
The Content Type header that should be sent in the Response to the Request. |
Returns
|
Improve this Doc
View Source
GetWriter(String)
Selects an appropriate
IRdfWriter based on the HTTP Accept header form a HTTP Request.
Declaration
public static IRdfWriter GetWriter(string acceptHeader)
Parameters
Type |
Name |
Description |
System.String |
acceptHeader |
Value of the HTTP Accept Header. |
Returns
Type |
Description |
IRdfWriter |
A Writer for a Content Type the client accepts. |
|
Improve this Doc
View Source
GetWriter(String, out String)
Selects an appropriate
IRdfWriter based on the HTTP Accept header form a HTTP Request.
Declaration
public static IRdfWriter GetWriter(string acceptHeader, out string contentType)
Parameters
Type |
Name |
Description |
System.String |
acceptHeader |
Value of the HTTP Accept Header. |
System.String |
contentType |
The Content Type header that should be sent in the Response to the Request. |
Returns
Type |
Description |
IRdfWriter |
A Writer for a Content Type the client accepts and the Content Type that should be sent to the client. |
|
Improve this Doc
View Source
GetWriterByFileExtension(String)
Declaration
public static IRdfWriter GetWriterByFileExtension(string fileExt)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
Returns
Exceptions
|
Improve this Doc
View Source
GetWriterByFileExtension(String, out String)
Declaration
public static IRdfWriter GetWriterByFileExtension(string fileExt, out string contentType)
Parameters
Type |
Name |
Description |
System.String |
fileExt |
File Extension. |
System.String |
contentType |
Content Type of the chosen writer. |
Returns
Exceptions
|
Improve this Doc
View Source
RegisterParser(IRdfReader, IEnumerable<String>, IEnumerable<String>)
Registers a parser as the default RDF Parser for all the given MIME types and updates relevant definitions to include the MIME types and file extensions.
Declaration
public static void RegisterParser(IRdfReader parser, IEnumerable<string> mimeTypes, IEnumerable<string> fileExtensions)
Parameters
Type |
Name |
Description |
IRdfReader |
parser |
RDF Parser. |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
MIME Types. |
System.Collections.Generic.IEnumerable<System.String> |
fileExtensions |
File Extensions. |
|
Improve this Doc
View Source
RegisterParser(ISparqlResultsReader, IEnumerable<String>, IEnumerable<String>)
Registers a parser as the default SPARQL Rsults Parser for all the given MIME types and updates relevant definitions to include the MIME types and file extensions.
Declaration
public static void RegisterParser(ISparqlResultsReader parser, IEnumerable<string> mimeTypes, IEnumerable<string> fileExtensions)
Parameters
Type |
Name |
Description |
ISparqlResultsReader |
parser |
SPARQL Results Parser. |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
MIME Types. |
System.Collections.Generic.IEnumerable<System.String> |
fileExtensions |
File Extensions. |
|
Improve this Doc
View Source
RegisterParser(IStoreReader, IEnumerable<String>, IEnumerable<String>)
Registers a parser as the default RDF Dataset Parser for all the given MIME types and updates relevant definitions to include the MIME types and file extensions.
Declaration
public static void RegisterParser(IStoreReader parser, IEnumerable<string> mimeTypes, IEnumerable<string> fileExtensions)
Parameters
Type |
Name |
Description |
IStoreReader |
parser |
RDF Dataset Parser. |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
MIME Types. |
System.Collections.Generic.IEnumerable<System.String> |
fileExtensions |
File Extensions. |
|
Improve this Doc
View Source
RegisterWriter(IRdfWriter, IEnumerable<String>, IEnumerable<String>)
Registers a writer as the default RDF Writer for all the given MIME types and updates relevant definitions to include the MIME types and file extensions.
Declaration
public static void RegisterWriter(IRdfWriter writer, IEnumerable<string> mimeTypes, IEnumerable<string> fileExtensions)
Parameters
Type |
Name |
Description |
IRdfWriter |
writer |
RDF Writer. |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
MIME Types. |
System.Collections.Generic.IEnumerable<System.String> |
fileExtensions |
File Extensions. |
|
Improve this Doc
View Source
RegisterWriter(ISparqlResultsWriter, IEnumerable<String>, IEnumerable<String>)
Registers a writer as the default SPARQL Results Writer for all the given MIME types and updates relevant definitions to include the MIME types and file extensions.
Declaration
public static void RegisterWriter(ISparqlResultsWriter writer, IEnumerable<string> mimeTypes, IEnumerable<string> fileExtensions)
Parameters
Type |
Name |
Description |
ISparqlResultsWriter |
writer |
SPARQL Results Writer. |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
MIME Types. |
System.Collections.Generic.IEnumerable<System.String> |
fileExtensions |
File Extensions. |
|
Improve this Doc
View Source
RegisterWriter(IStoreWriter, IEnumerable<String>, IEnumerable<String>)
Registers a writer as the default RDF Dataset Writer for all the given MIME types and updates relevant definitions to include the MIME types and file extensions.
Declaration
public static void RegisterWriter(IStoreWriter writer, IEnumerable<string> mimeTypes, IEnumerable<string> fileExtensions)
Parameters
Type |
Name |
Description |
IStoreWriter |
writer |
RDF Dataset Writer. |
System.Collections.Generic.IEnumerable<System.String> |
mimeTypes |
MIME Types. |
System.Collections.Generic.IEnumerable<System.String> |
fileExtensions |
File Extensions. |
|
Improve this Doc
View Source
ResetDefinitions()
Resets the MIME Type Definitions (the associations between file extensions, MIME types and their respective parsers and writers) to the library defaults.
Declaration
public static void ResetDefinitions()