Class RdfXmlSpecsHelper
Static Helper class for providing Constants and Helper functions for use by RDF/XML parsers.
Inheritance
System.Object
RdfXmlSpecsHelper
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 RdfXmlSpecsHelper
Methods
|
Improve this Doc
View Source
IsAboutAttribute(AttributeEvent)
Checks whether an attribute is an rdf:about attribute.
Declaration
[Obsolete("Use IsAboutAttribute(AttributeEvent, INamespaceMapper)")]
public static bool IsAboutAttribute(AttributeEvent attr)
Parameters
Returns
Type |
Description |
System.Boolean |
True if is an rdf:about attribute. |
|
Improve this Doc
View Source
IsAboutAttribute(AttributeEvent, INamespaceMapper)
Checks whether an attribute is an rdf:about attribute.
Declaration
public static bool IsAboutAttribute(AttributeEvent attr, INamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
AttributeEvent |
attr |
Attribute to Test. |
INamespaceMapper |
nsMapper |
The namespace prefix mappings to use when expanding the namespace prefix of the attribute. |
Returns
Type |
Description |
System.Boolean |
True if is an rdf:about attribute. |
|
Improve this Doc
View Source
IsAbsoluteURI(String)
Checks whether a Uri Reference is an absolute Uri.
Declaration
public static bool IsAbsoluteURI(string uriref)
Parameters
Type |
Name |
Description |
System.String |
uriref |
Uri Reference to Test. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsAmbigiousAttributeName(String)
Checks whether a given Local Name is potentially ambiguous.
Declaration
public static bool IsAmbigiousAttributeName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Local Name to Test. |
Returns
Type |
Description |
System.Boolean |
True if the Local Name is ambiguous. |
|
Improve this Doc
View Source
IsCoreSyntaxTerm(String)
Checks whether a given QName is a Core Syntax Term.
Declaration
[Obsolete("Use IsCoreSyntaxTerm(Uri, string) instead")]
public static bool IsCoreSyntaxTerm(string qname)
Parameters
Type |
Name |
Description |
System.String |
qname |
QName to Test. |
Returns
Type |
Description |
System.Boolean |
True if the QName is a Core Syntax Term. |
|
Improve this Doc
View Source
IsCoreSyntaxTerm(Uri, String)
Checks whether a given expanded name is a Core Syntax Term.
Declaration
public static bool IsCoreSyntaxTerm(Uri nsUri, string localName)
Parameters
Type |
Name |
Description |
System.Uri |
nsUri |
The namespace URI of the expanded name. |
System.String |
localName |
The local name part of the expanded name. |
Returns
Type |
Description |
System.Boolean |
True if the expanded name is a Core Syntax Term. |
|
Improve this Doc
View Source
IsDataTypeAttribute(AttributeEvent)
Checks whether an attribute is an rdf:datatype attribute.
Declaration
[Obsolete("Use IsDataTypeAttribute(AttributeEvent, INestedNamespaceMapper) instead.")]
public static bool IsDataTypeAttribute(AttributeEvent attr)
Parameters
Returns
Type |
Description |
System.Boolean |
True if is an rdf:datatype attribute. |
|
Improve this Doc
View Source
IsDataTypeAttribute(AttributeEvent, INestedNamespaceMapper)
Checks whether an attribute is an rdf:datatype attribute.
Declaration
public static bool IsDataTypeAttribute(AttributeEvent attr, INestedNamespaceMapper namespaceMapper)
Parameters
Type |
Name |
Description |
AttributeEvent |
attr |
Attribute to Test. |
INestedNamespaceMapper |
namespaceMapper |
The namespace prefix mappings to use when expanding the namespace prefix of the attribute. |
Returns
Type |
Description |
System.Boolean |
True if is an rdf:datatype attribute. |
|
Improve this Doc
View Source
IsIDAttribute(AttributeEvent)
Checks whether an attribute is an rdf:ID attribute.
Declaration
[Obsolete("Use IsIDAttribute(AttributeEvent, INamespaceMapper) instead")]
public static bool IsIDAttribute(AttributeEvent attr)
Parameters
Returns
Type |
Description |
System.Boolean |
True if is an rdf:ID attribute. |
|
Improve this Doc
View Source
IsIDAttribute(AttributeEvent, INestedNamespaceMapper)
Checks whether an attribute is an rdf:ID attribute.
Declaration
public static bool IsIDAttribute(AttributeEvent attr, INestedNamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
AttributeEvent |
attr |
Attribute to Test. |
INestedNamespaceMapper |
nsMapper |
The namespace prefix mappings to use when expanding the namespace prefix of the attribute. |
Returns
Type |
Description |
System.Boolean |
True if is an rdf:ID attribute. |
|
Improve this Doc
View Source
IsLiElement(ElementEvent, INamespaceMapper)
Checks whether a give element is an rdf:li element.
Declaration
public static bool IsLiElement(ElementEvent e, INamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
ElementEvent |
e |
The element to test. |
INamespaceMapper |
nsMapper |
The namespace mappings to use when expanding element QName prefixes. |
Returns
Type |
Description |
System.Boolean |
True if the element is an rdf:li element, false otherwise. |
|
Improve this Doc
View Source
IsNodeElementUri(String)
Checks whether a given QName is valid as a Node Element Uri.
Declaration
[Obsolete("Use IsNodeElementUri(Uri, localName) instead")]
public static bool IsNodeElementUri(string qname)
Parameters
Type |
Name |
Description |
System.String |
qname |
QName to Test. |
Returns
Type |
Description |
System.Boolean |
True if the QName is valid. |
|
Improve this Doc
View Source
IsNodeElementUri(Uri, String)
Checks whether a given expanded name is valid as a Node Element Uri.
Declaration
public static bool IsNodeElementUri(Uri nsUri, string localName)
Parameters
Type |
Name |
Description |
System.Uri |
nsUri |
The namespace URI of the expanded name. |
System.String |
localName |
The local name part of the expanded name. |
Returns
Type |
Description |
System.Boolean |
True if the expanded name is valid. |
|
Improve this Doc
View Source
IsNodeIDAttribute(AttributeEvent)
Checks whether an attribute is an rdf:nodeID attribute.
Declaration
[Obsolete("Use IsNodeIDAttribute(AttributeEvent, INamespaceMapper) instead")]
public static bool IsNodeIDAttribute(AttributeEvent attr)
Parameters
Returns
Type |
Description |
System.Boolean |
True if is an rdf:nodeID attribute. |
|
Improve this Doc
View Source
IsNodeIDAttribute(AttributeEvent, INamespaceMapper)
Checks whether an attribute is an rdf:nodeID attribute.
Declaration
public static bool IsNodeIDAttribute(AttributeEvent attr, INamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
AttributeEvent |
attr |
Attribute to Test. |
INamespaceMapper |
nsMapper |
The namespace prefix mappings to use when expanding the namespace prefix of the attribute. |
Returns
Type |
Description |
System.Boolean |
True if is an rdf:nodeID attribute. |
|
Improve this Doc
View Source
IsOldTerm(String)
Checks whether a given QName is a Old Syntax Term.
Declaration
[Obsolete("Use IsOldTerm(Uri, string) instead")]
public static bool IsOldTerm(string qname)
Parameters
Type |
Name |
Description |
System.String |
qname |
QName to Test. |
Returns
Type |
Description |
System.Boolean |
True if the QName is a Old Syntax Term. |
|
Improve this Doc
View Source
IsOldTerm(Uri, String)
Checks whether a given expanded name is a Old Syntax Term.
Declaration
public static bool IsOldTerm(Uri nsUri, string localName)
Parameters
Type |
Name |
Description |
System.Uri |
nsUri |
The namespace URI of the expanded name. |
System.String |
localName |
The local name part of the expanded name. |
Returns
Type |
Description |
System.Boolean |
True if the expanded name is a Old Syntax Term. |
|
Improve this Doc
View Source
IsParseTypeAttribute(AttributeEvent, INestedNamespaceMapper)
Checks whether an attribute is an rdf:parseType attribute.
Declaration
public static bool IsParseTypeAttribute(AttributeEvent attr, INestedNamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
AttributeEvent |
attr |
Attribute to Test. |
INestedNamespaceMapper |
nsMapper |
The namespace prefix mappings to use when expanding the namespace prefix of the attribute. |
Returns
Type |
Description |
System.Boolean |
True if is an rdf:parseType attribute. |
|
Improve this Doc
View Source
IsPropertyAttribute(AttributeEvent)
Checks whether an attribute is an property attribute.
Declaration
[Obsolete("Use IsPropertyAttribute(AttributeEvent, INamespaceMapper)")]
public static bool IsPropertyAttribute(AttributeEvent attr)
Parameters
Returns
Type |
Description |
System.Boolean |
True if is an property attribute. |
|
Improve this Doc
View Source
IsPropertyAttribute(AttributeEvent, INamespaceMapper)
Checks whether an attribute is an property attribute.
Declaration
public static bool IsPropertyAttribute(AttributeEvent attr, INamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
AttributeEvent |
attr |
Attribute to Test. |
INamespaceMapper |
nsMapper |
The namespace prefix mappings to use when expanding the namespace prefix of the attribute. |
Returns
Type |
Description |
System.Boolean |
True if is an property attribute. |
|
Improve this Doc
View Source
IsPropertyAttributeURI(String)
Checks whether a given QName is valid as a Property Attribute Uri.
Declaration
public static bool IsPropertyAttributeURI(string qname)
Parameters
Type |
Name |
Description |
System.String |
qname |
QName to Test. |
Returns
Type |
Description |
System.Boolean |
True if the QName is valid. |
|
Improve this Doc
View Source
IsPropertyAttributeURI(Uri, String)
Checks whether a given expanded name is valid as a Property Attribute Uri.
Declaration
public static bool IsPropertyAttributeURI(Uri nsUri, string localName)
Parameters
Type |
Name |
Description |
System.Uri |
nsUri |
The namespace URI of the expanded name. |
System.String |
localName |
The local name part of the expanded name. |
Returns
Type |
Description |
System.Boolean |
True if the expanded name is valid. |
|
Improve this Doc
View Source
IsPropertyElement(ElementEvent, INamespaceMapper)
Checks whether a given element is a valid property element.
Declaration
public static bool IsPropertyElement(ElementEvent e, INamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
ElementEvent |
e |
The element to test. |
INamespaceMapper |
nsMapper |
The namespace mappings to use when expanding element QName prefixes. |
Returns
Type |
Description |
System.Boolean |
True if the element is valid. |
|
Improve this Doc
View Source
IsPropertyElementURI(String)
Checks whether a given QName is valid as a Property Element Uri.
Declaration
[Obsolete("Use IsPropertyElement(ElementEvent, INamespaceMapper) instead")]
public static bool IsPropertyElementURI(string qname)
Parameters
Type |
Name |
Description |
System.String |
qname |
QName to Test. |
Returns
Type |
Description |
System.Boolean |
True if the QName is valid. |
|
Improve this Doc
View Source
IsRdfID(String)
Validates that an ID is a valid NCName.
Declaration
public static bool IsRdfID(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
ID Value to Test. |
Returns
Type |
Description |
System.Boolean |
True if the ID is valid. |
|
Improve this Doc
View Source
IsRdfNamespace(String)
Validates that a URI matches the RDF/XML namespace URI.
Declaration
public static bool IsRdfNamespace(string nsUri)
Parameters
Type |
Name |
Description |
System.String |
nsUri |
The namespace URI to be validated. |
Returns
Type |
Description |
System.Boolean |
True if the URI matches the RDF/XML namespace URI. |
|
Improve this Doc
View Source
IsRdfNamespace(Uri)
Validates that a URI matches the RDF/XML namespace URI.
Declaration
public static bool IsRdfNamespace(Uri nsUri)
Parameters
Type |
Name |
Description |
System.Uri |
nsUri |
The namespace URI to be validated. |
Returns
Type |
Description |
System.Boolean |
True if the URI matches the RDF/XML namespace URI. |
|
Improve this Doc
View Source
IsRdfUriReference(String)
Validates that a URIReference is valid.
Declaration
public static bool IsRdfUriReference(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
URIReference to Test. |
Returns
Type |
Description |
System.Boolean |
True. |
|
Improve this Doc
View Source
IsResourceAttribute(AttributeEvent)
Checks whether an attribute is an rdf:resource attribute.
Declaration
[Obsolete("Use IsResourceAttribute(AttributeEvent, INamespaceMapper)")]
public static bool IsResourceAttribute(AttributeEvent attr)
Parameters
Returns
Type |
Description |
System.Boolean |
True if is an rdf:resource attribute. |
|
Improve this Doc
View Source
IsResourceAttribute(AttributeEvent, INamespaceMapper)
Checks whether an attribute is an rdf:resource attribute.
Declaration
public static bool IsResourceAttribute(AttributeEvent attr, INamespaceMapper nsMapper)
Parameters
Type |
Name |
Description |
AttributeEvent |
attr |
Attribute to Test. |
INamespaceMapper |
nsMapper |
The namespace prefix mappings to use when expanding the namespace prefix of the attribute. |
Returns
Type |
Description |
System.Boolean |
True if is an rdf:resource attribute. |
|
Improve this Doc
View Source
IsSyntaxTerm(String)
Checks whether a given QName is a Syntax Term.
Declaration
[Obsolete("Use IsSyntaxTerm(Uri, string) instead")]
public static bool IsSyntaxTerm(string qname)
Parameters
Type |
Name |
Description |
System.String |
qname |
QName to Test. |
Returns
Type |
Description |
System.Boolean |
True if the QName is a Syntax Term. |
|
Improve this Doc
View Source
IsSyntaxTerm(Uri, String)
Checks whether a given expanded name is a Syntax Term.
Declaration
public static bool IsSyntaxTerm(Uri nsUri, string localName)
Parameters
Type |
Name |
Description |
System.Uri |
nsUri |
The namespace URI of the expanded name. |
System.String |
localName |
The local name part of the expanded name. |
Returns
Type |
Description |
System.Boolean |
True if the expanded name is a Syntax Term. |
|
Improve this Doc
View Source
IsTypeAttribute(AttributeEvent, INamespaceMapper)
Checks whether an attribute is an rdf:type attribute.
Declaration
public static bool IsTypeAttribute(AttributeEvent attr, INamespaceMapper nsMapper)
Parameters
Returns
Type |
Description |
System.Boolean |
True if the attribute is and rdf:type attribute, false otherwise. |
|
Improve this Doc
View Source
IsValidBaseUri(String)
Checks whether a given Base Uri can be used for relative Uri resolution.
Declaration
public static bool IsValidBaseUri(string baseUri)
Parameters
Type |
Name |
Description |
System.String |
baseUri |
Base Uri to Test. |
Returns
Type |
Description |
System.Boolean |
True if the Base Uri can be used for relative Uri resolution. |
|
Improve this Doc
View Source
IsValidQName(String)
Determines whether a QName is valid for use in RDF/XML.
Declaration
public static bool IsValidQName(string qname)
Parameters
Type |
Name |
Description |
System.String |
qname |
QName. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsValidUriRefEncoding(String)
Checks whether a given URIRef is encoded in Unicode Normal Form C.
Declaration
public static bool IsValidUriRefEncoding(string uriref)
Parameters
Type |
Name |
Description |
System.String |
uriref |
URIRef to Test. |
Returns
Type |
Description |
System.Boolean |
True if the URIRef is encoded correctly. |