OWLRestriction

Objective-C

@protocol OWLRestriction <OWLAnonymousClassExpression>

Swift

protocol OWLRestriction : OWLAnonymousClassExpression

Represents a restriction (Object Property Restriction or Data Property Restriction) in the OWL 2 specification.

  • The property/properties that the restriction acts along.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<OWLPropertyExpression> _Nonnull property;
  • Determines if this is an object restriction.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isObjectRestriction;

    Swift

    var isObjectRestriction: Bool { get }
  • Determines if this is a data restriction.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isDataRestriction;

    Swift

    var isDataRestriction: Bool { get }