Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@thi.ng/prefixes
Advanced tools
[!NOTE] This is one of 200 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.
🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️
50+ Linked Data vocabulary prefixes and their namespace URLs.
STABLE - used in production
Search or submit any issues for this package
yarn add @thi.ng/prefixes
ESM import:
import * as pre from "@thi.ng/prefixes";
Browser ESM import:
<script type="module" src="https://esm.run/@thi.ng/prefixes"></script>
For Node.js REPL:
const pre = await import("@thi.ng/prefixes");
Package sizes (brotli'd, pre-treeshake): ESM: 1.10 KB
None
This package only contains constants, no actual code. Please see source code for full list provided.
Note: some namespace URIs exist in two flavors - for RDF vocab and
as XML namespace. The latter versions are always prefixed with XML_
,
e.g.:
import { xsd, XML_XSD } from "@thi.ng/prefixes";
xsd // http://www.w3.org/2001/XMLSchema#
XML_XSD // http://www.w3.org/2001/XMLSchema
All current
@thi.ng/hiccup
consumers/processors support RDFa
attributes and specifically allow the prefix
attrib value to be given
as object of prefixes. This allows for very compact prefix definitions
like so:
import { serialize } from "@thi.ng/hiccup";
import { article, body, div, h1, html } from "@thi.ng/hiccup-html";
import { dc, schema } from "@thi.ng/prefixes";
serialize(
html({ lang: "en" },
body({ prefix: { dc, schema } },
article({ resource: "/posts/hello-world", typeof: "schema:BlogPosting"},
h1({ property: "dc:title" }, "Hello World"),
div({ property: "schema:articleBody" }, "...")
)
)
)
);
Serialized HTML/RDFa result:
<html lang="en">
<body prefix="dc: http://purl.org/dc/elements/1.1/ schema: http://schema.org/">
<article resource="/posts/hello-world" typeof="schema:BlogPosting">
<h1 property="dc:title">Hello World</h1>
<div property="schema:articleBody">...</div>
</article>
</body>
</html>
If this project contributes to an academic publication, please cite it as:
@misc{thing-prefixes,
title = "@thi.ng/prefixes",
author = "Karsten Schmidt",
note = "https://thi.ng/prefixes",
year = 2020
}
© 2020 - 2025 Karsten Schmidt // Apache License 2.0
FAQs
50+ Linked Data vocabulary prefixes and their namespace URLs
The npm package @thi.ng/prefixes receives a total of 524 weekly downloads. As such, @thi.ng/prefixes popularity was classified as not popular.
We found that @thi.ng/prefixes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.