Class CachingUriFactory
The default implementation of IUri
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class CachingUriFactory : IUriFactory
Constructors
| Improve this Doc View SourceCachingUriFactory()
Creates a new factory instance as a child of the root UriFactory as specified by Root.
Declaration
public CachingUriFactory()
CachingUriFactory(IUriFactory)
Creates a new factory instances as a child of the specified parent factory.
Declaration
public CachingUriFactory(IUriFactory parent)
Parameters
Type | Name | Description |
---|---|---|
IUri |
parent | The parent factory instance. May be null. |
Properties
| Improve this Doc View SourceInternUris
Get / set the flag that controls the caching of Uri instances constructed by this factory.
Declaration
public bool InternUris { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
When Intern
Methods
| Improve this Doc View SourceClear()
Clears all interned URIs.
Declaration
public void Clear()
Create(string)
Creates a URI interning it if interning is enabled via the Intern
Declaration
public Uri Create(string uri)
Parameters
Type | Name | Description |
---|---|---|
string | uri | String URI. |
Returns
Type | Description |
---|---|
System. |
Remarks
When URI interning is disabled this is equivalent to just invoking the constructor of the System.
Create(Uri, string)
Create a System.
Declaration
public Uri Create(Uri baseUri, string relativeUri)
Parameters
Type | Name | Description |
---|---|---|
System. |
baseUri | The base URI to resolve |
string | relativeUri | String URI. |
Returns
Type | Description |
---|---|
System. |
Remarks
When URI interning is disabled this is equivalent to just invoking the constructor of the System.
TryGetUri(string, out Uri)
Return the interned URI instance if available.
Declaration
public bool TryGetUri(string uri, out Uri value)
Parameters
Type | Name | Description |
---|---|---|
string | uri | The string URI to return an interned URI instance for. |
System. |
value | Receives the interned System. |
Returns
Type | Description |
---|---|
System. |
True if an interned System. |