dgarijo / Widoco

Wizard for documenting ontologies. WIDOCO is a step by step generator of HTML templates with the documentation of your ontology. It uses the LODE environment to create part of the template.
Apache License 2.0
295 stars 89 forks source link

Namespace declaration table missing (CLI) #708

Open idomingu opened 5 months ago

idomingu commented 5 months ago

Describe the bug Namespace declaration table is missing from section 1 (Introduction).

To Reproduce Testing with the following sample ontology:

@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .

@base <http://example.org#> .

<https://example.org#> rdf:type owl:Ontology ;
    dc:creator "Nacho" ;
    dc:title "Awesome ontology" ;
    owl:versionInfo "1.0.0" .

###  http://xmlns.com/foaf/0.1/Person
foaf:Person rdf:type owl:Class ;
            rdfs:label "Person" .

Documentation generated running the following command: java -jar widoco.jar -ontFile ontology/ontology.ttl -outFolder $dir -webVowl -uniteSections -oops -rewriteAll -getOntologyMetadata

Expected behavior Table should be rendered at the end of section 1 (Introduction).

Screenshots

image

Environment:

Many thanks!

dgarijo commented 5 months ago

can you pls try without the -uniteSections flag?

dgarijo commented 5 months ago

I gave it a try. How curious, when running from the GUI it works well, when running from the CLI it generates an empty table of contents. I will have to have a look, since no error is produced.