OpenModel
References inside to other ontologies will be included.
A handle to the model will be returned, or 0 in case something went wrong.
Syntax
// // Strong typing definition // OwlModel OpenModel( const char * fileName ); static inline OwlModel OpenModel( char * fileName ) { return OpenModel( (const char*) fileName ); } // // Weak typing definition // int64_t __declspec(dllexport) __stdcall OpenModel( const char * fileName ); static inline int64_t OpenModel( char * fileName ) { return OpenModel( (const char*) fileName ); }
Property fileName
Size: 64 bit / 8 byte (reference)
Example (based on pure API calls)
Here you can find code snippits that show how the API call OpenModel can be used.
#include "./include/engine.h" int64_t GetFileInstanceCount(char * fileName) { int64_t instanceCount = 0, model = OpenModel(fileName); if (model) { int64_t myInstance = GetInstancesByIterator(model, 0); while (myInstance) { instanceCount++; myInstance = GetInstancesByIterator(model, myInstance); } CloseModel(model); } return instanceCount; } int main() { int64_t noInstances = GetFileInstanceCount("c:\\created\\myFile.bin"); }