Class PropertyFunctionFactory
Factory for creating property functions.
Inherited Members
Namespace: VDS.RDF.Query.PropertyFunctions
Assembly: dotNetRdf.dll
Syntax
public static class PropertyFunctionFactory
Properties
| Edit this page View SourceFactoryCount
Gets the number of globally registered factories.
Declaration
public static int FactoryCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceAddFactory(IPropertyFunctionFactory)
Adds a globally registered factory.
Declaration
public static void AddFactory(IPropertyFunctionFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyFunctionFactory | factory | Factory. |
IsPropertyFunction(Uri)
Gets whether a URI is considered a property function by the global factories.
Declaration
public static bool IsPropertyFunction(Uri u)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | u | Function URI. |
Returns
| Type | Description |
|---|---|
| bool |
IsPropertyFunction(Uri, IEnumerable<IPropertyFunctionFactory>)
Gets whether a URI is considered a property function by any global/local factory.
Declaration
public static bool IsPropertyFunction(Uri u, IEnumerable<IPropertyFunctionFactory> localFactories)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | u | Function URI. |
| IEnumerable<IPropertyFunctionFactory> | localFactories | Locally scoped factories. |
Returns
| Type | Description |
|---|---|
| bool |
IsRegisteredFactory(Type)
Gets whether a factory is registered.
Declaration
public static bool IsRegisteredFactory(Type factoryType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | factoryType | Factory Type. |
Returns
| Type | Description |
|---|---|
| bool |
IsRegisteredFactory(IPropertyFunctionFactory)
Gets whether a factory is registered.
Declaration
public static bool IsRegisteredFactory(IPropertyFunctionFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyFunctionFactory | factory | Factory. |
Returns
| Type | Description |
|---|---|
| bool |
RemoveFactory(IPropertyFunctionFactory)
Removes a globally registered factory.
Declaration
public static void RemoveFactory(IPropertyFunctionFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyFunctionFactory | factory | Factory. |
TryCreatePropertyFunction(PropertyFunctionInfo, IEnumerable<IPropertyFunctionFactory>, out IPropertyFunctionPattern)
Tries to create a property function.
Declaration
public static bool TryCreatePropertyFunction(PropertyFunctionInfo info, IEnumerable<IPropertyFunctionFactory> localFactories, out IPropertyFunctionPattern function)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyFunctionInfo | info | Property Function information. |
| IEnumerable<IPropertyFunctionFactory> | localFactories | Locally Scoped factories. |
| IPropertyFunctionPattern | function | Property Function. |
Returns
| Type | Description |
|---|---|
| bool |
TryCreatePropertyFunction(PropertyFunctionInfo, out IPropertyFunctionPattern)
Tries to create a property function.
Declaration
public static bool TryCreatePropertyFunction(PropertyFunctionInfo info, out IPropertyFunctionPattern function)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyFunctionInfo | info | Property Function information. |
| IPropertyFunctionPattern | function | Property Function. |
Returns
| Type | Description |
|---|---|
| bool |