Class UniqueBlankNodesHandler
A decorator for handlers which ensures that all blank nodes get unique IDs even if a blank node identifier is reused.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class UniqueBlankNodesHandler : BaseRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
Constructors
| Improve this Doc View SourceUniqueBlankNodesHandler(IRdfHandler)
Creates a new Unique Blank Nodes handler.
Declaration
public UniqueBlankNodesHandler(IRdfHandler handler)
Parameters
Type | Name | Description |
---|---|---|
IRdf |
handler |
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
Properties
| Improve this Doc View SourceAcceptsAll
Gets whether the inner handler accepts all.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
InnerHandlers
Gets the inner handler.
Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
Methods
| Improve this Doc View SourceCreateBlankNode(string)
Creates a Blank Node.
Declaration
public override IBlankNode CreateBlankNode(string nodeId)
Parameters
Type | Name | Description |
---|---|---|
string | nodeId | Node ID which will be ignored by this Handler. |
Returns
Type | Description |
---|---|
IBlank |
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
EndRdfInternal(bool)
Ends handling RDF.
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System. |
ok | Whether parsing completed OK. |
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
HandleBaseUriInternal(Uri)
Handles a Base URI declaration.
Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System. |
baseUri | Base URI. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
HandleNamespaceInternal(string, Uri)
Handles a Namespace declaration.
Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | Prefix. |
System. |
namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
HandleQuadInternal(Triple, IRefNode)
Handles a quad.
Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
HandleTripleInternal(Triple)
Handles a Triple.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create
StartRdfInternal()
Starts handling RDF.
Declaration
protected override void StartRdfInternal()
Overrides
Remarks
In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.
This handler essentially works by redirecting all calls to the argument taking form of Create