diff --git a/.github/workflows/qc.yml b/.github/workflows/qc.yml index 20f6ab6..110af6c 100644 --- a/.github/workflows/qc.yml +++ b/.github/workflows/qc.yml @@ -19,7 +19,7 @@ jobs: ontology_qc: # The type of runner that the job will run on runs-on: ubuntu-latest - container: obolibrary/odkfull:v1.5 + container: obolibrary/odkfull:v1.5.2 # Steps represent a sequence of tasks that will be executed as part of the job steps: diff --git a/src/ontology/Makefile b/src/ontology/Makefile index 86dfa09..381b01a 100644 --- a/src/ontology/Makefile +++ b/src/ontology/Makefile @@ -1,7 +1,7 @@ # ---------------------------------------- # Makefile for nmrCV # Generated using ontology-development-kit -# ODK Version: v1.5 +# ODK Version: v1.5.2 # ---------------------------------------- # IMPORTANT: DO NOT EDIT THIS FILE. To override default make goals, use nmrCV.Makefile instead @@ -45,8 +45,8 @@ REPORT_LABEL = -l true REPORT_PROFILE_OPTS = OBO_FORMAT_OPTIONS = SPARQL_VALIDATION_CHECKS = owldef-self-reference iri-range label-with-iri multiple-replaced_by dc-properties -SPARQL_EXPORTS = basic-report edges xrefs obsoletes synonyms -ODK_VERSION_MAKEFILE = v1.5 +SPARQL_EXPORTS = basic-report class-count-by-prefix edges xrefs obsoletes synonyms +ODK_VERSION_MAKEFILE = v1.5.2 TODAY ?= $(shell date +%Y-%m-%d) OBODATE ?= $(shell date +'%d:%m:%Y %H:%M') diff --git a/src/sparql/class-count-by-prefix.sparql b/src/sparql/class-count-by-prefix.sparql new file mode 100644 index 0000000..a6a4851 --- /dev/null +++ b/src/sparql/class-count-by-prefix.sparql @@ -0,0 +1,10 @@ +prefix owl: +prefix obo: + +SELECT ?prefix (COUNT(DISTINCT ?cls) AS ?numberOfClasses) WHERE +{ + ?cls a owl:Class . + FILTER (!isBlank(?cls)) + BIND( STRBEFORE(STRAFTER(str(?cls),"http://purl.obolibrary.org/obo/"), "_") AS ?prefix) +} +GROUP BY ?prefix \ No newline at end of file