Click or drag to resize

QNameOutputMapperReduceToQName Method (String, String, String)

A Function which attempts to reduce a Uri to a QName and issues a Temporary Namespace if required.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
public bool ReduceToQName(
	string uri,
	out string qname,
	out string tempNamespace


Type: SystemString
The Uri to attempt to reduce.
Type: SystemString
The value to output the QName to if possible.
Type: SystemString
The Temporary Namespace issued (if any).

Return Value

Type: Boolean

[Missing <returns> documentation for "M:VDS.RDF.QNameOutputMapper.ReduceToQName(System.String,System.String@,System.String@)"]


This function will always returns a possible QName for the URI if the format of the URI permits it. It doesn't guarentee that the QName will be valid for the syntax it is being written to - it is up to implementers of writers to validate the QNames returned.

Where necessary a Temporary Namespace will be issued and the tempNamespace parameter will be set to the prefix of the new temporary namespace.

See Also