Skip to content

JSON-LD: conditionsOfAccess skips share-alike licenses #209

Closed

Description

@neuromechanist

Surfaced during review of PR #205 (schema.org JSON-LD, #156). Non-blocking; filed rather than carried forward.

Problem

conditionsOfAccess in src/lib/jsonld.ts only fires for the noncommercial and noderiv license tiers. A CC-BY-SA dataset gets no conditions note at all, even though share-alike is a real usage restriction: a consumer who builds on the data inherits an obligation to license the result compatibly.

The license URL itself is emitted correctly in every case, so a careful consumer can still resolve the terms. This is a completeness gap in the human-readable hint, not a correctness bug.

Why it matters slightly more here than in UI copy

conditionsOfAccess exists so an automated consumer can decide whether it may use a dataset before fetching it. The point of #156 is agent-readiness, so a restriction that is silently absent from the machine-readable card is exactly the sort of omission the field is meant to prevent.

Ask

Extend the tier mapping in buildDatasetJsonLd to emit a conditionsOfAccess note for sharealike, and check whether any other tier in src/lib/tags.ts carries a restriction that currently maps to nothing. Add a unit test per tier so the mapping stays exhaustive as tiers are added.

Activity

  1. added
    enhancement
    on Jul 29, 2026
  2. neuromechanist commented on Sep 3, 2026

    @neuromechanist
    ContributorAuthor

    Fixed in #281 (staging commit a02b4b3); ships with the next staging promotion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions