UNPKG

@rdfine/rico

Version:

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

116 lines (115 loc) 5.36 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 PlaceMixin(Resource) { let PlaceClass = class PlaceClass extends ThingMixin(Resource) { }; __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "contained", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "containsOrContained", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "containsTransitive", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "directlyContains", void 0); __decorate([ rdfine.property(), __metadata("design:type", Object) ], PlaceClass.prototype, "geographicalCoordinates", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.PhysicalLocation] }), __metadata("design:type", Object) ], PlaceClass.prototype, "hasOrHadPhysicalLocation", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.PlaceName] }), __metadata("design:type", Object) ], PlaceClass.prototype, "hasOrHadPlaceName", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.PlaceType] }), __metadata("design:type", Object) ], PlaceClass.prototype, "hasOrHadPlaceType", void 0); __decorate([ rdfine.property(), __metadata("design:type", Object) ], PlaceClass.prototype, "history", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Person] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isBirthPlaceOf", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isContainedByTransitive", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Person] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isDeathPlaceOf", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isDirectlyContainedBy", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isOrWasAdjacentTo", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isOrWasContainedBy", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Agent] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isOrWasJurisdictionOf", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Thing] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isOrWasLocationOf", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Agent] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isOrWasLocationOfAgent", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Thing] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isPlaceAssociatedWith", void 0); __decorate([ rdfine.property.resource({ implicitTypes: [rico.Agent] }), __metadata("design:type", Object) ], PlaceClass.prototype, "isPlaceAssociatedWithAgent", void 0); __decorate([ rdfine.property(), __metadata("design:type", Object) ], PlaceClass.prototype, "location", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "overlapsOrOverlapped", void 0); __decorate([ rdfine.property.resource({ as: [PlaceMixin] }), __metadata("design:type", Object) ], PlaceClass.prototype, "wasContainedBy", void 0); PlaceClass = __decorate([ rdfine.namespace(rico) ], PlaceClass); return PlaceClass; } PlaceMixin.appliesTo = rico.Place; PlaceMixin.createFactory = (env) => createFactory([ThingMixin, PlaceMixin], { types: [rico.Place] }, env);