Class IriSpecsHelper
Static Helper class which can be used to validate IRIs according to. RFC 3987
Inheritance
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public static class IriSpecsHelper
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
Methods
| Improve this Doc View SourceIsAbsoluteIri(string)
Gets whether a string matches the absolute-IRI production.
Declaration
public static bool IsAbsoluteIri(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsDecOctet(string)
Gets whether a string matches the dec-octet production.
Declaration
public static bool IsDecOctet(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsGenDelims(char)
Gets whether a character matches the gen-delims production.
Declaration
public static bool IsGenDelims(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| char | c | Character. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsH16(string)
Gets whether a string matches the h16 production.
Declaration
public static bool IsH16(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsHexDigit(char)
Gets whether a character matches the HEXDIG terminal.
Declaration
public static bool IsHexDigit(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| char | c | Character. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIAuthority(string)
Gets whether a string matches the iauthority production.
Declaration
public static bool IsIAuthority(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIFragment(string)
Gets whether a string matches the ifragment production.
Declaration
public static bool IsIFragment(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIHierPart(string)
Gets whether a string matches the ihier-part production.
Declaration
public static bool IsIHierPart(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIHost(string)
Gets whether a string matches the ihost production.
Declaration
public static bool IsIHost(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPath(string)
Gets whether a string matches the ipath production.
Declaration
public static bool IsIPath(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPathAbEmpty(string)
Gets whether a string matches the ipath-abempty production.
Declaration
public static bool IsIPathAbEmpty(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPathAbsolute(string)
Gets whether a string matches the ipath-absolute production.
Declaration
public static bool IsIPathAbsolute(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPathEmpty(string)
Gets whether a string matches the ipath-empty production.
Declaration
public static bool IsIPathEmpty(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPathNoScheme(string)
Gets whether a string matches the ipath-noscheme production.
Declaration
public static bool IsIPathNoScheme(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPathRootless(string)
Gets whether a string matches the ipath-rootless production.
Declaration
public static bool IsIPathRootless(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIpChar(string)
Gets whether a string matches the ipchar production.
Declaration
public static bool IsIpChar(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPLiteral(string)
Gets whether a string matches the IP-literal production.
Declaration
public static bool IsIPLiteral(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPv4Address(string)
Gets whether a string matches the IPv4address production.
Declaration
public static bool IsIPv4Address(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPv6Address(string)
Gets whether a string matches the IPv6address production.
Declaration
public static bool IsIPv6Address(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIPvFuture(string)
Gets whether a string matches the IPvFuture production.
Declaration
public static bool IsIPvFuture(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIQuery(string)
Gets whether a string matches the iquery production.
Declaration
public static bool IsIQuery(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIRegName(string)
Gets whether a string matches the ireg-name production.
Declaration
public static bool IsIRegName(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIrelativePart(string)
Gets whether a string matches the irelative-part production.
Declaration
public static bool IsIrelativePart(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIrelativeRef(string)
Gets whether a string matches the irelative-ref production.
Declaration
public static bool IsIrelativeRef(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIri(string)
Gets whether a string matches the IRI production.
Declaration
public static bool IsIri(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIriReference(string)
Gets whether a string matches the IRI-reference production.
Declaration
public static bool IsIriReference(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsISegment(string)
Gets whether a string matches the isegment production.
Declaration
public static bool IsISegment(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsISegmentNz(string)
Gets whether a string matches the isegment-nz production.
Declaration
public static bool IsISegmentNz(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsISegmentNzNc(string)
Gets whether a string matches the isegment-nz-nc production.
Declaration
public static bool IsISegmentNzNc(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIUnreserved(char)
Gets whether a character matches the iunreserved production.
Declaration
public static bool IsIUnreserved(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| char | c | Character. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsIUserInfo(string)
Gets whether a string matches the userinfo production.
Declaration
public static bool IsIUserInfo(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsLs32(string)
Gets whether a string matches the ls32 production.
Declaration
public static bool IsLs32(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsPctEncoded(string)
Gets whether a string matches the pct-encoded production.
Declaration
public static bool IsPctEncoded(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsPort(string)
Gets whether a string matches the port production.
Declaration
public static bool IsPort(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsReserved(char)
Gets whether a character matches the reserved production.
Declaration
public static bool IsReserved(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| char | c | Character. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsScheme(string)
Gets whether a string matches the scheme production.
Declaration
public static bool IsScheme(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | String. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsSubDelims(char)
Gets whether a character matches the sub-delims production.
Declaration
public static bool IsSubDelims(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| char | c | Character. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
IsUcsChar(char)
Gets whether a character matches the ucschar production.
Declaration
public static bool IsUcsChar(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| char | c | Character. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Not all strings that will match the official ucschar production will be matched by this function as the ucschar production permits character codes beyond the range of the .Net char type.
IsUnreserved(char)
Gets whether a character matches the unreserved production.
Declaration
public static bool IsUnreserved(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| char | c | Character. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.