solid-listening
Use when reading or writing Solid listening-history scrobbles through @jeswr/solid-listening, changing its codegen inputs or SHACL, regenerating its model core, or maintaining its facade over the generated media-sector composite.
- License 许可
- MIT
- 所属仓库
- jeswr/solid-sdk
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- solid-listening
- description
- Use when reading or writing Solid listening-history scrobbles through @jeswr/solid-listening, changing its codegen inputs or SHACL, regenerating its model core, or maintaining its facade over the generated media-sector composite.
02 资源文件 36
- 其他.roborev.toml386 B
- 参考文档biome.json246 B
- 参考文档codegen/codegen.config.json1.7 KB
- 其他codegen/media.ontology.ttl2.3 KB
- 其他codegen/media.shapes.ttl5.1 KB
- 参考文档DECISIONS.md9.3 KB
- 许可证LICENSE1.0 KB
- 其他listening.proposals.ttl9.7 KB
- 其他listening.shacl.ttl7.0 KB
- 参考文档package.json2.6 KB
- 参考文档README.md9.9 KB
- 脚本scripts/copy-generated.mjs411 B
- 脚本src/acl.test.ts5.5 KB
- 脚本src/acl.ts6.3 KB
- 参考文档src/generated/codegen-manifest.json842 B
- 参考文档src/generated/codegen.lock.json434 B
- 脚本src/generated/model.d.ts3.0 KB
- 脚本src/generated/model.js12.0 KB
- 参考文档src/generated/model.json5.4 KB
- 其他src/generated/shapes.ttl5.4 KB
- 脚本src/index.ts2.4 KB
- 脚本src/iri.test.ts3.1 KB
- 脚本src/iri.ts2.7 KB
- 脚本src/nodes.ts7.3 KB
- 脚本src/scrobble.degradation.test.ts4.2 KB
- 脚本src/scrobble.test.ts12.3 KB
- 脚本src/scrobble.ts7.4 KB
- 脚本src/shape.test.ts8.0 KB
- 脚本src/shape.ts2.6 KB
- 脚本src/vocab.test.ts2.2 KB
- 脚本src/vocab.ts8.1 KB
- 脚本test/codegen.test.ts1.2 KB
- 脚本test/compatibility.test.ts2.7 KB
- 参考文档tsconfig.build.json148 B
- 参考文档tsconfig.json591 B
- 脚本vitest.config.ts177 B
03 SKILL.md 正文
<!-- AUTHORED-BY Claude Opus 5.5 -->
Solid listening-history model
A scrobble is a five-node composite from the media sector: #it (media:PlaybackEvent),
#track (media:Track), #playedAt (time:Instant), #artist and #album. It mints
no IRIs. src/scrobble.ts is a thin facade over the generated core in src/generated/,
which @jeswr/model-runtime interprets; iri.ts, acl.ts, vocab.ts, nodes.ts and
shape.ts stay hand-written. Never edit src/generated/ directly.
Generation inputs live in codegen/: the media ontology subset, the scrobble shapes
subset and codegen.config.json (fragments, renames, links). The shapes subset leaves
out the ISRC pattern and media:playedVia, and narrows playedWork to media:Track;
the reasons are in its header. listening.shacl.ttl is the published, complete profile
validated in src/shape.test.ts.
Parse behaviour: required links (playedWork, atTime) and the track title fail
closed on any non-conforming value (a language-tagged title rejects the scrobble; README
"Exact divergences" lists the changes from the July package). The links are sh:class-only, so an optional problem on a child (two artists,
two albums, a malformed optional value) drops only that field.
From the workspace root:
pnpm --filter @jeswr/federation-codegen... run build
pnpm --filter @jeswr/solid-listening run codegen
For a deliberate input change, review the diff and pass --update-lock. The drift test
test/codegen.test.ts must stay green; pnpm run check:codegen enforces that it exists.
04 同仓库更多 Skills
storage-conformance
Work on @jeswr/storage-conformance, the shared storage conformance suite package in the Solid SDK workspace.
fetch-rdf-engine-tests
Maintain fetch-rdf's real Node WASM parser integration tests without introducing a reverse engine dependency in fetch-rdf.
alpha
Use when checking fixtures, including folded YAML descriptions.
widget
Use when testing package skills: YAML quoting works.
web-seo
Use when improving technical and entity SEO for a modern personal, portfolio, documentation, or marketing site, including crawlable HTML, canonical metadata, sitemap and robots, Person/ProfilePage JSON-LD, Core Web Vitals, and honest ranking expectations.
solid-wac
Use when implementing or auditing Solid server WAC authorization, ACL creation and inheritance, auxiliary-resource escalation, method-to-mode mapping, 401 versus 403 challenges, WAC-Allow, or defensive typed ACL parsing with @solid/object and @rdfjs/wrapper.