@manta-eu/ldo
v0.1.8
Published
TypeScript types for the Manta knowledge graph, generated from its SHACL shapes with LDkit
Downloads
3,762
Readme
@manta-eu/ldo
TypeScript types for the Manta knowledge graph, generated from its SHACL shapes with LDkit.
Documentation: developers.manta.eu
Installation
pnpm add @manta-eu/ldoUsage
Each export is a set of generated LDkit schemas and the namespaces they are built from:
import { namespaces } from "@manta-eu/ldo/namespaces";
import * as schemas from "@manta-eu/ldo/schemas";The types describe the graph as a whole. ./realm carries the vocabulary roots a deployment
rebases them onto:
import { realmRegistry, realmVocabRoots, defaultRealm } from "@manta-eu/ldo/realm";These read injected configuration: without VITE_REALM_REGISTRY carrying the roster your
application deploys, realmVocabRoots is empty and defaultRealm is "". VITE_KEYCLOAK_REALM
picks which of them is active, and is optional — unset means the default.
Exports
| Export | Contents |
| ------------------ | ---------------------------------------------------- |
| . | The generated schemas and namespaces together |
| ./schemas | LDkit schemas for every shape |
| ./namespaces | LDkit namespaces, and the prefix-to-IRI record |
| ./realm | Vocabulary roots and the registry that resolves them |
| ./sparql-types | Types for SPARQL result bindings |
| ./manual-schemas | Hand-written schemas for shapes that are not derived |
./ad-platform-links, ./external-links, ./figma-links and ./redirect-queries carry the
link-shaped helpers that go with them.
License
MIT
