home / fault-atlas / probes

probes: 55

The exact question asked of a corpus, kept verbatim (code column): a Python regex on one document, a SPARQL query on a public endpoint, a shell request. result_count/result_of is the re-run figure on result_date; matches_excerpt says whether that figure is the one quoted in the observation (0 = differs, both kept).

This data as json

id form_id form_name file kind corpus_id written run result_count result_of result_date matches_excerpt note code
55 form-115 Licence on page 1 probes/2026-08/line-115.py python corpus-europe-pmc-jats-2023-2026 2026-08-08 python3 tools/run_probe.py probes/2026-08/line-115.py <dir with the 272 .xml> 272 272 2026-09-09 1   """Fault Atlas probe — catalogue line 115 (form-115). Extracted verbatim from the August 2026 observation campaign (Loxyn SAS, Lyon). A probe answers one question on one JATS XML file: "is this fault here, and where?" It repairs nothing and decides nothing. Returns a list of excerpts, empty if absent. Run on the reproducible corpus (see corpora/europe-pmc-jats-2023-2026-272.json): python3 tools/run_probe.py probes/2026-08/line-115.py <dir with the 272 .xml> """ import re, collections, unicodedata SONDES = {} def sonde(ligne, nom): def deco(f): SONDES[ligne] = (nom, f); return f return deco def _corps(x): m = re.search(r'(?s)<body\b[^>]*>(.*?)</body>', x) return m.group(1) if m else '' # ── 115 · licence en page 1 ──────────────────────────────────────────────── LIC = (r'(?i)(creative commons|open access article|licensed under|' r'permits unrestricted use|http://creativecommons\.org|https://creativecommons\.org)') def _txt(x): x = re.sub(r'(?s)<(front|back|ref-list)\b.*?</\1>', ' ', x) return re.sub(r'<[^>]+>', ' ', x) @sonde(115, "paragraphe de licence — dans <permissions> et/ou dans le corps") def d115(x): perm = bool(re.search(r'<permissions\b', x)) lic = bool(re.search(r'<license\b', x)) dans_corps = sorted(set(m.lower() for m in re.findall(LIC, _txt(_corps(x)))))[:3] if not (perm or lic or dans_corps): return [] return [f"permissions={perm} license={lic}", f"dans le corps: {dans_corps or 'non'}"]
Powered by Datasette · Queries took 0.564ms