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:
Syntax public bool ReduceToQName(
string uri,
out string qname,
out string tempNamespace
)
Public Function ReduceToQName (
uri As String,
<OutAttribute> ByRef qname As String,
<OutAttribute> ByRef tempNamespace As String
) As Boolean
Parameters
- uri
- Type: SystemString
The Uri to attempt to reduce. - qname
- Type: SystemString
The value to output the QName to if possible. - tempNamespace
- 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@)"]
Remarks
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