Skip to content

Commit

Permalink
Merge pull request #691 from ontodev/add_validate_operation
Browse files Browse the repository at this point in the history
Add validate operation
  • Loading branch information
jamesaoverton authored Aug 14, 2020
2 parents bc897cd + fa728ce commit 2fc3ac5
Show file tree
Hide file tree
Showing 33 changed files with 4,210 additions and 112 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- Add [`validate`] command [#691]

### Fixed
- Handle empty [`template`] property charactersitics in [#719]

Expand Down Expand Up @@ -193,11 +196,13 @@ First official release of ROBOT!
[`repair`]: http://robot.obolibrary.org/repair
[`report`]: http://robot.obolibrary.org/report
[`template`]: http://robot.obolibrary.org/template
[`validate`]: http://robot.obolibrary.org/validate

[#719]: https://github.com/ontodev/robot/pull/716
[#715]: https://github.com/ontodev/robot/pull/715
[#710]: https://github.com/ontodev/robot/pull/710
[#709]: https://github.com/ontodev/robot/issues/709
[#691]: https://github.com/ontodev/robot/pull/691
[#689]: https://github.com/ontodev/robot/pull/689
[#685]: https://github.com/ontodev/robot/pull/685
[#671]: https://github.com/ontodev/robot/pull/671
Expand Down
14 changes: 14 additions & 0 deletions docs/examples/immune_exposures.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exposure process reported,exposure material reported,exposure material id,disease reported,disease ontology id,disease stage reported
is-required; subclass-of 'exposure process';,subclass-of|equivalent-to 'material entity'; equivalent-to %3; is-required (when %1 subclass-of ('administering substance in vivo' or 'exposure to substance without evidence for disease' or 'occurrence of infectious disease' or 'occurrence of allergic disease')); is-excluded (when %1 equivalent-to 'occurrence of disease'); is-excluded (when %1 subclass-of ('occurrence of autoimmune disease' or 'occurrence of cancer' or 'no exposure' or unknown)),equivalent-to %2,subclass-of disease; subclass-of 'has material basis in' some %2 (when %1 not-subclass-of ('occurrence of autoimmune disease' or 'occurrence of cancer')); equivalent-to %5; is-required (when %1 subclass-of 'occurrence of disease'); is-excluded (when %1 equivalent-to 'administering substance in vivo'); is-excluded (when %1 subclass-of (vaccination or 'transplant or transfusion' or 'exposure to substance without evidence for disease' or 'no exposure' or unknown)),equivalent-to %4,subclass-of 'disease stage'; is-required (when %1 subclass-of 'occurrence of disease'); is-excluded (when %1 not-subclass-of 'occurrence of disease')
unknown,,,,,
administering substance in vivo,Hepacivirus C,NCBITaxon:11103,,,
exposure to substance without evidence for disease,Dengue virus,NCBITaxon:12637,,,
occurrence of disease,,,,,
occurrence of infectious disease,Dengue virus,NCBITaxon:12637,dengue hemorrhagic fever,DOID:12206,Acute/Recent onset
occurrence of infectious disease,Dengue virus,NCBITaxon:12637,,,Acute/Recent onset
occurrence of infectious disease,Dengue virus,NCBITaxon:12637,dengue hemorrhagic fever,DOID:12206,
occurrence of infectious disease,Dengue virus,NCBITaxon:11060,dengue hemorrhagic fever,DOID:12206,Acute/Recent onset
occurrence of infectious disease,Dengue virus,NCBITaxon:12637,Dengue virus 2,NCBITaxon:11060,Acute/Recent onset
('administering substance in vivo' or 'exposure to substance without evidence for disease'),blood or 'Hepacivirus C',UBERON:0000178,,,Chronic
occurrence of infectious disease,Dengue virus,NCBITaxon:12637,dengue hemorrhagic fever|wheat allergy,DOID:12206|DOID:3660,Acute/Recent onset
occurrence of infectious disease,Dengue virus,NCBITaxon:12637,dengue hemorrhagic fever|dengue hemorrhagic fever,DOID:12206|DOID:12206,Acute/Recent onset
130 changes: 130 additions & 0 deletions docs/examples/immune_exposures.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</head>
<body>
<table class="table table-bordered table-striped">
<thead class="bg-dark text-white header-row">
<tr>
<th>exposure process reported</th>
<th>exposure material reported</th>
<th>exposure material id</th>
<th>disease reported</th>
<th>disease ontology id</th>
<th>disease stage reported</th>
</tr>
</thead>
<thead class="bg-secondary text-white">
<tr>
<th>is-required; subclass-of 'exposure process';</th>
<th>subclass-of|equivalent-to 'material entity'; equivalent-to %3; is-required (when %1 subclass-of ('administering substance in vivo' or 'exposure to substance without evidence for disease' or 'occurrence of infectious disease' or 'occurrence of allergic disease')); is-excluded (when %1 equivalent-to 'occurrence of disease'); is-excluded (when %1 subclass-of ('occurrence of autoimmune disease' or 'occurrence of cancer' or 'no exposure' or unknown))</th>
<th>equivalent-to %2</th>
<th>subclass-of disease; subclass-of 'has material basis in' some %2 (when %1 not-subclass-of ('occurrence of autoimmune disease' or 'occurrence of cancer')); equivalent-to %5; is-required (when %1 subclass-of 'occurrence of disease'); is-excluded (when %1 equivalent-to 'administering substance in vivo'); is-excluded (when %1 subclass-of (vaccination or 'transplant or transfusion' or 'exposure to substance without evidence for disease' or 'no exposure' or unknown))</th>
<th>equivalent-to %4</th>
<th>subclass-of 'disease stage'; is-required (when %1 subclass-of 'occurrence of disease'); is-excluded (when %1 not-subclass-of 'occurrence of disease')</th>
</tr>
</thead>
<tr>
<td class="bg-light"><a href="ONTIE:0003310">unknown</a></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003314">administering substance in vivo</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_11103">Hepacivirus C</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_11103">NCBITaxon:11103</a></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003305">exposure to substance without evidence for disease</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">NCBITaxon:12637</a></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003322">occurrence of disease</a></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003317">occurrence of infectious disease</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">NCBITaxon:12637</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">dengue hemorrhagic fever</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">DOID:12206</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/OGMS_0000094">Acute/Recent onset</a></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003317">occurrence of infectious disease</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">NCBITaxon:12637</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Cell is empty but rule: &quot;is-required true&quot; does not allow this."></td>
<td class="bg-light"></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/OGMS_0000094">Acute/Recent onset</a></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003317">occurrence of infectious disease</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">NCBITaxon:12637</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">dengue hemorrhagic fever</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">DOID:12206</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Cell is empty but rule: &quot;is-required true&quot; does not allow this."></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003317">occurrence of infectious disease</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Validation failed for rule: &quot;Dengue virus equivalent-to (NCBITaxon:11060)&quot;."><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Validation failed for rule: &quot;NCBITaxon:11060 equivalent-to 'Dengue virus'&quot;."><a href="http://purl.obolibrary.org/obo/NCBITaxon_11060">NCBITaxon:11060</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">dengue hemorrhagic fever</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">DOID:12206</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/OGMS_0000094">Acute/Recent onset</a></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003317">occurrence of infectious disease</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">NCBITaxon:12637</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Validation failed for rule: &quot;Dengue virus 2 subclass-of disease&quot;.; Validation failed for rule: &quot;Dengue virus 2 subclass-of 'has material basis in' some 'Dengue virus'&quot;."><a href="http://purl.obolibrary.org/obo/NCBITaxon_11060">Dengue virus 2</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_11060">NCBITaxon:11060</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/OGMS_0000094">Acute/Recent onset</a></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003305">'exposure to substance without evidence for disease'</a> or <a href="ONTIE:0003314">'administering substance in vivo'</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Validation failed for rule: &quot;blood or 'Hepacivirus C' equivalent-to (UBERON:0000178)&quot;."><a href="http://purl.obolibrary.org/obo/NCBITaxon_11103">'Hepacivirus C'</a> or <a href="http://purl.obolibrary.org/obo/UBERON_0000178">blood</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Validation failed for rule: &quot;UBERON:0000178 equivalent-to (blood or 'Hepacivirus C')&quot;."><a href="http://purl.obolibrary.org/obo/UBERON_0000178">UBERON:0000178</a></td>
<td class="bg-light"></td>
<td class="bg-light"></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Cell is non-empty (&quot;Chronic&quot;) but rule: &quot;is-excluded true&quot; does not allow this."><a href="http://purl.obolibrary.org/obo/OGMS_000094">Chronic</a></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003317">occurrence of infectious disease</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">NCBITaxon:12637</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Validation failed for rule: &quot;wheat allergy equivalent-to (DOID:12206)&quot;.; Validation failed for rule: &quot;dengue hemorrhagic fever equivalent-to (DOID:3660)&quot;.; Validation failed for rule: &quot;wheat allergy subclass-of 'has material basis in' some 'Dengue virus'&quot;."><a href="http://purl.obolibrary.org/obo/DOID_12206">dengue hemorrhagic fever</a>|<a href="http://purl.obolibrary.org/obo/DOID_3660">wheat allergy</a></td>
<td class="bg-danger" data-toggle="tooltip" data-placement="right" title="Validation failed for rule: &quot;DOID:3660 equivalent-to 'dengue hemorrhagic fever'&quot;.; Validation failed for rule: &quot;DOID:12206 equivalent-to 'wheat allergy'&quot;."><a href="http://purl.obolibrary.org/obo/DOID_12206">DOID:12206</a>|<a href="http://purl.obolibrary.org/obo/DOID_3660">DOID:3660</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/OGMS_0000094">Acute/Recent onset</a></td>
</tr>
<tr>
<td class="bg-light"><a href="ONTIE:0003317">occurrence of infectious disease</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">Dengue virus</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/NCBITaxon_12637">NCBITaxon:12637</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">dengue hemorrhagic fever</a>|<a href="http://purl.obolibrary.org/obo/DOID_12206">dengue hemorrhagic fever</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/DOID_12206">DOID:12206</a>|<a href="http://purl.obolibrary.org/obo/DOID_12206">DOID:12206</a></td>
<td class="bg-light"><a href="http://purl.obolibrary.org/obo/OGMS_0000094">Acute/Recent onset</a></td>
</tr>
</table>
</body>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})</script>
Loading

0 comments on commit 2fc3ac5

Please sign in to comment.