Skip to content

Commit

Permalink
Ignore language tags for import-report
Browse files Browse the repository at this point in the history
Language tags have caused count anomalies in the past. Since
their use in imports is not under our control and these counts
are not dependent on labels, this workaround is needed to avoid
those issues.
  • Loading branch information
allenbaron committed Oct 4, 2023
1 parent 3cf429b commit 5db894e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sparql/build/import-report.rq
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ WHERE {
}
}
}
?root rdfs:label ?import_root .
?root rdfs:label ?import_root_iri .

?class a owl:Class ;
rdfs:subClassOf* ?root .
FILTER(!isBlank(?class) && !CONTAINS(STR(?class), "doid"))
BIND(STRBEFORE(STRAFTER(STR(?class), "obo/"), "_") AS ?namespace)
BIND(str(?import_root_iri) AS ?import_root)
}
GROUP BY ?import_root ?namespace
ORDER BY ?import_root ?namespace

0 comments on commit 5db894e

Please sign in to comment.