UNPKG

@rdfine/owl

Version:

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

23 lines (22 loc) 1.41 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; }; import '../extensions/rdf/Property.js'; import { PropertyMixinEx } from '../extensions/rdf/Property.js'; import * as rdfine from '@tpluscode/rdfine'; import { createFactory } from '@tpluscode/rdfine/factory'; import { owl } from './namespace.js'; import { PropertyMixin as RdfPropertyMixin } from '@rdfine/rdf/lib/Property'; export function OntologyPropertyMixin(Resource) { let OntologyPropertyClass = class OntologyPropertyClass extends PropertyMixinEx(RdfPropertyMixin(Resource)) { }; OntologyPropertyClass = __decorate([ rdfine.namespace(owl) ], OntologyPropertyClass); return OntologyPropertyClass; } OntologyPropertyMixin.appliesTo = owl.OntologyProperty; OntologyPropertyMixin.createFactory = (env) => createFactory([RdfPropertyMixin, OntologyPropertyMixin], { types: [owl.OntologyProperty] }, env);