Skip to content

Commit

Permalink
Merge pull request #27 from yarikoptic/enh-codespell
Browse files Browse the repository at this point in the history
Add codespell support (config, workflow to detect/not fix) and make it fix few typos
  • Loading branch information
stuchalk authored Oct 16, 2024
2 parents 65a085b + 1286de0 commit 8cb06fb
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 43 deletions.
7 changes: 7 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = .git*,.codespellrc,*.cif
check-hidden = true
# lines with known to be non-english characters, all uppercase
ignore-regex = .*[úáüéè].*|\b[A-Z]+\b|\bvalue=".."
ignore-words-list = afe
25 changes: 25 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Codespell configuration is within .codespellrc
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
uses: codespell-project/actions-codespell@v2
6 changes: 3 additions & 3 deletions examples/pubchem/pubchem.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -4814,7 +4814,7 @@ $Revision: 639093 $
measured end-points and parameters to be stored. An Assay Description is not a database table. You can
define as many Result Definitions as needed and they need not be used by all Substances tested.
Assay Descriptions can be modified on both description text and Result Definitions after initial submission
as desired, and such udpates will be tracked in PubChem
as desired, and such updates will be tracked in PubChem
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
Expand Down Expand Up @@ -5542,7 +5542,7 @@ $Revision: 639093 $
</xs:element>

<xs:element name="PC-IntegerMinMax">
<xs:annotation><xs:documentation>Mininum and Maximum Constraints on an Integer Value (used for validating incoming data)</xs:documentation></xs:annotation>
<xs:annotation><xs:documentation>Minimum and Maximum Constraints on an Integer Value (used for validating incoming data)</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="PC-IntegerMinMax_min" type="xs:integer">
Expand All @@ -5556,7 +5556,7 @@ $Revision: 639093 $
</xs:element>

<xs:element name="PC-RealMinMax">
<xs:annotation><xs:documentation>Mininum and Maximum Constraints on a Real Value (used for validating incoming data)</xs:documentation></xs:annotation>
<xs:annotation><xs:documentation>Minimum and Maximum Constraints on a Real Value (used for validating incoming data)</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="PC-RealMinMax_min" type="xs:double">
Expand Down
4 changes: 2 additions & 2 deletions examples/ri.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@
},
{
"@id": "chemical/2/",
"@type": "sdo:consituent",
"sourcetype": "commerical",
"@type": "sdo:constituent",
"sourcetype": "commercial",
"name": "Hydrochloric acid",
"source#": "substance/2/",
"role#": "chm:solute",
Expand Down
2 changes: 1 addition & 1 deletion examples/ri_triples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<https://stuchalk.github.io/scidata/example/chemical/1/> <https://stuchalk.github.io/scidata/ontology/scidata.owl#property> <https://stuchalk.github.io/scidata/example/substance/1/constituent/1/property/1/> <https://stuchalk.github.io/scidata/example/ri> .
<https://stuchalk.github.io/scidata/example/chemical/1/> <https://stuchalk.github.io/scidata/ontology/scidata.owl#role> <https://stuchalk.github.io/scidata/ontology/chemical/chemical.owl#solvent> <https://stuchalk.github.io/scidata/example/ri> .
<https://stuchalk.github.io/scidata/example/chemical/2/> <http://semanticscience.org/ontology/sio.owl#SIO_000118> "Hydrochloric acid"^^<https://www.w3.org/2001/XMLSchema#string> <https://stuchalk.github.io/scidata/example/ri> .
<https://stuchalk.github.io/scidata/example/chemical/2/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://stuchalk.github.io/scidata/ontology/scidata.owl#consituent> <https://stuchalk.github.io/scidata/example/ri> .
<https://stuchalk.github.io/scidata/example/chemical/2/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://stuchalk.github.io/scidata/ontology/scidata.owl#constituent> <https://stuchalk.github.io/scidata/example/ri> .
<https://stuchalk.github.io/scidata/example/chemical/2/> <http://www.w3.org/2001/XMLSchema#grade> "ACS Certified grade" <https://stuchalk.github.io/scidata/example/ri> .
<https://stuchalk.github.io/scidata/example/chemical/2/> <https://stuchalk.github.io/scidata/ontology/scidata.owl#hasSource> <https://stuchalk.github.io/scidata/example/substance/2/> <https://stuchalk.github.io/scidata/example/ri> .
<https://stuchalk.github.io/scidata/example/chemical/2/> <https://stuchalk.github.io/scidata/ontology/scidata.owl#property> <https://stuchalk.github.io/scidata/example/chemical/2/property/1/> <https://stuchalk.github.io/scidata/example/ri> .
Expand Down
4 changes: 2 additions & 2 deletions examples/sections/framework_outline.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"@id": "identifier_(uri)",
"uid": "unique identifier (string)",
"title": "title (string)",
"authors": ["list of authors with e.g., affilation, email, ORCID"],
"authors": ["list of authors with e.g., affiliation, email, ORCID"],
"description": "description (string)",
"publisher": "publisher (string)",
"keywords": "subject (string)",
"version": "version of the data not the file (integer)",
"permalink": "permanent URL to file (uri)",
"related": ["one or more external links related to this file (uri)"],
"toc": ["links sections of this file (interal uri)"],
"toc": ["links sections of this file (internal uri)"],
"ids": ["links to ontology defined terms (external uri)"],
"scidata": {
"@id": "scidataFramework/",
Expand Down
2 changes: 1 addition & 1 deletion examples/sections/procedure.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"title": "pH meter calibration",
"description": "The pH electrode was calibrated at pH 7, pH 4, and pH 10 prior to measurement. A portion of the solution was transferred to a beaker and the DI water washed electrode wash placed in the solution and allowed to equilibrate before the measurement was taken",
"scope": "measurement/1/",
"activity": "standarization",
"activity": "standardization",
"sequence": {
"@id": "sequence/",
"@type": "afr:AFR_0000945",
Expand Down
26 changes: 13 additions & 13 deletions ontology/cao.owl
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Infrastructure category</rdfs:label>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000091"/>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000003</oboowl:id>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Information describing the people who are responsible for the analysis and place(s) where it occured</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Information describing the people who are responsible for the analysis and place(s) where it occurred</obo:IAO_0000115>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>

Expand Down Expand Up @@ -910,7 +910,7 @@
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Sample identifier</rdfs:label>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000021"/>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000037"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A string used to identifiy a sample</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A string used to identify a sample</obo:IAO_0000115>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000022</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>
Expand Down Expand Up @@ -1144,7 +1144,7 @@
<owl:Class rdf:about="http://champ-project.org/images/ontology/cao.owl#CAO_000041">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Subsample identifier</rdfs:label>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000021"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A string used to identifiy a subsample</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A string used to identify a subsample</obo:IAO_0000115>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000041</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>
Expand Down Expand Up @@ -1392,7 +1392,7 @@
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Chemometric datum</rdfs:label>
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/IAO_0000027"/>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000060</oboowl:id>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Numeric value from a chemometric test peformed on data from a chemical analysis</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Numeric value from a chemometric test performed on data from a chemical analysis</obo:IAO_0000115>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>

Expand Down Expand Up @@ -1427,7 +1427,7 @@
<owl:Class rdf:about="http://champ-project.org/images/ontology/cao.owl#CAO_000063">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Sample spike recovery percentage</rdfs:label>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000061"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Analysis of a sample spiked with a known amount of analyte. The result is compared to the analysis portion of the same sample and the different is compared to the amount of analyte added. If the difference in the results is equivalent ot the amount added then the recovery is deemed 100%.</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Analysis of a sample spiked with a known amount of analyte. The result is compared to the analysis portion of the same sample and the different is compared to the amount of analyte added. If the difference in the results is equivalent to the amount added then the recovery is deemed 100%.</obo:IAO_0000115>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000063</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>
Expand Down Expand Up @@ -1936,7 +1936,7 @@
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Datum property</rdfs:label>
<rdfs:subClassOf rdf:resource="http://www.ifomis.org/bfo/1.1/snap#Quality"/>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000102</oboowl:id>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Charateristics of a numeric value</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Characteristics of a numeric value</obo:IAO_0000115>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>

Expand Down Expand Up @@ -2228,7 +2228,7 @@
<!-- http://champ-project.org/images/ontology/cao.owl#CAO_000126 -->

<owl:Class rdf:about="http://champ-project.org/images/ontology/cao.owl#CAO_000126">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Heterogenous mixture</rdfs:label>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Heterogeneous mixture</rdfs:label>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000156"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A material where two or more substances and mixed together but the composition is different in different parts of the material</obo:IAO_0000115>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000126</oboowl:id>
Expand Down Expand Up @@ -2409,7 +2409,7 @@
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000071"/>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000140</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Where a chemical entity acts as in interferring species in the detection of a chemical entity acting as an analyte</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Where a chemical entity acts as in interfering species in the detection of a chemical entity acting as an analyte</obo:IAO_0000115>
</owl:Class>


Expand Down Expand Up @@ -2601,7 +2601,7 @@
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000155</oboowl:id>
<oboowl:hasExactSynonym rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Method of standard addition</oboowl:hasExactSynonym>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Process by which calibration is performed on a sample where the matrix components cause the signal from the analyte to be enchanced or deminished by the &apos;matrix effect&apos;. The same small portion of a sample is added to all calibration solutions so that the matrix is matched, and the analyte concentration is determined by extrapolation of the regression line to y=0.</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Process by which calibration is performed on a sample where the matrix components cause the signal from the analyte to be enhanced or deminished by the &apos;matrix effect&apos;. The same small portion of a sample is added to all calibration solutions so that the matrix is matched, and the analyte concentration is determined by extrapolation of the regression line to y=0.</obo:IAO_0000115>
<oboowl:hasExactSynonym rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Standard additions calibration</oboowl:hasExactSynonym>
<obo:IAO_0000119 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Statistics and Chemometrics for Analytical Chemistry, 6th Ed. 2010 Miller and Miller ISBN 978-0273730422 p128</obo:IAO_0000119>
</owl:Class>
Expand Down Expand Up @@ -2675,7 +2675,7 @@
<owl:Class rdf:about="http://champ-project.org/images/ontology/cao.owl#CAO_000161">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Numeric value</rdfs:label>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000102"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A representation of the numeric value of a dataum</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A representation of the numeric value of a datum</obo:IAO_0000115>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000161</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>
Expand Down Expand Up @@ -2989,7 +2989,7 @@
<owl:Class rdf:about="http://champ-project.org/images/ontology/cao.owl#CAO_000184">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Replicate data</rdfs:label>
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000070"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A group of data points that are nominally the same numeric value becuase they are equally valid estimates of a property of the same population, but due to random error will be scattered based on the distrubution model applicable in the context of process of measuring the data.</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A group of data points that are nominally the same numeric value because they are equally valid estimates of a property of the same population, but due to random error will be scattered based on the distribution model applicable in the context of process of measuring the data.</obo:IAO_0000115>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000184</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>
Expand Down Expand Up @@ -3131,7 +3131,7 @@
<rdfs:subClassOf rdf:resource="http://champ-project.org/images/ontology/cao.owl#CAO_000107"/>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000195</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Process of applying ultrasonic fequencies of sound to a solution in order to aid the process of dissolution</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Process of applying ultrasonic frequencies of sound to a solution in order to aid the process of dissolution</obo:IAO_0000115>
</owl:Class>


Expand Down Expand Up @@ -3182,7 +3182,7 @@
<owl:Class rdf:about="http://champ-project.org/images/ontology/cao.owl#CAO_000199">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Standard method of analysis</rdfs:label>
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/OBI_0000272"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A published standard method of chemical analysis that delineates sample processing, calibration, instrument setup, sample measurment, result calculation an method validation. Published by an organizational entity of high repute.</obo:IAO_0000115>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A published standard method of chemical analysis that delineates sample processing, calibration, instrument setup, sample measurement, result calculation an method validation. Published by an organizational entity of high repute.</obo:IAO_0000115>
<oboowl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CAO_000199</oboowl:id>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Person: Stuart Chalk</obo:IAO_0000117>
</owl:Class>
Expand Down
2 changes: 1 addition & 1 deletion ontology/chemical.owl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
<AnnotationAssertion>
<AnnotationProperty abbreviatedIRI="obo:IAO_0000115"/>
<AbbreviatedIRI>obo:NCIT_C70848</AbbreviatedIRI>
<Literal xml:lang="en">A distinctive alpha-numeric identification code assigned by the manufacturer or distributor to a specific quantity of manufactured material or product within a batch.</Literal>
<Literal xml:lang="en">A distinctive alphanumeric identification code assigned by the manufacturer or distributor to a specific quantity of manufactured material or product within a batch.</Literal>
</AnnotationAssertion>
<AnnotationAssertion>
<AnnotationProperty abbreviatedIRI="obo:IAO_0000119"/>
Expand Down
Loading

0 comments on commit 8cb06fb

Please sign in to comment.