essepuntato / LODE

Live OWL Documentation Environment, to convert OWL ontologies into HTML human-readable pages.
ISC License
104 stars 55 forks source link

Error processing nested resources #36

Open ioggstream opened 2 years ago

ioggstream commented 2 years ago

I expect

processing

<owl:ontology>
...

    <dct:creator>
      <owl:NamedIndividual rdf:about="https://w3id.org/italia/data/organization/support-unit/cnr-Z6HZEH/stlab">
        <rdf:type rdf:resource="http://dati.gov.it/onto/dcatapit#Agent"/>
        <dct:identifier>cnr - Z6HZEH - STLab</dct:identifier>
        <foaf:name xml:lang="it">Istituto di Scienze e Tecnologie della Cognizione del CNR - Semantic Technology Lab (STLab)</foaf:name>
      </owl:NamedIndividual>
    </dct:creator>
...

</owl:ontology>

Instead

lode    | Error on line 1976 of extraction.xsl:
lode    |   XTTE1020: A sequence of more than one item is not allowed as the @select attribute of xsl:sort
lode    |   at xsl:call-template name="get.author" (file:///opt/LODE/src/main/webapp/extraction.xsl#196)
lode    |   at xsl:call-template name="structure" (file:///opt/LODE/src/main/webapp/extraction.xsl#260)
lode    |   at xsl:apply-templates (file:///opt/LODE/src/main/webapp/extraction.xsl#121)
lode    |      processing /rdf:RDF/owl:Ontology[1]
lode    |   in built-in template rule
lode    | Error on line 1976 of extraction.xsl:
lode    |   XTTE1020: A sequence of more than one item is not allowed as the @select attribute of xsl:sort
lode    |   at xsl:call-template name="get.author" (file:///opt/LODE/src/main/webapp/extraction.xsl#196)
lode    |   at xsl:call-template name="structure" (file:///opt/LODE/src/main/webapp/extraction.xsl#260)
lode    |   at xsl:apply-templates (file:///opt/LODE/src/main/webapp/extraction.xsl#121)
lode    |      processing /rdf:RDF/owl:Ontology[1]
lode    |   in built-in template rule
lode    | Error on line 1976 of extraction.xsl:
lode    |   XTTE1020: A sequence of more than one item is not allowed as the @select attribute of xsl:sort
lode    |   at xsl:call-template name="get.author" (file:///opt/LODE/src/main/webapp/extraction.xsl#196)
lode    |   at xsl:call-template name="structure" (file:///opt/LODE/src/main/webapp/extraction.xsl#260)
lode    |   at xsl:apply-templates (file:///opt/LODE/src/main/webapp/extraction.xsl#121)
lode    |      processing /rdf:RDF/owl:Ontology[1]
lode    |   in built-in template rule

Note

Applying this changes, the file works. https://gist.github.com/ioggstream/d6aa67cd2623f40dacefab5f1a6b7bde/revisions The problem here is that LODE doesn't seem to be compatible with files generated by Apache Jena or python rdflib.

See

https://github.com/essepuntato/LODE/blob/91227f90894db9d99d212552e6a25734eb28432a/src/main/webapp/extraction.xsl#L1974

cc: @giorgialodi

tharindupr commented 4 months ago

Just get rid of all the dc:creator tags as a work around. It should work.