UNPKG

@rdfine/owl

Version:

> ## @rdfine/owl > ### Generated JavaScript types for OWL Web Ontology Language

43 lines (42 loc) 2.19 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import '../extensions/rdfs/Class.js'; import { ClassMixinEx } from '../extensions/rdfs/Class.js'; import * as rdfine from '@tpluscode/rdfine'; import { createFactory } from '@tpluscode/rdfine/factory'; import { owl } from './namespace.js'; import { ClassMixin as RdfsClassMixin } from '@rdfine/rdfs/lib/Class'; import { ListMixin as RdfListMixin } from '@rdfine/rdf/lib/List'; export function ClassMixin(Resource) { let ClassClass = class ClassClass extends ClassMixinEx(RdfsClassMixin(Resource)) { }; __decorate([ rdfine.property.resource({ as: [ClassMixin] }), __metadata("design:type", Object) ], ClassClass.prototype, "complementOf", void 0); __decorate([ rdfine.property.resource({ as: [RdfListMixin] }), __metadata("design:type", Object) ], ClassClass.prototype, "disjointUnionOf", void 0); __decorate([ rdfine.property.resource({ as: [ClassMixin] }), __metadata("design:type", Object) ], ClassClass.prototype, "disjointWith", void 0); __decorate([ rdfine.property.resource({ as: [RdfListMixin] }), __metadata("design:type", Object) ], ClassClass.prototype, "hasKey", void 0); ClassClass = __decorate([ rdfine.namespace(owl) ], ClassClass); return ClassClass; } ClassMixin.appliesTo = owl.Class; ClassMixin.createFactory = (env) => createFactory([RdfsClassMixin, ClassMixin], { types: [owl.Class] }, env);