UNPKG

@rdfine/owl

Version:

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

85 lines (84 loc) 4.22 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 * as rdfine from '@tpluscode/rdfine'; import { createFactory } from '@tpluscode/rdfine/factory'; import { owl } from './namespace.js'; import { ClassMixin } from './Class.js'; import { ClassMixin as RdfsClassMixin } from '@rdfine/rdfs/lib/Class'; import { ResourceMixin as RdfsResourceMixin } from '@rdfine/rdfs/lib/Resource'; import { DatatypeMixin as RdfsDatatypeMixin } from '@rdfine/rdfs/lib/Datatype'; import { ListMixin as RdfListMixin } from '@rdfine/rdf/lib/List'; import { PropertyMixin as RdfPropertyMixin } from '@rdfine/rdf/lib/Property'; export function RestrictionMixin(Resource) { let RestrictionClass = class RestrictionClass extends ClassMixin(Resource) { }; __decorate([ rdfine.property.resource({ as: [RdfsClassMixin] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "allValuesFrom", void 0); __decorate([ rdfine.property.literal({ type: Number }), __metadata("design:type", Object) ], RestrictionClass.prototype, "cardinality", void 0); __decorate([ rdfine.property.resource({ as: [RdfsResourceMixin] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "hasSelf", void 0); __decorate([ rdfine.property.resource({ as: [RdfsResourceMixin] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "hasValue", void 0); __decorate([ rdfine.property.literal({ type: Number }), __metadata("design:type", Object) ], RestrictionClass.prototype, "maxCardinality", void 0); __decorate([ rdfine.property.literal({ type: Number }), __metadata("design:type", Object) ], RestrictionClass.prototype, "maxQualifiedCardinality", void 0); __decorate([ rdfine.property.literal({ type: Number }), __metadata("design:type", Object) ], RestrictionClass.prototype, "minCardinality", void 0); __decorate([ rdfine.property.literal({ type: Number }), __metadata("design:type", Object) ], RestrictionClass.prototype, "minQualifiedCardinality", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [owl.Class] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "onClass", void 0); __decorate([ rdfine.property.resource({ as: [RdfsDatatypeMixin] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "onDataRange", void 0); __decorate([ rdfine.property.resource({ as: [RdfListMixin] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "onProperties", void 0); __decorate([ rdfine.property.resource({ as: [RdfPropertyMixin] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "onProperty", void 0); __decorate([ rdfine.property.literal({ type: Number }), __metadata("design:type", Object) ], RestrictionClass.prototype, "qualifiedCardinality", void 0); __decorate([ rdfine.property.resource({ as: [RdfsClassMixin] }), __metadata("design:type", Object) ], RestrictionClass.prototype, "someValuesFrom", void 0); RestrictionClass = __decorate([ rdfine.namespace(owl) ], RestrictionClass); return RestrictionClass; } RestrictionMixin.appliesTo = owl.Restriction; RestrictionMixin.createFactory = (env) => createFactory([ClassMixin, RestrictionMixin], { types: [owl.Restriction] }, env);