Interface INodeFactory
Interface for classes which can create Nodes.
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public interface INodeFactory
Properties
| Improve this Doc View SourceBaseUri
Get or set the base URI used to resolve relative URI references.
Declaration
Uri BaseUri { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
NamespaceMap
Get the namespace map for this node factory.
Declaration
INamespaceMapper NamespaceMap { get; }
Property Value
Type | Description |
---|---|
INamespaceMapper |
NormalizeLiteralValues
Get or set the flag that controls whether the value strings of literal nodes should be normalized on creation.
Declaration
bool NormalizeLiteralValues { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UriFactory
Get or set the factory to use when creating URIs.
Declaration
IUriFactory UriFactory { get; set; }
Property Value
Type | Description |
---|---|
IUriFactory |
Methods
| Improve this Doc View SourceCreateBlankNode()
Creates a Blank Node with a new automatically generated ID.
Declaration
IBlankNode CreateBlankNode()
Returns
Type | Description |
---|---|
IBlankNode |
CreateBlankNode(string)
Creates a Blank Node with the given Node ID.
Declaration
IBlankNode CreateBlankNode(string nodeId)
Parameters
Type | Name | Description |
---|---|---|
string | nodeId | Node ID. |
Returns
Type | Description |
---|---|
IBlankNode |
CreateGraphLiteralNode()
Creates a Graph Literal Node which represents the empty Subgraph.
Declaration
IGraphLiteralNode CreateGraphLiteralNode()
Returns
Type | Description |
---|---|
IGraphLiteralNode |
CreateGraphLiteralNode(IGraph)
Creates a Graph Literal Node which represents the given Subgraph.
Declaration
IGraphLiteralNode CreateGraphLiteralNode(IGraph subgraph)
Parameters
Type | Name | Description |
---|---|---|
IGraph | subgraph | Subgraph. |
Returns
Type | Description |
---|---|
IGraphLiteralNode |
CreateLiteralNode(string, string)
Creates a Literal Node with the given Value and Language.
Declaration
ILiteralNode CreateLiteralNode(string literal, string langSpec)
Parameters
Type | Name | Description |
---|---|---|
string | literal | Value of the Literal. |
string | langSpec | Language Specifier for the Literal. |
Returns
Type | Description |
---|---|
ILiteralNode |
CreateLiteralNode(string, Uri)
Creates a Literal Node with the given Value and Data Type.
Declaration
ILiteralNode CreateLiteralNode(string literal, Uri datatype)
Parameters
Type | Name | Description |
---|---|---|
string | literal | Value of the Literal. |
System.Uri | datatype | Data Type URI of the Literal. |
Returns
Type | Description |
---|---|
ILiteralNode |
CreateLiteralNode(string)
Creates a Literal Node with the given Value.
Declaration
ILiteralNode CreateLiteralNode(string literal)
Parameters
Type | Name | Description |
---|---|---|
string | literal | Value of the Literal. |
Returns
Type | Description |
---|---|
ILiteralNode |
CreateTripleNode(Triple)
Creates a node that quotes the given triple.
Declaration
ITripleNode CreateTripleNode(Triple triple)
Parameters
Type | Name | Description |
---|---|---|
Triple | triple | The triple to be the quoted value of the created node. |
Returns
Type | Description |
---|---|
ITripleNode |
CreateUriNode()
Creates a URI Node that corresponds to the current Base URI of the node factory.
Declaration
IUriNode CreateUriNode()
Returns
Type | Description |
---|---|
IUriNode |
CreateUriNode(string)
Creates a URI Node for the given QName using the Graphs NamespaceMap to resolve the QName.
Declaration
IUriNode CreateUriNode(string qName)
Parameters
Type | Name | Description |
---|---|---|
string | qName | QName. |
Returns
Type | Description |
---|---|
IUriNode |
CreateUriNode(Uri)
Creates a URI Node for the given URI.
Declaration
IUriNode CreateUriNode(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | URI. |
Returns
Type | Description |
---|---|
IUriNode |
CreateVariableNode(string)
Creates a Variable Node for the given Variable Name.
Declaration
IVariableNode CreateVariableNode(string varName)
Parameters
Type | Name | Description |
---|---|---|
string | varName |
Returns
Type | Description |
---|---|
IVariableNode |
GetNextBlankNodeID()
Creates a new unused Blank Node ID and returns it.
Declaration
string GetNextBlankNodeID()
Returns
Type | Description |
---|---|
string |
ResolveQName(string)
Resolve a QName to a URI using this factory's NamespaceMap and BaseUri.
Declaration
Uri ResolveQName(string qName)
Parameters
Type | Name | Description |
---|---|---|
string | qName |
Returns
Type | Description |
---|---|
System.Uri |