Click or drag to resize

NamespaceMapper Class

Class for representing Mappings between Prefixes and Namespace URIs.
Inheritance Hierarchy

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class NamespaceMapper : INamespaceMapper, 
	IDisposable

The NamespaceMapper type exposes the following members.

Constructors
  NameDescription
Public methodNamespaceMapper
Constructs a new Namespace Map.
Public methodNamespaceMapper(Boolean)
Constructs a new Namespace Map which is optionally empty.
Protected methodNamespaceMapper(INamespaceMapper)
Constructs a new Namespace Map which is based on an existing map.
Top
Properties
  NameDescription
Public propertyPrefixes
Gets a Enumerator of all the Prefixes.
Top
Methods
  NameDescription
Public methodAddNamespace
Adds a Namespace to the Namespace Map.
Public methodClear
Clears the Namespace Map.
Public methodDispose
Disposes of a Namespace Map.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNamespaceUri
Returns the Namespace URI associated with the given Prefix.
Public methodGetPrefix
Returns the Prefix associated with the given Namespace URI.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasNamespace(String)
Method which checks whether a given Namespace Prefix is defined.
Public methodHasNamespace(Uri)
Method which checks whether a given Namespace is defined.
Public methodImport
Imports the contents of another Namespace Map into this Namespace Map.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnNamespaceAdded
Internal Helper for the NamespaceAdded Event which raises it only when a Handler is registered.
Protected methodOnNamespaceModified
Internal Helper for the NamespaceModified Event which raises it only when a Handler is registered.
Protected methodOnNamespaceRemoved
Internal Helper for the NamespaceRemoved Event which raises it only when a Handler is registered.
Public methodReduceToQName
A Function which attempts to reduce a Uri to a QName.
Public methodRemoveNamespace
Removes a Namespace from the NamespaceMapper.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventNamespaceAdded
Event which is raised when a Namespace is Added
Public eventNamespaceModified
Event which is raised when a Namespace is Modified
Public eventNamespaceRemoved
Event which is raised when a Namespace is Removed
Top
Fields
  NameDescription
Protected field_prefixes
Mapping of URIs to Prefixes.
Protected field_uris
Mapping of Prefixes to URIs.
Public fieldStatic memberOWL
Constant Uri for the OWL Namespace.
Public fieldStatic memberRDF
Constant Uri for the RDF Namespace.
Public fieldStatic memberRDFS
Constant Uri for the RDF Scheme Namespace.
Public fieldStatic memberXMLSCHEMA
Constant Uri for the XML Scheme Namespace.
Top
See Also