Predicates/Curation/Containment

alternative to

The subject can serve as a substitute or competing option for the object.

enshrined Curation/Containment alternativeTo

Enshrined — the object model is decided and the ID below is what every conforming app and the contract resolve.

Identity

A predicate is itself an atom. Its ID is derived from these exact bytes — the same value in your app, in anyone else's, and onchain.

predicate atom data
{
  "@context": "https://schema.org/",
  "@type": "DefinedTerm",
  "name": "alternative to",
  "description": "The subject can serve as a substitute or competing option for the object"
}
atom id 0x2497709bf8f757952d1ef4097943fbc676c3ec23207f8473a34e2757f771e9f3

Semantics

Market patterncomparative — ranks subject against object
Propertiessymmetric

Use it

import
// tree-shakeable: only this predicate ships in your bundle
import { alternativeToId } from "@0xintuition/predicates/alternativeTo";

// or resolve everything from the aggregate registry
import { PREDICATE_IDS } from "@0xintuition/predicates";
PREDICATE_IDS.alternativeTo; // 0x2497709bf8f757952d1ef4097943fbc676c3ec23207f8473a34e2757f771e9f3
make a claim
import { buildTripleByName } from "@0xintuition/primitives/triple";

const { value: triple } = buildTripleByName(
	subjectId,
	"alternativeTo",
	objectId,
);
// triple.predicateId === 0x2497709b… — resolved from the registry