UNPKG

@rdfine/owl

Version:

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

43 lines (42 loc) 2.46 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/Resource.js'; import { ResourceMixinEx } from '../extensions/rdfs/Resource.js'; import * as rdfine from '@tpluscode/rdfine'; import { createFactory } from '@tpluscode/rdfine/factory'; import { owl } from './namespace.js'; import { ResourceMixin as RdfsResourceMixin } from '@rdfine/rdfs/lib/Resource'; import { PropertyMixin as RdfPropertyMixin } from '@rdfine/rdf/lib/Property'; export function NegativePropertyAssertionMixin(Resource) { let NegativePropertyAssertionClass = class NegativePropertyAssertionClass extends ResourceMixinEx(RdfsResourceMixin(Resource)) { }; __decorate([ rdfine.property.resource({ as: [RdfPropertyMixin] }), __metadata("design:type", Object) ], NegativePropertyAssertionClass.prototype, "assertionProperty", void 0); __decorate([ rdfine.property(), __metadata("design:type", Object) ], NegativePropertyAssertionClass.prototype, "sourceIndividual", void 0); __decorate([ rdfine.property(), __metadata("design:type", Object) ], NegativePropertyAssertionClass.prototype, "targetIndividual", void 0); __decorate([ rdfine.property.literal(), __metadata("design:type", Object) ], NegativePropertyAssertionClass.prototype, "targetValue", void 0); NegativePropertyAssertionClass = __decorate([ rdfine.namespace(owl) ], NegativePropertyAssertionClass); return NegativePropertyAssertionClass; } NegativePropertyAssertionMixin.appliesTo = owl.NegativePropertyAssertion; NegativePropertyAssertionMixin.createFactory = (env) => createFactory([RdfsResourceMixin, NegativePropertyAssertionMixin], { types: [owl.NegativePropertyAssertion] }, env);