diff --git a/odk/odk.py b/odk/odk.py index 7c6f04b0..2f873d1a 100755 --- a/odk/odk.py +++ b/odk/odk.py @@ -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""" diff --git a/scripts/check-rdfxml.sh b/scripts/check-rdfxml.sh index 054ae334..7a8998a8 100644 --- a/scripts/check-rdfxml.sh +++ b/scripts/check-rdfxml.sh @@ -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 diff --git a/template/src/ontology/Makefile.jinja2 b/template/src/ontology/Makefile.jinja2 index d990caa8..da939959 100644 --- a/template/src/ontology/Makefile.jinja2 +++ b/template/src/ontology/Makefile.jinja2 @@ -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)