Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable the LightRDF-based RDF/XML check. #928

Merged
merged 2 commits into from
Nov 24, 2023
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: 4 additions & 1 deletion odk/odk.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,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