INCATools / dead_simple_owl_design_patterns

A simple system for specifying OWL class design patterns for OBO-ish ontologies.
http://incatools.github.io/dead_simple_owl_design_patterns/
GNU General Public License v3.0
42 stars 5 forks source link

Need QC for %s #56

Open matentzn opened 4 years ago

matentzn commented 4 years ago

One of the most important pain points during validation is cases when I am using % instead of %s in pattern strings strings. Example:

name:
  text: "% adenoma"
  vars:
    - v0

def:
  text: "A adenoma that involves the %."
  vars:
    - v0

This should be carefully QCed, by taking also into account the number of variables in the subsequent vars section; This could avoid mistakenly flagging up cases like like

def:
  text: "A adenoma that involves at least 90% the %s."
  vars:
    - v0

or

def:
  text: "A adenoma that involves at least 90 % the %s."
  vars:
    - v0