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

Add model-generated 001 with XMI #114

Merged
merged 40 commits into from
Oct 18, 2024
Merged

Add model-generated 001 with XMI #114

merged 40 commits into from
Oct 18, 2024

Conversation

ronaldtse
Copy link
Contributor

@ronaldtse ronaldtse commented Jul 12, 2024

Run this command to build the model-generated 001:

$ bundle exec metanorma sources/001-mds/document.adoc

This build is failing right now due to the xmi gem failing to parse the Enterprise Architect XMI which uses the encrypted GML MDG.

The issue will be handled in the xmi gem

The model is at:

sources/001-mds/plateau_uml_20240708_all_packages_export.xmi
$ bundle exec metanorma sources/001-mds/document.adoc
bundler: failed to load command: metanorma (~/.asdf/installs/ruby/3.3.2/bin/metanorma)
~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/shale-1.1.0/lib/shale/adapter/nokogiri.rb:30:in `load': asciidoctor: FAILED: sources/001-mds/document.adoc: Failed to load AsciiDoc document - Document is invalid: [#<Nokogiri::XML::SyntaxError: 125540:134: WARNING: xmlns: URI core is not absolute>, #<Nokogiri::XML::SyntaxError: 125793:136: WARNING: xmlns: URI app is not absolute>] (Shale::ParseError)
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/shale-1.1.0/lib/shale/type/complex.rb:617:in `from_xml'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:31:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `block in parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `map'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:33:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:18:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:62:in `lutaml_document_from_file_or_cache'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:89:in `process_text_blocks'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:78:in `block in processed_lines'
	from <internal:kernel>:187:in `loop'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:77:in `processed_lines'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:43:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `[]'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `block in parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/load.rb:84:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:25:in `asciidoctor_validate'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:13:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/processor/processor.rb:21:in `input_to_isodoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:72:in `process_input_adoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:54:in `process_input'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:32:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:45:in `compile_file'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:30:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:35:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:248:in `compile_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `block in compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-hollaback-0.2.1/lib/thor/hollaback.rb:68:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/base.rb:485:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli.rb:34:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:25:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:43:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:23:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:455:in `exec'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:35:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:29:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:28:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:20:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `<main>'
~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/shale-1.1.0/lib/shale/adapter/nokogiri.rb:30:in `load': Document is invalid: [#<Nokogiri::XML::SyntaxError: 125540:134: WARNING: xmlns: URI core is not absolute>, #<Nokogiri::XML::SyntaxError: 125793:136: WARNING: xmlns: URI app is not absolute>] (Shale::ParseError)
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/shale-1.1.0/lib/shale/type/complex.rb:617:in `from_xml'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:31:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `block in parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `map'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:33:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:18:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:62:in `lutaml_document_from_file_or_cache'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:89:in `process_text_blocks'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:78:in `block in processed_lines'
	from <internal:kernel>:187:in `loop'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:77:in `processed_lines'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:43:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `[]'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `block in parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/load.rb:84:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:25:in `asciidoctor_validate'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:13:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/processor/processor.rb:21:in `input_to_isodoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:72:in `process_input_adoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:54:in `process_input'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:32:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:45:in `compile_file'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:30:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:35:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:248:in `compile_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `block in compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-hollaback-0.2.1/lib/thor/hollaback.rb:68:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/base.rb:485:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli.rb:34:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:25:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:43:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:23:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:455:in `exec'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:35:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:29:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:28:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:20:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `<main>'

@kwkwan
Copy link
Contributor

kwkwan commented Jul 12, 2024

The ParseError has been occurred because Shale is not capable to parse xml with relative namespaces.

load': Document is invalid: [#<Nokogiri::XML::SyntaxError: 125540:134: WARNING: xmlns: URI core is not absolute>, #<Nokogiri::XML::SyntaxError: 125793:136: WARNING: xmlns: URI app is not absolute>] (Shale::ParseError)

There are two parts using relative namespaces in the xml file.

<GML:ApplicationSchema base_Package="EAPK_9E3ECCD9_5472_45ce_BE7A_BC004A52B63C" version="2.0" xsdDocument="CityGML.xsd" xmlns="core" targetNamespace="http://www.opengis.net/citygml/2.0"/>
...
<GML:ApplicationSchema base_Package="EAPK_75552BE6_545C_4373_BB2F_B5D82EFE2E36" version="2.0" xsdDocument="Appearance.xsd" xmlns="app" targetNamespace="http://www.opengis.net/citygml/appearance/2.0"/>

Currently, lutaml/xmi relies on Shale and thus does not support relative namespace. We may need to modify xmi or shale to solve this situation.

@ronaldtse
Copy link
Contributor Author

ronaldtse commented Jul 12, 2024

I see what you mean... it uses xmlns with targetNamespace to build the full namespace.

Can we detect this and then update it in the gem automatically? i.e. modify it in memory and then parse it.

Basically:

  1. Check if the file contains targetNamespace
  2. Update the xmlns to prepend with targetNamespace
  3. Then parse the XML content in memory with the current code.

@ronaldtse
Copy link
Contributor Author

I have manually edited the elements with xmlns and targetNamespace to expand to the full URI. However, I get this new error:

~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:498:in `doc_node_attribute_value': asciidoctor: FAILED: sources/001-mds/document.adoc: Failed to load AsciiDoc document - undefined method `documentation' for nil (NoMethodError)

          doc_node.properties.send(Shale::Utils.snake_case(attr_name).to_sym)
                             ^^^^^
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:71:in `block in serialize_model_packages'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:62:in `map'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:62:in `serialize_model_packages'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:52:in `serialize_to_hash'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:40:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:32:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `block in parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `map'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:33:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:18:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:62:in `lutaml_document_from_file_or_cache'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:89:in `process_text_blocks'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:78:in `block in processed_lines'
	from <internal:kernel>:187:in `loop'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:77:in `processed_lines'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:43:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `[]'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `block in parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/load.rb:84:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:25:in `asciidoctor_validate'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:13:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/processor/processor.rb:21:in `input_to_isodoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:72:in `process_input_adoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:54:in `process_input'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:32:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:45:in `compile_file'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:30:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:35:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:248:in `compile_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `block in compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-hollaback-0.2.1/lib/thor/hollaback.rb:68:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/base.rb:485:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli.rb:34:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:25:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:43:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:23:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:455:in `exec'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:35:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:29:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:28:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:20:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `<main>'
~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:498:in `doc_node_attribute_value': undefined method `documentation' for nil (NoMethodError)

          doc_node.properties.send(Shale::Utils.snake_case(attr_name).to_sym)
                             ^^^^^
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:71:in `block in serialize_model_packages'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:62:in `map'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:62:in `serialize_model_packages'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:52:in `serialize_to_hash'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:40:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/xmi/parsers/xml.rb:32:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `block in parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `map'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:47:in `parse_into_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:33:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/lutaml-0.9.4/lib/lutaml/parser.rb:18:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:62:in `lutaml_document_from_file_or_cache'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:89:in `process_text_blocks'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:78:in `block in processed_lines'
	from <internal:kernel>:187:in `loop'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:77:in `processed_lines'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-plugin-lutaml-0.7.0/lib/metanorma/plugin/lutaml/lutaml_uml_datamodel_description_preprocessor.rb:43:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `[]'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:533:in `block in parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:532:in `parse'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/asciidoctor-2.0.23/lib/asciidoctor/load.rb:84:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:25:in `asciidoctor_validate'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/input/asciidoc.rb:13:in `process'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/processor/processor.rb:21:in `input_to_isodoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:72:in `process_input_adoc'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:54:in `process_input'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-2.0.2/lib/metanorma/compile/compile.rb:32:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:45:in `compile_file'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:30:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/compiler.rb:35:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:248:in `compile_document'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `block in compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `each'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli/command.rb:48:in `compile'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-hollaback-0.2.1/lib/thor/hollaback.rb:68:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/thor-1.2.2/lib/thor/base.rb:485:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/lib/metanorma/cli.rb:34:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:25:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/metanorma-cli-1.10.2/exe/metanorma:43:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/metanorma:25:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:23:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:455:in `exec'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:35:in `dispatch'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/cli.rb:29:in `start'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:28:in `block in <top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from ~/.asdf/installs/ruby/3.3.2/lib/ruby/gems/3.3.0/gems/bundler-2.5.10/exe/bundle:20:in `<top (required)>'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `load'
	from ~/.asdf/installs/ruby/3.3.2/bin/bundle:25:in `<main>'

@kwkwan
Copy link
Contributor

kwkwan commented Jul 12, 2024

@ronaldtse Issue has been posted and fixed in lutaml/lutaml#72.

@ronaldtse
Copy link
Contributor Author

Thank you @kwkwan ! I'm trying out the document generation now.

@ronaldtse
Copy link
Contributor Author

@kwkwan somehow the command isn't returning... 😓

@ronaldtse
Copy link
Contributor Author

ronaldtse commented Jul 13, 2024

So the command works! Here's the sample built with the latest code I pushed:

(UPDATED)

There are these problems right now:

  • Clause 2 for package "CityGML 2.0" only has a listing. However, it did not recursively render each package inside and the diagrams inside.
Screenshot 2024-07-13 at 10 12 40 AM Screenshot 2024-07-13 at 10 14 14 AM
  • Clause 3 for package "i-UR" rendered 1 diagram, which is correct. It also did not recursively render the package inside.
Screenshot 2024-07-13 at 10 25 10 AM Screenshot 2024-07-13 at 10 14 50 AM
  • Clause 4 for package "3D都市モデル" also did not recursively render the internals
Screenshot 2024-07-13 at 1 01 37 PM Screenshot 2024-07-13 at 1 02 13 PM

@kwkwan can you please help fix these? Thanks.

@ronaldtse
Copy link
Contributor Author

@kwkwan we are tight in time and need to do the Liquid::Drop change for this table. Let's use this opportunity to create a new command outside of the existing LutaML code using Liquid::Drop and the new table.

@ronaldtse
Copy link
Contributor Author

Uploaded latest 20240822 XMI export from @ReesePlews .

@ReesePlews
Copy link
Contributor

hi @ronaldtse i just noticed this after the releases of the various components today. is this generate still failing due to the unfinished discussion about japanese bibliographic entry styles?

@opoudjis
Copy link
Contributor

opoudjis commented Sep 3, 2024

hi @ronaldtse i just noticed this after the releases of the various components today. is this generate still failing due to the unfinished discussion about japanese bibliographic entry styles?

No, that was updating the "see" word for Japanese, which is stored in metanorma-iso, and was only ever going to sync with metanorma-plateau when the release happened.

The release had not happened at the time that ran. It was still on 2.8.4, and it is now 2.8.5.

I have provided you a means of checking when releases happen. Please refer to it.

https://github.com/orgs/metanorma/discussions/6#discussioncomment-10524291

  • Build failed 14 hours ago
  • Gems released 11 hours ago
  • Docker released 5 hours ago

@ReesePlews
Copy link
Contributor

hello Nick, thank you for the update. i have been following the https://github.com/orgs/metanorma/discussions/6 and it is very helpful. i just dont know exactly when the "every two weeks" begin. is it starting at the beginning of the month, or another date? of course there is no hurry for a reply, i know you are working on this issue. thank you.

@opoudjis
Copy link
Contributor

opoudjis commented Sep 3, 2024

It is every second Monday, as of yesterday, and I make an announcement there if for whatever reason a release fails. The very earliest a release goes out is our Tuesday morning, but if things go badly, there have been times it drags out until late Thursday.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello @kwkwan thank you for updating this. i think it would be good to test another table.
at your convenience, would you please add the same line to autogenerate the table for landuse

4.8.3 土地利用 モデル の応用スキーマ文書
LandUse CityGML
luse:LandUse
document page 309, PDF pg320

thank you

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ReesePlews Updated the document to show the class table of LandUse. Please check.

@ReesePlews
Copy link
Contributor

thank you @kwkwan i will check this later today, but first need to add some content (Notes property) for Landuse to the model. after doing that i will check locally then resend the model.

@ReesePlews
Copy link
Contributor

regarding the cancelled job, i had only uploaded a zip file. it was not necessary to do a generate.

@kwkwan
Copy link
Contributor

kwkwan commented Sep 24, 2024

@ReesePlews @ronaldtse lutaml_klass_table is now set to use templates in folder sources/liquid_templates. Thus, you can modify the appearance of the table by editing these liquid files.

@ReesePlews
Copy link
Contributor

thank you @kwkwan ! that sounds very powerful and flexible. i am working on the UML now, i will check later.

kwkwan and others added 25 commits October 18, 2024 15:09
hello @kwkwan here is an updated UML model.  can you also add the lutaml call to generate the table for
Urban Object i UR
uro:LandUseDetailAttribute
that starts on doc01-v4 pg 310 (pdf page 321). thank you
hello @kwkwan this is the updated xmi file with the new name. ( plateau_all_packages_export.xmi )  lets use this updated name so we dont need to change the file name all the time. thank you for updating the code.
hello @kwkwan i have made updates in the uml model, please use this .xmi file. additionally i have changed the file name of the .xmi and updated that in the document, so we dont have to change it all the time. i can manage the uploaded file name locally.  i will upload the commit but stop the job. please finalize the updates for me. thank you.
hello @kwkwan i have updated .xmi file again. i think the last update for today.

also i have added "AGT" as a note in the liquid template to show which tables are "autogenerated table" when they are created.  if you think it causes problems, please tell me. thank you.
hello @kwkwan good morning. i have updated the UML .xmi and images over the weekend. at your convenience can you replace these into the branch. the file name for the .xmi has not changed so there should not be any revisions to that. i will make some other reports later today. thank you.
…ble and keep the others in their original styles
@kwkwan kwkwan merged commit 3985dc0 into main Oct 18, 2024
0 of 2 checks passed
@kwkwan kwkwan deleted the add-model-gen-001 branch October 18, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants