UNPKG

@rdfine/rico

Version:

> ## @rdfine/rico > ### Generated JavaScript types for Records in Contexts Ontology (ICA RiC-O)

180 lines (179 loc) 8.07 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 { rico } from './namespace.js'; import { ThingMixin } from './Thing.js'; export function AgentMixin(Resource) { let AgentClass = class AgentClass extends ThingMixin(Resource) { }; __decorate([ rdfine.property.resource({ implicitTypes: [rico.Place] }), __metadata("design:type", Object) ], AgentClass.prototype, "agentHasOrHadLocation", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Mandate] }), __metadata("design:type", Object) ], AgentClass.prototype, "authorizedBy", void 0); __decorate([ rdfine.property(), __metadata("design:type", Object) ], AgentClass.prototype, "authorizingMandate", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "hadSubordinate", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasDirectSubordinate", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.AgentName] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadAgentName", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Thing] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadAuthorityOver", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadController", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Place] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadJurisdiction", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Language] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadLanguage", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.LegalStatus] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadLegalStatus", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadSubordinate", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasOrHadWorkRelationWith", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasSubordinateTransitive", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "hasSuccessor", void 0); __decorate([ rdfine.property(), __metadata("design:type", Object) ], AgentClass.prototype, "history", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isAccumulatorOf", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isAddresseeOf", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "isAgentAssociatedWithAgent", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Place] }), __metadata("design:type", Object) ], AgentClass.prototype, "isAgentAssociatedWithPlace", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.MandateRelation] }), __metadata("design:type", Object) ], AgentClass.prototype, "isAuthorizingAgentInMandateRelation", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isCollectorOf", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isCreatorOf", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "isDirectSubordinateTo", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isOrganicOrFunctionalProvenanceOf", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isOrganicProvenanceOf", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "isOrWasControllerOf", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isOrWasHolderOf", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isOrWasManagerOf", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Rule] }), __metadata("design:type", Object) ], AgentClass.prototype, "isOrWasResponsibleForEnforcing", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "isOrWasSubordinateTo", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.RecordResource] }), __metadata("design:type", Object) ], AgentClass.prototype, "isPublisherOf", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isReceiverOf", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Rule] }), __metadata("design:type", Object) ], AgentClass.prototype, "isResponsibleForIssuing", void 0); __decorate([ rdfine.property.resource(), __metadata("design:type", Object) ], AgentClass.prototype, "isSenderOf", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "isSubordinateToTransitive", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "isSuccessorOf", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Activity] }), __metadata("design:type", Object) ], AgentClass.prototype, "performsOrPerformed", void 0); __decorate([ rdfine.property.resource({ as: [AgentMixin] }), __metadata("design:type", Object) ], AgentClass.prototype, "wasSubordinateTo", void 0); AgentClass = __decorate([ rdfine.namespace(rico) ], AgentClass); return AgentClass; } AgentMixin.appliesTo = rico.Agent; AgentMixin.createFactory = (env) => createFactory([ThingMixin, AgentMixin], { types: [rico.Agent] }, env);