feat: structure and sequence annotation bodies; paperspec.structures and paperspec.sequences
Chemical structures (spec/18 section 18.6) and biological sequences (18.7) tied to
the words of a paper. Minor change: two new body kinds, optional properties and
seven rules, with no valid file made invalid.
- annotation schema: structure (SMILES or SMARTS, role, identity, written, label,
accessions, force-field terms) and sequence (alphabet, role, identity, start,
organism, regions, variants); body_kind in sql/store.sql; nine terms in the
JSON-LD context; rules layer.structure.{value,identity,term} and
layer.sequence.{value,identity,region,variant}.
- paperspec.structures reads the atoms and bonds of a SMILES or SMARTS with the
standard library, so a term's atoms are checked without a toolkit; checked against
RDKit on a corpus and random texts. paperspec.sequences checks alphabets,
identities, regions and variants.
- fixtures/records/chemistry (on the main example) and biology (on the draft, which
gains a last sentence), vectors/structures.jsonl and vectors/sequences.jsonl;
check.py runs both layers and the vectors; counts, guides and CHANGELOG updated.
- the prose check no longer takes organism for a UK spelling.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8cL4zN4XpaQF5cBtASzfq
This commit is contained in:
36 files changed
+1488
-44
No files matched your search
@@ -30,6 +30,27 @@
|
||||
"@id": "sct:proposedBy",
|
||||
"@type": "@json"
|
||||
},
|
||||
"identity": "sct:identity",
|
||||
"written": "sct:written",
|
||||
"alphabet": "sct:alphabet",
|
||||
"organism": "sct:organism",
|
||||
"start": "sct:start",
|
||||
"accessions": {
|
||||
"@id": "sct:accessions",
|
||||
"@type": "@json"
|
||||
},
|
||||
"terms": {
|
||||
"@id": "sct:structureTerms",
|
||||
"@type": "@json"
|
||||
},
|
||||
"regions": {
|
||||
"@id": "sct:regions",
|
||||
"@type": "@json"
|
||||
},
|
||||
"variants": {
|
||||
"@id": "sct:variants",
|
||||
"@type": "@json"
|
||||
},
|
||||
"for": "sct:questionFor",
|
||||
"category": "sct:category",
|
||||
"generator": "sct:generatedBy",
|
||||
|
||||
Reference in new issue
Block a user