Open seralf opened 3 years ago
In the example about NIF ontology, the problem seems to be related on how the disjiointed classes are written:
[] a owl:AllDisjointClasses ;
owl:members nif:RFC5147String, nif:ContextHashBasedString , nif:OffsetBasedString , nif:CStringInst .
this may turn in RDF/XML in something similar to:
<owl:AllDisjointClasses rdf:nodeID="genid8">
<owl:members rdf:resource="http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#RFC5147String"/>
<owl:members rdf:resource="http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#ContextHashBasedString"/>
<owl:members rdf:resource="http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#OffsetBasedString"/>
<owl:members rdf:resource="http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#CStringInst"/>
</owl:AllDisjointClasses>
and it seems to be essentially related to how those information are handled by default by LODE itself: https://github.com/essepuntato/LODE/blob/master/src/main/webapp/structural-reasoner.xsl#L33-L35
Thanks. If you have a suggestion for this issues I would appreciate it @seralf Otherwise, it may have to wait a bit until I get the time to look it up in detail
Hi @dgarijo I'm not sure how to fix it... I was thinking about opening an issue on the LODE codebase itself, but that expect an RDF/XML source, that is generated before sending to it.
So I suppose it coulbe be possible to write the owl:members
nodes in a different way. I imagine two possible options, at least:
rdf:resource
as well (this seems to be the problem, looking at the XSLT, but I might be wrong)
Describe the bug In some case (see example) if the ontology is missing informations, LODE gives an error while parsing.
To Reproduce
Start widoco by CLI or GUI, using NIF ontology as example source. (source on github)
The error will be similar to the following one:
Expected behavior In case there are information missing, they sholud be populated by the default (for example while transforming from .ttl format to .rdf format). This way we can still have all the warning from the external dependency (LODE), and we'll miss those information in HTML, but still we can avoid breaking the compilation of ontology documentation
Screenshots
Desktop (please complete the following information):
Additional context Add any other context about the problem here.