(in-package 'USER) (lload "Recover/until-regional-winery.lisp") ; REGIONAL-WINERY (cl-define-primitive-role 'region :attribute t :inverse 'wineries) ; ;an attribute withan inverse (cl-define-concept 'REGIONAL-WINERY '(AND WINERY (ALL region WINE-REGION) (AT-LEAST 1 region))) #| The above one is the best definition. An alternative definition is: (cl-define-role 'region) ; a generic role (cl-define-concept 'REGIONAL-WINERY '(AND WINERY (ALL region WINE-REGION) (AT-LEAST 1 region) (AT-MOST 1 region))) But making region a generic role will make this concept more verbose than it needs to be and will make the definitions of subconcepts of REGIONAL-WINERY more complex as well. |#