@0xintuition/schema-org
What it's for
A local vocabulary snapshot supplies schema.org type and property records. It describes what a property means and where it is declared; it does not decide which fields an Intuition creation form should collect.
When to use it
Use a direct type import when the type is known, or root lookup helpers for dynamic schema tooling. The vocabulary is pinned to schema.org V30.0 and never fetched by these lookups. Use classifications for recommended creation fields and typed relationship targets; this package does not validate submitted values or create atoms.
Install
npm install @0xintuition/schema-org@0.1.1
Use ESM import or CommonJS require() on Node 20+. Public subpaths work in both formats. See installation and peer setup and the runtime compatibility limits.
Entry points
| Subpath | Purpose |
|---|---|
. | Type lookup, inherited-property lookup, vocabulary registry, and provenance constants. |
./* | Generated type records by exact case-sensitive name, such as /Book; only names in the pinned vocabulary resolve. |
Depends on and works with
Runtime dependencies: none.
Published peers: none.
Example
import { getPropertiesFor } from '@0xintuition/schema-org';
import { schemaOrgBook } from '@0xintuition/schema-org/Book';
const titleProperty = getPropertiesFor('Book').find(
(property) => property.name === 'name',
);
console.log({
type: schemaOrgBook.name,
titleOrigin: titleProperty?.originType,
});
schemaOrgBook selects the generated Book record directly. getPropertiesFor resolves inherited properties locally; name originates on Thing. Unknown types return undefined from getType and an empty list from getPropertiesFor.
Related concepts
See also Build creation forms.
Source
Package README at the pinned release.
Generated Book record · Lookup implementation.
Applies to V2 · @0xintuition/schema-org 0.1.1