GetPropertyRestrictions

This function returns the minCard and maxCard of a certain property in the context of a class. The cardinality of a property in an instance has to be between minCard and maxCard. If undefined minCard and/or maxCard will be of value -1, this means for minCard that it is 0 and for maxCard it means infinity.

Note: this function does not return inherited restrictions.

Syntax

//   Visual Studio for Windows
public:
void __declspec(dllexport) __stdcall GetPropertyRestrictions(
            __int64        owlClass,
            __int64        rdfProperty,
            __int64        * minCard,
            __int64        * maxCard
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
void GetPropertyRestrictions(
            int64_t        owlClass,
            int64_t        rdfProperty,
            int64_t        * minCard,
            int64_t        * maxCard
        );    

Property owlClass

Size: 64 bit / 8 byte (value)
...

Property rdfProperty

Size: 64 bit / 8 byte (value)
...

Property minCard

Size: 64 bit / 8 byte (reference)
the minimum cardinality of this property

Property maxCard

Size: 64 bit / 8 byte (reference)
the maximum cardinality of this property