Version 8.8.0

All pages

Deck library

The deck library is the set of ready-made decks and courses anyone can copy into their own instance: this repository's decks/ folder, published with the site, next to the app (deployment.md), at https://solid-memo.com/decks/. This page covers writing, checking and publishing a deck version, and how the app lists, imports and adds one from a link. The library is a DCAT dcat:Catalog conforming to DCAT-AP: each deck a dcat:DatasetSeries of its versions, each version a dcat:Dataset with its cards and a Turtle dcat:Distribution.

Path under decks/IRIWhat
index.ttlhttps://solid-memo.com/decks/index.ttlThe catalog the app lists, made from the versions and never committed (The index): each deck a series (index.ttl#<name>), its current version in full but for its cards, how it was made and any email, the publisher index.ttl#solid-memo, and the course for newcomers.
<name>/v<N>.ttlhttps://solid-memo.com/decks/<name>/v<N>.ttlVersion N of a deck, frozen once published; its cards are fragments of it (…/v1.ttl#sweden).

Nothing else is in decks/ (no lock file, sources or scripts). A deck's name is lower-case letters, digits and dashes, and its versions run v1.ttl, v2.ttl, … without gaps. Every IRI ends in .ttl, as the vocabulary's and the shapes' do: GitHub Pages serves a .ttl file as text/turtle but negotiates no content, so an address without the extension is a 404. Each file states its own address as its @base.

Publishing a deck version
A new version is copied from the frozen one and checked with npm run library:check; the site's build makes the index from the versions and deploys both.
The diagram's source
flowchart LR
    accTitle: Publishing a deck version
    accDescr: A new version is copied from the frozen one and checked with npm run library:check; the site's build makes the index from the versions and deploys both.
    prev["decks/name/vN.ttl<br/>(published, frozen)"] -->|copy, edit| next["decks/name/vN+1.ttl"]
    next -->|"npm run library:check<br/>-- --base ref"| ok["valid, nothing<br/>published changed"]
    ok -->|"build: npm run library:index"| idx["decks/index.ttl<br/>dcat:Catalog"]
    ok & idx -->|deploy| site["solid-memo.com/decks/…"]

The index

decks/index.ttl is made from the versions whenever it's needed, and git ignores it (/decks/index.ttl in .gitignore). buildIndex in deckLibrary.ts makes it, and its tests hold what it makes. npm run library:index, the Turbo task @solid-memo/shacl#library:index, writes it for what reads it from the file:

Every task whose inputs take decks/ leaves the index out of them. solid's unit tests make the index of the decks they read in memory (testing.md). A package's own test:unit or test:watch script doesn't make it: run npm run library:index first. A pull request shows only its versions, not what the index says of them: npm run library writes the index to look at.

A version

A version is one sm:Deck and dcat:Dataset, the document (<>), in library deck format 5 (LibraryDeckV5, shapes.md) or, from vocabulary 1.18, format 6 (LibraryDeckV6, the same properties), with cards as hash-fragment subjects in card format 4, 5, 6 or 7. A version stays at its published format; a new one is written at format 6, its series and publisher still in the index:

decks/greek-alphabet/v1.ttl is a small, complete example.

Courses

A version may be a course: a deck taught in chapters of steps, each card asked as a multiple-choice question. A course adds:

The index leaves the chapters, steps and distractors out, like the cards, but keeps schema:Course, which tells the app a course by the index alone (LibraryDeck.isCourse). The outline is read from the release when the learner opens the course. decks/solid-fundamentals/v1.ttl is the first course, and the first release written in Markdown.

A course's chapters, steps and distractors are never removed, only retired (owl:deprecated true), so learners keep their place.

The index names at most one course for newcomers, as library configuration, not part of any release: <> sm:newcomerCourse <#name> on the catalog, <#name> the series of a course offered to someone with no decks yet (courses.md). NEWCOMER_COURSE in deckLibrary.ts names the deck (io.newcomerCourse in main, so its tests can name another); undefined names none, and retires the journey that expects an offer. No shape owns the term, CatalogV1 included, and DCAT-AP ignores it.

Contact

A version's dcat:contactPoint is the project's issue tracker, a vcard:Kind node of the document as DCAT-AP 3.0.1 describes one. No subject states foaf:mbox.

@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .

<> dcat:contactPoint <#contact> .

<#contact>
    a vcard:Kind ;
    vcard:hasURL <https://github.com/solid-memo/website/issues> .

Versions published before this rule are frozen with the maintainer's email (foaf:mbox on <#anton-wiklund>); a deck's next version drops it. The index never repeats an email: keptInIndex (seriesEntry.ts) leaves out every foaf:mbox, and keeps the current version's contact. npm run library:check checks the contact rule on every version new since --base (contactProblems, Checks). LIBRARY_CONTACT in curationRules.ts names the tracker. The Studio's release check for the library asks the same of a draft (repoPolicy, studio.md), and its release screen writes the contact. A release in a pod is the author's own and may name an email. Mistakes in a release from a link go to its contact's page (Reporting a mistake).

Provenance

Each authored deck's version file says how it was made, in PROV-O:

The record condenses the working notes, whose per-card evidence and queries aren't in the library. Some decks weren't researched card by card, but generated from one source (such as the Swedish word decks and network ports) or written directly (such as the capitals). They describe their sources and licenses, some the command that generated them, but have no review rounds. The index leaves out every rdfs:comment, and the activities but for the compilation's type, which DCAT-AP asks for. The app shows the deck's sources and license on its page; the version file has the rest.

What a card is about

A card compiled from linked data names the thing it's about as dcterms:subject, by the IRI its source gives it:

<#sweden>
    a solid-memo:Card ;
    dcterms:subject <http://www.wikidata.org/entity/Q34> ;
    …

A later version can then be remade from the source and checked card by card, not by labels, which change. New languages can come from the source's own labels, and the same thing can be found in two decks. A card about several things names each.

Publishing a new version

A published version is never edited or removed, only followed by the next. To change a deck <name> whose latest version is N:

  1. Copy decks/<name>/v<N>.ttl to decks/<name>/v<N+1>.ttl and edit its cards (retire, never delete), texts, sources and provenance.
  2. Change its @base to its own address (…/<name>/v<N+1>.ttl) and set
    • dcat:version "<N+1>",
    • dcat:prev and dcat:previousVersion <https://solid-memo.com/decks/<name>/v<N>.ttl>,
    • dcterms:issued to the release time, and dcterms:modified if the deck has it,
    • adms:versionNotes to what changed, in one string,
    • the contact: dcat:contactPoint <#contact> and its vcard:Kind node, and no foaf:mbox (remove it from an agent copied from a version published before the rule).
  3. Run npm run format:turtle, then npm run library, which validates the library and writes decks/index.ttl, which git ignores (the new version becomes the series' dcat:last and current version). Then run npm run library:check -- --base origin/main, which checks the contact of every version new since origin/main.
  4. Look at it: under npm run dev, the library screen lists the working tree's new version and offers it to copies of the old one (migrations.md).
  5. Commit the new version, as a feat(decks) commit (CONTRIBUTING.md). The release it makes publishes it, and the index the build makes, once deployed (deployment.md).

A new deck is the same with decks/<name>/v1.ttl, without dcat:prev and dcat:previousVersion, its notes "First release.". It's listed in REUSE.toml under the license its dcterms:license names, as "decks/<name>/*.ttl"; a version that changes the license moves it to that license's annotation, or names that version alone. npm run check:reuse fails until it agrees (style.md).

Text over several lines. npm run format:turtle writes a literal with a line feed as a long string, """…""" with its language tag, its lines verbatim and never indented. A backslash and every control character but a tab or a line feed are escaped (a carriage return as \r), and so is any quote that would end or run into a delimiter. Every other literal stays on one line.

The taxonomy deck

The deck of new and changed Swedish occupation names, swedish-labour-market-taxonomy-occupation-names, is generated: one version per version of the labor market taxonomy of Arbetsförmedlingen, the Swedish Public Employment Service. Its JobTech taxonomy API serves the taxonomy under CC0 1.0, as the deck is. scripts/taxonomy_deck.py makes it, with Python's standard library alone. Its docstring says which names become cards, and why, and how it handles the taxonomy's inconsistencies.

The script reads the deck's newest version, v<N>.ttl, and writes v<N+1>.ttl, covering every taxonomy version up to the newest (or --to). It carries over, verbatim, what it can't make: the title, description and keywords in every app language, the creator's name (never an email), and the review rounds that made those texts, which inform (prov:wasInformedBy) the new <#generation>. It keeps every card, retiring one no rule makes any longer. It writes the rest of a new version: dcat:version, dcat:prev and dcat:previousVersion, dcterms:issued (--issued, by default today in UTC), the version notes, the publisher, the series, the contact and the Turtle distribution.

Each card names the taxonomy concepts it's about, as dcterms:subject <http://data.jobtechdev.se/taxonomy/concept/<id>> (What a card is about): an outdated name the concepts that had it, a new name the live concepts that have it. After the cards, a replaced concept is dcterms:isReplacedBy the concepts its card's back names, which keeps their names. A retired card keeps its published subjects. A run may cover the same taxonomy versions as v<N>.ttl when the script now writes something else of them, and refuses when the cards would come out the same.

A version's provenance records the script at the commit it ran from, with its SHA-256 and the Python and Unicode versions, and the command line. It records every taxonomy version read, with the query that fetched it and a checksum of the answer. That command at that commit remakes it byte for byte. The script refuses to run unless it's committed and unmodified (--allow-uncommitted writes a draft), and stops when a taxonomy version the deck records no longer matches its checksum or its publication time. With --cache-dir, it reads from the cache only the versions the deck has checksums of, and fetches the others. It also stops on a concept id that isn't letters, digits and underscores, or a publication time that isn't a time: the deck writes both as they come.

Two options write nothing:

By hand, from the repository root on an up-to-date main:

python3 scripts/taxonomy_deck.py --verify --cache-dir ~/.cache/taxonomy
python3 scripts/taxonomy_deck.py --cache-dir ~/.cache/taxonomy
npm run format:turtle
npm run library
npm run library:check -- --base origin/main

The script prints what it included, left out and adjusted, and the version notes. The version goes in a feat(decks) commit naming its issue (CONTRIBUTING.md).

The Taxonomy workflow does this every Monday, and by hand (Actions › Taxonomy › Run workflow):

The taxonomy app

The publish job pushes and opens the pull request with the token of a GitHub App, which starts workflows as a person's does. The workflow's own token starts none, so CI and ci-ok would never run, blocking the merge. Only this workflow can use it: the App's private key is a secret of the labour-market-deck environment, which allows only main, as the deploy key's environment does.

A maintainer sets it up once:

  1. Make a GitHub App owned by the solid-memo organization (Organization settings › Developer settings › GitHub Apps › New GitHub App), named solid-memo-labour-market-deck, with no webhook ("Active" unchecked). Give it only the repository permissions Contents, Issues and Pull requests, each "Read and write" (Metadata "Read" comes with them).
  2. Install it on solid-memo/website alone ("Only select repositories").
  3. Generate a private key in the App's settings.
  4. Make the environment labour-market-deck (Settings › Environments › New environment), or open it if a run made it (GitHub makes it, with no rule, when a job first names it). Under "Deployment branches and tags", choose "Selected branches and tags" and add only the branch main. Add the App's client ID as environment variable LABOUR_MARKET_DECK_CLIENT_ID and the private key as environment secret LABOUR_MARKET_DECK_PRIVATE_KEY, then delete the key's file. Leave no repository variable or secret of either name: a job whose environment lacks one reads the repository's.

GitHub hands a job its environment's secrets when the job starts, so any code the job runs could read the key, however late the token is made. The publish job runs only git, gh, the runner's own tools and pinned actions. It installs no package and runs no script of the repository; everything installed runs in the update job, which holds no secret. The token lasts an hour. The App needs no bypass of the ruleset on main; it pushes only taxonomy-deck. Until the App is set up, the publish job fails at the token step, and the failure issue links that run. To change the key, a maintainer generates a new one in the App's settings, replaces the environment's secret, then deletes the old key there.

Languages from Wikidata

Many decks are labels of well-known things (a country and its capital, an element, a star), with cards in English and Swedish. scripts/wikidata_labels.py makes such a deck's next version with cards in Korean, German, Spanish and French too, from Wikidata's labels (written by people, CC0, as the decks are), with Python's standard library alone. Its docstring says how in full.

The mapping says what each card is about: scripts/wikidata-labels/<deck>.json, one per deck, written once and checked by a person. It gives each card in use, by fragment id, what its front and back are made of: a template such as "{Q224}" or "{Q199471} (AFN)", in which {Q…} is the item's label. A side built from more than one part uses a frame written in each language instead, such as "Highest point of {0}". The script skips a card it can't make, saying why. A card may refuse a wrong label, such as a species' former scientific name or another species' name, and goes without that language until Wikidata mends it. The mapping translates the card labels ("Capital") too, and gives the next version's description, which says which languages the cards are in.

What a card gets. A card gets a language when every item its sides name has a label in it. Otherwise it goes without that language, and the report names the item lacking it. Its labels get the languages its sides get; its notes stay as they are. English and Swedish text never changes (some Swedish names follow the Swedish Language Council, some English names are the author's wording). The report lists where a card's English or Swedish text differs from what the mapping makes of Wikidata's labels: often on purpose, but it's how a wrong item shows. Each card names its items as dcterms:subject (What a card is about).

Reproducible. The version's <#wikidata-labels> records the script at the commit that last changed it, with its SHA-256 and the Python and Unicode versions. It records the mapping by its path and SHA-256, the command line, and the revision of every item read (https://www.wikidata.org/wiki/Special:EntityData/Q224.json?revision=N). --verify remakes the cards of the newest version the script made, from the version before it, the mapping and those revisions, and fails unless they come out byte for byte the same. The script refuses to run unless it's committed and unmodified (--allow-uncommitted writes a draft), and the mapping is committed with the version it made.

Polite to Wikidata. One request at a time, 50 items each, an honest User-Agent with a contact URL, gzip, and waiting as long as a busy Wikidata asks, as Wikimedia's User-Agent policy and API etiquette ask. The read-only requests send no maxlag, which on Wikidata counts the query service's lag and can refuse every request for hours. --cache-dir keeps the labels of each revision read. --verify asks for an old revision's content only for an item edited since.

A deck's next version, from the repository root on an up-to-date main with the mapping written:

python3 scripts/wikidata_labels.py --deck capitals-of-the-world --cache-dir ~/.cache/wikidata
npm run format:turtle
npm run library
npm run library:check -- --base origin/main

The new version and the mapping go in a feat(decks) commit, as for any new version. A version made by hand later keeps the cards' text, but the script's next run writes the four languages afresh, so a wrong label is mended on Wikidata or in the mapping.

CI never reaches Wikidata. The Wikidata workflow runs --verify on every deck with a mapping each Tuesday, and by hand (Actions › Wikidata › Run workflow). When Wikidata can't be reached, it warns and passes; when a deck's cards come out otherwise, it fails. The step stops the runner from reading workflow commands while the script runs, as the taxonomy's do, and prints the script's warnings once it resumes. Each warning is one line, with any line break in Wikidata's text escaped.

Authoring Markdown

A card, a course step or a chapter may be written in Markdown (markdown.md): CommonMark with pipe tables, for code, tables and lists. Text is plain unless its subject says otherwise, so a release that says nothing reads as before.

<#q-staged> a solid-memo:Card ;
    solid-memo:formatVersion 5 ;
    solid-memo:textFormat solid-memo:markdown ;
    solid-memo:front "Which Git command shows **staged** changes?"@en ;
    solid-memo:back "`git diff --staged`"@zxx ;
    solid-memo:backNote """Without `--staged`, `git diff` compares the working tree with the index:

| Command | Compares |
|---|---|
| `git diff` | working tree and index |
| `git diff --staged` | index and `HEAD` |"""@en .

Checks

packages/adapters/shacl/node/deckLibrary.ts is the three commands. npm run library:index writes the index and checks only the layout; npm run library writes it too, and npm run library:check writes nothing. Those two check the versions and the index made from them:

Checking each version once

A version's checks read the version, the version before it, whether it is its deck's newest, and the part of the index it reaches (relevantIndexQuads). That part is the triples its terms lead to, and those that point at its subjects by a predicate whose objects a profile checks (sh:targetObjectsOf). The profiles follow no path backwards and their SPARQL constraints are left out, so the DCAT-AP check says the same of a version over that part as over the whole index. That part changes only with the version's own deck, though every new deck changes the index.

So both commands keep each version whose checks passed, by a key of those inputs and of the code that checks them: every file of shacl, the packages it depends on, ns/ and package-lock.json (releaseCache.ts). They check again only the versions whose key is new, and say how many they didn't. The keys are files in ~/.cache/solid-memo/library-check/, one folder for every checkout and worktree. A version that fails is never kept. Deleting the folder checks every version again, as a run on CI does, which starts with none. The index's own checks run every time.

Where the rules live

The rules that read a release's data live in packages/core/domain/src/release/, and the Studio runs them in the browser too:

FileWhat
releaseModel.tsA release as plain data: metadata, every card, chapter, step and distractor (retired too), provenance.
problems.tsReleaseProblem: a code, a severity, its subject and field, and what it needs to be worded; no text.
libraryRules.tsThe layout and each version's metadata against its place.
continuityRules.tsA version against the one before it.
courseRules.tsThe course rules; and what a release needs that its draft may lack (readinessProblems), which the Studio's check adds.
markdownFields.tsWhich fields are Markdown, and by which rule; the check is passed in (the domain reads no Markdown).
curationRules.tsA LibraryPolicy: what a library asks beyond the data. repoPolicy asks title, description and keywords in every app language, each card picture described (LIBRARY_LANGUAGES, from LOCALES), and the theme EDUC; podPolicy asks nothing.
seriesEntry.tsWhat the index says of a deck.
releaseCheck.tsThe Studio's release check: a policy's rules, where a library publishes a release (libraryReleaseUrl, librarySeriesUrl, used by this command too), and where each problem is fixed.
draftModel.tsA Studio draft as a release model, at its own address or another.

The command builds each release's model from its quads (quadsToReleaseModel.ts), words each problem in English (releaseMessages.ts), and checks @base, Turtle syntax, the shapes and the profiles. It skips the curation rules (LibraryDeckV5 and LibraryDeckV6 state English and EDUC for this library) and versionNotNext: the path fixes each version, and the metadata check names one other than its path says. A golden test (deckLibrary.golden.test.ts) keeps what the rules say of published releases with faults put in.

Course rules

courseProblems (courseRules.ts) checks what the shapes can't say about a course, on every version (a plain deck passes):

Retired steps and chapters don't count toward the rules on positions or on how a card is asked.

Markdown rules

markdownProblems (markdownFields.ts, with the markdown package's check) checks, field by field, the text of every card, step and chapter that states sm:textFormat sm:markdown, by the rules for a release, which list each problem:

npm run library:check lists at most 20 findings of a text (500 of a release), then one line, "has N more Markdown problems, not listed", for the rest: fix those listed, then check again.

It checks too that only a card, a step or a chapter states sm:textFormat (a distractor's text follows its card's, any other subject's is plain), and only a concept of sm:TextFormats. Unmarked text isn't checked.

None of these is a safety rule: the app shows any text safely (markdown.md).

With -- --base <git ref>, both commands compare with that commit's library. A version published there that's gone or differs by a byte fails, and so does a version not published there that states foaf:mbox or lacks the library's contact (contactProblems); without a base, that rule doesn't run. npm run check runs library:check without a base, as a Turbo task of the shacl package (turbo.json), cached until a file it reads (ns/, decks/, its packages' code) changes. CI's check job runs npm run check:ci, which leaves it to the library job.

CI's library job (ci.yml, testing.md) passes a base on pull requests, in the merge queue and on pushes to the default branch, not on other branches' pushes, so a pull request's commits are checked once per push. ci-ok waits for it. The base is:

A branch with no pull request isn't compared: a contributor opens one, or checks it locally before pushing:

npm run library:check -- --base origin/main

pySHACL checks the index and every version against DCAT-AP again (validation.md), and libraryReleases.library.test.ts reads every version as the app does, its cards and a course's outline (testing.md).

Reading it

The app reads the public library with a plain fetch, without logging in. appUseCases.ts names the index. Under npm run dev and npm start, the site's own addresses are read from the local server (siteFetch), showing the working tree's library. VITE_LIBRARY_INDEX_URL names another index at build time (configuration.md):

VITE_LIBRARY_INDEX_URL=https://example.org/decks/index.ttl npm run dev

The index is read once a page (solidDeckLibrary.ts): the deck list, the upgrade offers, the Studio's update badges and a release's place share that read and its decks; the index changes only with a deploy. A failed read isn't kept, so the next one retries. Each release the index lists is kept the same way. A failed read of any other release, one from a link, is kept until the page is loaded again (From a link).

A release's cards, chapters, steps and distractors are the subjects of its own document, the deck's: the one at the address it was read from, else the one at its canonical address (@base). A subject anywhere else is none of them, whatever its type, and a card's distractor anywhere else isn't offered (libraryMapper.ts). The deck's address is an http: or https: URL, and so are its parts. A release whose deck is at any other IRI is notADeck. A release file the Studio reads with one is notAReleaseFile.

The library conforms to shapes.md's CatalogV1, LibraryDeckSeriesV3, and LibraryDeckV5 or LibraryDeckV6, each release to its own format's shape. The app migrates a format-5 release to format 6 in memory.

The app refuses a release read at the guest's pod, or that states it's there (@base). Nor does it read one that links there by an address in it: a card's picture or what it's about, its license, a topic, its series or its contact. Either is releaseLinksGuestPod, for an import, an upgrade and a release from a link alike: a guest's copy of it couldn't be kept (guest-mode.md). Text the reader reads, such as a card's text or what changed in the release, may name any address. Before it writes anything, an import checks a release's license, topics and cards for such a link.

A release's cards and distractors share one set of ids: a copy keeps them all in one cards document, each at its id. The app refuses a release in which a card and a distractor have the same id, or two cards name one distractor (libraryIdsRepeat), for an import, an upgrade and a draft's trial in the Studio alike. A copy also refuses an upgrade that gives a card the id of a distractor it keeps, or gives a distractor a card keeps to another card (idTakenInDeck). So a new version never reuses the id of a distractor an earlier version had, even one it drops: give the new card or distractor an id of its own.

A release outside the library

From library deck format 6, a release outside decks/ (one Turtle document anywhere, such as a release published in a pod) is whole without an index. Beside the release and its cards, the document then describes:

The same shapes check it (LibraryDeckV6, LibraryDeckSeriesV3, AgentV1), and DCAT-AP accepts it with only the reference data beside it (library-deck/v6/valid is an example, which npm run crosscheck checks too). Nothing in the data limits who publishes one, and the app reads its content as any release's (toLibraryDeckContent).

Such a release is made from a draft in the creator's pod (studio.md), at library deck format 6:

In the app

The library in the app
The library screens and the newcomer offer call use cases that read the library with plain fetches and write imported decks to the pod with authenticated requests.
The diagram's source
flowchart LR
    accTitle: The library in the app
    accDescr: The library screens and the newcomer offer call use cases that read the library with plain fetches and write imported decks to the pod with authenticated requests.
    ui["LibraryContainer / LibraryScreen<br/>#/library?instance=…"] --> uc["listLibraryDecks<br/>importLibraryDeck"]
    page["LibraryDeckContainer / LibraryDeckScreen<br/>#/library-deck?instance=…&deck=&lt;series&gt;"] --> uc
    offer["NewcomerCourseContainer<br/>on an empty deck list"] --> start["listLibraryDecks<br/>startCourse"]
    start --> lib
    start --> repo
    uc --> lib["DeckLibrary port<br/>(solidDeckLibrary.ts)"]
    uc --> repo["DeckRepository.importDeck<br/>(solidDeckRepository.ts)"]
    lib -->|plain fetch| idx["solid-memo.com/decks/index.ttl"]
    lib -->|plain fetch| doc["solid-memo.com/decks/name/vN.ttl"]
    repo -->|authenticated| pod["catalog.ttl + decks/deck-id.ttl"]

Any readable release, such as a release outside the library in its creator's pod, is added by its address, whatever its creator, host or series: Add from a link, on the deck list and the library, opens #/import-url (routing.md).

Importing a release by URL
The import screen reads a release from any host once, validates that read against the shapes, and imports it into the learner's instance.
The diagram's source
flowchart LR
    accTitle: Importing a release by URL
    accDescr: The import screen reads a release from any host once, validates that read against the shapes, and imports it into the learner's instance.
    ui["ImportUrlContainer / ImportUrlScreen<br/>#/import-url?instance=…&url=…"] --> read["readReleaseFromLink"]
    read --> lib["DeckLibrary.readRelease<br/>(solidDeckLibrary.ts)"]
    lib --> shapes["ShaclShapeValidator.validateDataset<br/>(context library)"]
    ui --> add["importReleaseFromUrl"]
    add --> imp["importLibraryDeck / startCourse"]
    imp -->|the read checked| lib
    lib -->|plain fetch| rel["any host: …/name/vN.ttl"]
    imp -->|authenticated| pod["the learner's instance"]

Reporting a mistake

Report a mistake is under a library card's page, a library deck's page, a release's page from a link, and each card studied from a copy that its release has (ReportMistake in ReportMistake.tsx). A card the learner added to their copy has no link. The review of a version checks its form, not its facts (CONTRIBUTING.md), so these reports find the library's mistakes. mistakeReportUrl (mistakeReport.ts) builds the link from the release, the card's fragment and where the release is reported (ReportPlace):