Skip to content

Commit

Permalink
Merge pull request #939 from INCATools/re-enable-lightrdf-based-check…
Browse files Browse the repository at this point in the history
…-dev

Re-enable the LightRDF-based RDF/XML check.
  • Loading branch information
gouttegd authored Oct 5, 2023
2 parents ea14c2a + e19d7cb commit a6d7e0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion odk/odk.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,12 @@ class OntologyProject(JsonSchemaMixin):
robot_report : Dict[str, Any] = field(default_factory=lambda: ReportConfig().to_dict())
"""Block that includes settings for ROBOT report, ROBOT verify and additional reports that are generated"""

ensure_valid_rdfxml : bool = False
ensure_valid_rdfxml : bool = True
"""When enabled, ensure that any RDF/XML product file is valid"""

extra_rdfxml_checks : bool = False
"""When enabled, RDF/XML product files are checked against additional parsers"""

# product groups
import_group : Optional[ImportGroup] = None
"""Block that includes information on all ontology imports to be generated"""
Expand Down
6 changes: 3 additions & 3 deletions scripts/check-rdfxml.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/bash

check_lightrdf=0
check_rdflib=1
check_jena=1
check_lightrdf=1
check_rdflib=0
check_jena=0
rdfxml_file=

while [ -n "$1" ]; do
Expand Down
2 changes: 1 addition & 1 deletion template/src/ontology/Makefile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ show_assets:
du -sh $(ASSETS)

check_rdfxml_%: %
@check-rdfxml $<
@check-rdfxml {% if project.extra_rdfxml_checks %}--jena --rdflib{% endif %} $<

.PHONY: check_rdfxml_assets
check_rdfxml_assets: $(foreach product,$(MAIN_PRODUCTS),check_rdfxml_$(product).owl)
Expand Down

0 comments on commit a6d7e0e

Please sign in to comment.