@rdfine/rico
Version:
> ## @rdfine/rico > ### Generated JavaScript types for Records in Contexts Ontology (ICA RiC-O)
283 lines (282 loc) • 12.3 kB
JavaScript
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';
export function ThingMixin(Resource) {
let ThingClass = class ThingClass extends Resource {
};
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "beginningDate", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "creationDate", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "date", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "destructionDate", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "directlyFollowsInSequence", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "directlyPrecedesInSequence", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "endDate", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "followedInSequence", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "followsInSequenceTransitive", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "followsInTime", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "followsOrFollowed", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "generalDescription", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hadPart", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Date] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasBeginningDate", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Date] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasDestructionDate", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasDirectPart", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Date] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasEndDate", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Extent] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasExtent", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Date] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasModificationDate", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Appellation] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasOrHadAppellation", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Type] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasOrHadCategory", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Identifier] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasOrHadIdentifier", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Place] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasOrHadLocation", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Name] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasOrHadName", void 0);
__decorate([
rdfine.property.resource(),
__metadata("design:type", Object)
], ThingClass.prototype, "hasOrHadOwner", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasOrHadPart", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "hasPartTransitive", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "height", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "identifier", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Date] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isAssociatedWithDate", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Event] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isAssociatedWithEvent", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Place] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isAssociatedWithPlace", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Rule] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isAssociatedWithRule", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isDirectPartOf", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isEquivalentTo", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Event] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasAffectedBy", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.RecordResource] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasDescribedBy", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.RecordResource] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasMainSubjectOf", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Event] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasParticipantIn", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasPartOf", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Rule] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasRegulatedBy", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.RecordResource] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasSubjectOf", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Agent] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isOrWasUnderAuthorityOf", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isPartOfTransitive", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "isRelatedTo", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "lastModificationDate", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "length", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "measure", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "modificationDate", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "name", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "precededInSequence", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "precedesInSequenceTransitive", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "precedesInTime", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "precedesOrPreceded", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "referenceSystem", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Event] }),
__metadata("design:type", Object)
], ThingClass.prototype, "resultsOrResultedFrom", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "ruleFollowed", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Relation] }),
__metadata("design:type", Object)
], ThingClass.prototype, "thingIsConnectedToRelation", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Relation] }),
__metadata("design:type", Object)
], ThingClass.prototype, "thingIsContextOfRelation", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Relation] }),
__metadata("design:type", Object)
], ThingClass.prototype, "thingIsSourceOfRelation", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Relation] }),
__metadata("design:type", Object)
], ThingClass.prototype, "thingIsTargetOfRelation", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "type", void 0);
__decorate([
rdfine.property.resource({ implicitTypes: [rico.Date] }),
__metadata("design:type", Object)
], ThingClass.prototype, "wasLastUpdatedAtDate", void 0);
__decorate([
rdfine.property.resource({ as: [ThingMixin] }),
__metadata("design:type", Object)
], ThingClass.prototype, "wasPartOf", void 0);
__decorate([
rdfine.property(),
__metadata("design:type", Object)
], ThingClass.prototype, "width", void 0);
ThingClass = __decorate([
rdfine.namespace(rico)
], ThingClass);
return ThingClass;
}
ThingMixin.appliesTo = rico.Thing;
ThingMixin.createFactory = (env) => createFactory([ThingMixin], { types: [rico.Thing] }, env);