Class LanguageTag
Provides methods for working with BCP 47 language tags.
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class LanguageTag
Fields
| Edit this page View SourceIrregularGrandfatheredTags
Tags that do not match the general langtag production and which would not otherwise be considered well-formed, but which are valid although deprecated in most cases.
Declaration
public static readonly string[] IrregularGrandfatheredTags
Field Value
Type | Description |
---|---|
string[] |
RegularGrandfatheredTags
Tags that do match the general langtag production but their subtags are not semantically valid. These are also considered valid tags although all are deprecated.
Declaration
public static readonly string[] RegularGrandfatheredTags
Field Value
Type | Description |
---|---|
string[] |
Methods
| Edit this page View SourceIsValidTurtle(string)
Determine if a string is valid against the LANGTAG production in the Turtle 1.1 specification.
Declaration
public static bool IsValidTurtle(string languageTag)
Parameters
Type | Name | Description |
---|---|---|
string | languageTag | The string to check. |
Returns
Type | Description |
---|---|
bool | True if |
IsWellFormed(string)
Determine if a string represents a well-formed language tag.
Declaration
public static bool IsWellFormed(string languageTag)
Parameters
Type | Name | Description |
---|---|---|
string | languageTag | The string to check. |
Returns
Type | Description |
---|---|
bool | True if |