Class PropertyFunctionFactory
Factory for creating property functions.
Inheritance
System.Object
PropertyFunctionFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query.PropertyFunctions
Assembly: dotNetRDF.dll
Syntax
public static class PropertyFunctionFactory
Properties
| Improve this Doc View SourceFactoryCount
Gets the number of globally registered factories.
Declaration
public static int FactoryCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc 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 |
---|---|---|
System.Uri | u | Function URI. |
Returns
Type | Description |
---|---|
System.Boolean |
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 |
---|---|---|
System.Uri | u | Function URI. |
System.Collections.Generic.IEnumerable<IPropertyFunctionFactory> | localFactories | Locally scoped factories. |
Returns
Type | Description |
---|---|
System.Boolean |
IsRegisteredFactory(Type)
Gets whether a factory is registered.
Declaration
public static bool IsRegisteredFactory(Type factoryType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | factoryType | Factory Type. |
Returns
Type | Description |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |
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. |
System.Collections.Generic.IEnumerable<IPropertyFunctionFactory> | localFactories | Locally Scoped factories. |
IPropertyFunctionPattern | function | Property Function. |
Returns
Type | Description |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |