Skip to content

License check

When you request publication, NEMAR (Neuroelectromagnetic Data Archive and Tools Resource) checks your dataset’s license in two ways. It identifies the root LICENSE file and compares it with the License field of dataset_description.json, and it reads the license of every upstream source the dataset declares (the license lineage). Both results reach the administrator who decides the request on one decision card, license first, with one cue (green, amber or red) and a one-line reason. This page explains both checks, what each result means for you, and how to run them yourself.

The license panel of the decision card shows the License field, the identification of the LICENSE file, the lineage outcome, whether the upstream source is credited, and the license the source’s registry declares.

  • Green: the License field, the LICENSE file and the upstream data’s license agree, or a recorded license permission covers the upstream license. No LICENSE file beside a recognized License field is green too: the field is the dataset’s license, the file is optional, and NEMAR adds it at publication (below).
  • Amber: something could not be settled by a rule, and an administrator reads it. A LICENSE that was not identified conclusively, is annexed or could not be read; no LICENSE beside a License field NEMAR does not recognize; an upstream license that could not be read; an upstream source that is a publication rather than a dataset; an attribution source that SourceDatasets does not credit; a license in .nemar/metadata.json that disagrees with the field; or the license matcher being unavailable.
  • Red: no License field, a LICENSE file that names a different license from the field, or an upstream license that does not permit this copy (needs permission, a share-alike mismatch, or redistribution prohibited).

A LICENSE file that contradicts the License field always needs a person. It is red on the card, it lowers the review’s authors_and_license question to at best unknown, and it never leads to an automatic denial on its own.

The License field of dataset_description.json is your dataset’s license, and it is required. A LICENSE file is optional. When you publish without one, NEMAR adds a LICENSE file to the published version: one line saying which license it is and that NEMAR added the text at publication, then the official text of that license. NEMAR holds the official text of the Creative Commons 4.0 licenses and of CC0 1.0; for any other license it adds nothing, and the License field alone declares it. A LICENSE file you include is never changed or replaced. See Files NEMAR adds when you publish.

You do not need to shorten your license. The review used to send the model at most 4,000 characters of LICENSE, and a Creative Commons (CC) 4.0 legal code is about 17,000 to 19,000 characters, so a dataset that shipped the real text lost the license question whatever the text said. Now the platform identifies the license first. For a conclusive identification of the complete text, the model receives only the text left over beyond the license itself; for a text that is not complete, it receives either the differences from the official text or the whole file (see Additions). Anything you add to a license, such as an extra restriction or a permission, is leftover text, and the model reads and judges exactly it.

The review job identifies LICENSE with ScanCode toolkit 32.5.0, whose license database ships inside the release and maps to the Software Package Data Exchange (SPDX) license list 3.27. The review records the matcher as scancode-32.5.0+spdx-3.27.

  • Pinned. ScanCode and its dependencies are installed from a hashed requirements file in nemarOrg/nemar-cli (scripts/ci/scancode-requirements.txt), wheels only, into a fresh environment on every run, on a pinned CPython 3.12.16.
  • Sandboxed. The scan runs as a separate unprivileged user, with no network and an empty environment: it can send nothing anywhere, holds no token, and cannot change the job’s own files. An annexed LICENSE (a link or pointer rather than text in git) is never followed and never scanned. Its output is read as data and checked before it is parsed; nothing ScanCode writes is executed.
  • The scan. scancode --license --license-text --license-text-diagnostics --copyright --processes 1 --timeout 120 --json <out> LICENSE, under a step limit of 3 minutes; the install step has a limit of 4 minutes.
  • The rule. The license of the longest match is the identification. It is conclusive only when that match scores at least 95 and covers at least 95 percent of the license’s text; the lowest real full text measured scores 98.8, and a notice that names its license scores 100. A result that joins two licenses (for example MIT OR Apache-2.0, or a CC text beside a full CC0 text) is not conclusive, and the review records ScanCode’s expression beside the fact. A LICENSE that is exactly the notice NEMAR’s upload tooling generates for the field’s license, or the file NEMAR adds at publication, is a match with no additions.

If the install, the sandbox or the scan fails, the identification is unreadable and the matcher is recorded as unavailable. That is never a pass and never a denial: LICENSE is then handled as before, and the card says “License matcher unavailable”.

The review records one closed fact about LICENSE: its state, the SPDX identifier of the longest match (or none), whether there are additions, and ScanCode’s expression when the result was compound.

State What it means What it means for you
matches A conclusive identification that equals the License field. Nothing to do. LICENSE no longer lowers the license question; the model still answers it, the authors half included.
matches_other A conclusive identification of a different license from the field’s. Red. Make the field and the file name the same license. An administrator decides; it never denies automatically.
unrecognized No conclusive identification, a compound result, or a License field that cannot be compared. Amber. Use the standard text of one license, or an unambiguous notice that names it. The model reads the file as before.
absent There is no LICENSE file. Nothing to do when the License field is a license NEMAR recognizes: the file is optional, and NEMAR adds it at publication. Amber when the field is not a recognized license.
annexed LICENSE is an annexed file, not text in git. Amber. Commit LICENSE as plain text.
unreadable It could not be read in full, is not UTF-8, the scan failed or timed out, or the matcher is unavailable. Amber. Save it as UTF-8 text; if it already is, the administrator reads it.

Additions are any text beyond the identified license: words inside the matched license that are not in its text, a match of any other license, a license clue, or a line that no match covers (blank lines, punctuation and a plain copyright line excepted). Text on the same line before or after a match counts as leftover too, except a lead-in such as “This dataset is licensed under” before a notice. There is no minimum length, because a false addition costs only a model read. Additions are possible only for matches and matches_other. The score alone never reveals an added restriction (a permission sentence inside CC BY 4.0 still scores 99.57), but the leftover text does, and it is what the model receives, under the same pre-send rules and the same 4,000-character cap.

A text that is not complete. When the longest match is conclusive but covers less than 100 percent of the license’s text (a clause deleted, or a text cut short), additions are set, and what is missing cannot be shown as leftover, so the model receives the whole file instead. There is one exception, for the licenses whose official text NEMAR keeps byte for byte as creativecommons.org serves it: the six CC 4.0 licenses (BY, BY-SA, BY-NC, BY-NC-SA, BY-ND and BY-NC-ND) and CC0 1.0. When the match is a full text (at least 90 percent of the official text’s words, so not a notice or a fragment), the matched lines are compared word by word with the official text, and the model receives the differences instead of the file: each run of official words the file lacks, marked [missing from the official text], and each run of words the file has that the official text does not, marked [added beyond the official text]. Two pieces that a copy taken from the web page loses are not counted as missing: the links to the “Considerations for licensors” and “Considerations for licensees” pages, and the closing sentence saying that the text of the Creative Commons public licenses is dedicated to the public domain under CC0. Any difference sets additions. For any other license, or when the comparison cannot be made, the whole file is sent as before.

nemar dataset license-check <path> prints the exact commands for your dataset’s LICENSE and runs none of them. They use the same interpreter, the same hashed package set (at the release of the CLI that printed them) and the same options:

Terminal window
uv venv --python 3.12.16 scancode-env
uv pip install --python scancode-env --require-hashes --no-build -r https://raw.githubusercontent.com/nemarOrg/nemar-cli/v<version>/scripts/ci/scancode-requirements.txt
scancode-env/bin/scancode --license --license-text --license-text-diagnostics --copyright --processes 1 --timeout 120 --json - LICENSE

A shorter command that may drift in its other dependencies is uv tool run --python 3.12 --from scancode-toolkit==32.5.0 --with "pluggy<1.6" scancode ...; the review’s record names the toolkit version either way.

The lineage reads the license of each upstream source the dataset declares and judges it against the dataset’s License. It is resolved again at review time and again when the administrator’s card is built, and each lineage records when it was resolved; a fresher outcome is shown beside the review’s own and never raises the review’s verdict. nemar dataset license-check <path> recomputes it with the same resolver.

What is read. The sources declared in dataset_description.json (SourceDatasets), in .nemar/metadata.json (IsDerivedFrom and IsIdenticalTo), in the deposit attestation, and in the README (data-repository Digital Object Identifiers (DOIs) and OpenNeuro, Zenodo, PhysioNet or Open Science Framework (OSF) URLs only). Each source’s license comes from its registry or repository record: DataCite, Crossref, OpenAlex, OpenNeuro, PhysioNet, OSF, figshare, Kaggle, a Dataverse installation or Research Data Australia. The resolver rules below are those of the license lineage resolver version 7.

  • Repository licenses complete a DataCite record. A DataCite dataset that declares no rights is completed from its repository: Kaggle’s license name, a listed Dataverse installation’s license (Recherche Data Gouv, DANS), and Research Data Australia’s licence for Curtin University’s records. A repository that states no license leaves the record as it was; one that cannot be read leaves the source unresolved. Kaggle’s database licenses with unlicensed contents are unresolved.

  • ODC-By and etalab-2.0 are recognized. The Open Data Commons Attribution License (ODC-By) 1.0 and the Etalab Open Licence 2.0 are read as licenses; the latter is in the attribution class with CC BY.

  • A paper is read as data only when recognized data files hold its bytes. A Zenodo journal article or a figshare journal contribution whose files are recognized data formats (recordings, .mat, .nwb, .h5, .csv) holding at least 90 percent of its bytes is read as a dataset under its own license. A paper whose recognized data files are less than that stays a publication: the outcome is source_is_publication, and the depositor is asked to name the dataset in SourceDatasets or send evidence. A paper that is mostly archives or generic formats is unresolved, because the archive’s contents are unknown and an administrator decides. The card’s note names the registry’s type and the data files it counted. A record read as data this way is not the repository’s own dataset record, so it does not make a request eligible for the public-upstream acknowledgment.

  • A GitHub repository counts only for a data license. The license GitHub detects is used when it is a data license (Creative Commons, CC0, Open Data Commons, Etalab 2.0); a code license such as MIT, or none, leaves the source unresolved.

  • An OSF project whose license is Other is read from the license file in its storage root, when that file states one exact license and nothing more (for example the CC BY-NC 4.0 legal code). A carve-out, a restriction or anything else is unresolved.

  • The dataset’s own DOI is not an upstream. Only a NEMAR DatasetDOI is dropped as the dataset’s own, from any input; another repository’s DOI that the dataset also gives as its DatasetDOI is read as the source it is.

  • An osf.io/<id> URL maps to its DataCite DOI, 10.17605/OSF.IO/<ID>, and falls back to the license OSF’s application programming interface declares for the node.

  • A DOI cut short in the README (a suffix too short to be one, one that does not have its repository’s DOI shape, or a prefix of a declared DOI that the text continues across a line break or follows with an ellipsis) is dropped and counted, not taken as a source.

  • A container is judged by what it holds: a figshare collection by its members, an OSF project by its node and its child components, each judged on its own.

  • A relation in .nemar/metadata.json that resolves to a publication and that SourceDatasets does not name is skipped and counted.

Outcome What it means What to do
compatible Every upstream source is in the public domain (CC0 or the Open Data Commons Public Domain Dedication and License, PDDL). Nothing. Citing the sources with IsDerivedFrom is still good practice.
compatible_attribution A source requires attribution (CC BY, the Open Data Commons Attribution License (ODC-By), a matching share-alike license, or MIT, BSD or Apache-2.0 applied to data). Declare each source in SourceDatasets and credit it in the README. Uncredited, the card is amber.
compatible_nc A source is NonCommercial, and the dataset’s license keeps NonCommercial. Keep a NonCommercial license and credit the source.
share_alike_mismatch A source is share-alike, and the dataset’s license is not the same share-alike license at the same or a later version. Change the License to the source’s share-alike license, or send the licensor’s permission.
needs_permission A source does not allow this redistribution without permission: NoDerivatives, all rights reserved, unlicensed or unrecognized, NonCommercial while the dataset drops it, or two sources’ licenses conflict. The card shows the license the source declares. Send the licensor’s written permission, or change the dataset’s license to one the sources allow.
redistribution_prohibited A source is credentialed or restricted on PhysioNet, and its data use agreement forbids redistribution. Only the source’s data owner can permit it; remove the affected data or obtain that owner’s permission. It stays red even with a recorded permission, and an administrator decides.
source_is_publication A declared source is a publication, not a dataset; an article’s license is not the data’s. Declare the dataset the data came from (its DOI or repository URL) in SourceDatasets, or send the data owner’s permission.
no_upstream_declared No upstream source was found. If the data came from elsewhere, declare the source in SourceDatasets and in the deposit attestation; nothing is inferred.
unresolved An upstream source’s license could not be read. Run the check again later. If it persists, give the source as a DOI or a known repository URL in SourceDatasets, or reply with a link to its license.

Anything the resolver cannot determine is unresolved, and an administrator decides; it is never a guess in either direction. That includes a registry that does not answer, a figshare record whose type does not say whether it holds data, a collection that cannot be listed, and a README whose only DOIs were dropped as cut short. An unresolved lineage is NEMAR’s failure to read a record, not yours to cure, so no mail is sent to you: the administrators see it on the decision card. You can reply to support@nemar.org with a link to the upstream license, quoting the dataset id, or wait for the next check.

The evidence comes before the publication request: a request whose lineage needs it and that no recorded permission covers is refused with nothing recorded, and an open request is closed by its review as closed: license evidence needed, which is not a denial and can be restored. A recorded permission names only the sources it must cover; an unresolved co-source never counts against it.

You are mailed once per request and outcome for needs_permission, share_alike_mismatch, redistribution_prohibited and source_is_publication. The refusal and the mail say what to send: evidence from the original authors that they accept this copy under the dataset’s license (for example an email from them), to support@nemar.org, quoting the dataset id, and to request publication again once an administrator has recorded it. For redistribution_prohibited the evidence must come from the repository that holds the data, because its data use agreement may bind the authors too.

An administrator records the permission against the support ticket that holds it, with or without a request open (without one, it is recorded against the dataset and covers its next request). It covers the named sources under this specific license, for this request and every later request of the dataset with the same sources and the same license; a later request under another license needs new evidence. A recorded permission turns needs_permission and share_alike_mismatch green on the card when nothing else stands.