Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions case_utils/ontology/src/ontology_and_version_iris.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
def concept_is_cdo_concept(n_concept: rdflib.URIRef) -> bool:
"""
This function is purposefully distinct from the function used in case_validate. Within this script, the publishing history of CASE and UCO is reviewed.

>>> concept_is_cdo_concept(rdflib.URIRef("http://example.org/ontology/Thing"))
False
>>> concept_is_cdo_concept(rdflib.URIRef("https://ontology.unifiedcyberontology.org/uco/core/UcoThing"))
True
"""
concept_iri = str(n_concept)
return (
Expand Down
5 changes: 5 additions & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ check: \
check-mypy \
check-isomorphic_diff \
check-case_utils
source venv/bin/activate \
&& pytest \
--doctest-modules \
--log-level=DEBUG \
$(top_srcdir)/case_utils
source venv/bin/activate \
&& pytest \
--ignore case_utils \
Expand Down