GetClassPropertyByIteratorEx

Returns a handle to a property. If input property is zero, the handle will point to the first property having cardinality restriction to the class. else it will point to next property with known restriction If all properties are past (or no relevant properties are found), the function will return 0. minCard and maxCard will contain restrictions for returned property

Note: this function does not return inherited restrictions.

This call has the same behavior as GetClassPropertyByIterator, however needs to be used in case classes and / or properties are exchanged as a successive series of integers.

Syntax

//
//   Strong typing definition
//
RdfProperty     GetClassPropertyByIteratorEx(
                        OwlModel                model,
                        OwlClass                owlClass,
                        RdfProperty             rdfProperty,
                        int64_t                 * minCard,
                        int64_t                 * maxCard
                    );

static  inline  RdfProperty GetClassPropertyByIteratorEx(
                                    OwlModel                model,
                                    OwlClass                owlClass,
                                    RdfProperty             rdfProperty
                                )
{
    return  GetClassPropertyByIteratorEx(
                    model,
                    owlClass,
                    rdfProperty,
                    nullptr,                            //    minCard
                    nullptr                             //    maxCard
                );
}


//
//   Weak typing definition
//
int64_t __declspec(dllexport) __stdcall GetClassPropertyByIteratorEx(
                                                int64_t                 model,
                                                int64_t                 owlClass,
                                                int64_t                 rdfProperty,
                                                int64_t                 * minCard,
                                                int64_t                 * maxCard
                                            );

static  inline  int64_t GetClassPropertyByIteratorEx(
                                int64_t                 model,
                                int64_t                 owlClass,
                                int64_t                 rdfProperty
                            )
{
    return  GetClassPropertyByIteratorEx(
                    model,
                    owlClass,
                    rdfProperty,
                    nullptr,                            //    minCard
                    nullptr                             //    maxCard
                );
}
    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property owlClass

Size: 64 bit / 8 byte (value)
This attribute represents a handle to the class. The term owl is comming from W3C, the classes follow the expression power of Semantic Web concepts, therefore classes support multiple inheritance. Technically classes can also be distributed over different resources, however for this the parametric library is required as an extension on the basic Geometry Kernel API.

Property rdfProperty

Size: 64 bit / 8 byte (value)
This attribute represents a handle to the property, this can be either a datatype property (attribute), an object property (relation) or non-defined property. The handle will be static during the life-time of the model, when the model (or part of it) is saved and opened again, the handle will most probably be different.

Property minCard

Size: 64 bit / 8 byte (reference)
The minimum cardinality (i.e. number of elements) of this property.

Property maxCard

Size: 64 bit / 8 byte (reference)
The maximum cardinality (i.e. number of elements) of this property.