TMEDataFactory
@interface TMEDataFactory : NSObject
This class is a point to create instances of model classes referenced throughout the reasoner API.
-
Creates a new atomic concept that represents the specified OWL class.
Declaration
Objective-C
- (nonnull TMEAtomicConcept *)atomicConceptWithOwlClass: (nonnull id<OWLClass>)owlClass;
Parameters
owlClass
OWL class.
Return Value
New atomic concept instance.
-
Creates a new atomic concept that represents the OWL class with the specified IRI.
Declaration
Objective-C
- (nonnull TMEAtomicConcept *)atomicConceptWithIri:(nonnull OWLIRI *)iri;
Swift
func atomicConcept(with iri: OWLIRI) -> TMEAtomicConcept
Parameters
iri
IRI of the OWL class.
Return Value
New atomic concept instance.
-
Creates a new cardinality role.
Declaration
Objective-C
- (nonnull TMECardinalityRole *) cardinalityRoleWithProperty:(nonnull id<OWLObjectProperty>)property cardinality:(NSUInteger)cardinality;
Parameters
property
Object property.
cardinality
Cardinality.
Return Value
New cardinality role instance.
-
Creates a new cardinality role.
Declaration
Objective-C
- (nonnull TMECardinalityRole *)cardinalityRoleWithIri:(nonnull OWLIRI *)iri cardinality:(NSUInteger)cardinality;
Swift
func cardinalityRole(with iri: OWLIRI, cardinality: UInt) -> TMECardinalityRole
Parameters
iri
IRI of the object property.
cardinality
Cardinality.
Return Value
New cardinality role instance.
-
Creates a new value restriction.
Declaration
Objective-C
- (nonnull TMEUniversalRole *) universalRoleWithProperty:(nonnull id<OWLObjectProperty>)property filler:(nonnull TMESemanticDescription *)filler;
Parameters
property
Object property.
filler
Filler of the value restriction.
Return Value
New value restriction instance.
-
Creates a new value restriction.
Declaration
Objective-C
- (nonnull TMEUniversalRole *) universalRoleWithIri:(nonnull OWLIRI *)iri filler:(nonnull TMESemanticDescription *)filler;
Swift
func universalRole(with iri: OWLIRI, filler: TMESemanticDescription) -> TMEUniversalRole
Parameters
iri
IRI of the object property.
filler
Filler of the value restriction.
Return Value
New value restriction instance.
-
Creates a new semantic description.
Declaration
Objective-C
- (nonnull TMESemanticDescription *)semanticDescription;
Swift
func semanticDescription() -> TMESemanticDescription
Return Value
New semantic description instance.
-
Creates a new console logger.
Declaration
Objective-C
- (nonnull TMEConsoleLogger *)consoleLogger;
Swift
func consoleLogger() -> TMEConsoleLogger
Return Value
New console logger.
-
Creates a new file logger.
Declaration
Objective-C
- (nonnull TMEFileLogger *)fileLoggerWithFileURL:(nonnull NSURL *)fileURL;
Swift
func fileLogger(withFileURL fileURL: URL) -> TMEFileLogger
Parameters
fileURL
URL of the log file.
Return Value
New file logger.
-
Creates a new in-memory logger.
Declaration
Objective-C
- (nonnull TMEMemoryLogger *)memoryLogger;
Swift
func memoryLogger() -> TMEMemoryLogger
Return Value
New in-memory logger.
-
Creates a new null logger.
Declaration
Objective-C
- (nonnull TMENullLogger *)nullLogger;
Swift
func nullLogger() -> TMENullLogger
Return Value
New null logger.