lincd
Version:
LINCD is a JavaScript library for building user interfaces with linked data (also known as 'structured data', or RDF)
24 lines • 1.07 kB
JavaScript
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { NamedNode } from '../models.js';
import { Prefix } from '../utils/Prefix.js';
//Important note: the actual ontology node is WITHOUT HASH, because in the ontology itself, that is how the node is defined
//(other than RDF and RDFS who DO define their URL INCLUDING HASH as ontologies)
//so here we make sure of that, by adding the hash after creating the ontology node
var base = 'http://www.w3.org/2002/07/owl';
export var _ontologyResource = NamedNode.getOrCreate(base);
base += '#';
Prefix.add('owl', base);
var ObjectProperty = NamedNode.getOrCreate(base + 'ObjectProperty');
var DataProperty = NamedNode.getOrCreate(base + 'DataProperty');
var equivalentClass = NamedNode.getOrCreate(base + 'equivalentClass');
export const owl = {
_ontologyResource,
ObjectProperty,
DataProperty,
equivalentClass,
};
//# sourceMappingURL=owl.js.map