Skip to content

Error processing nested resources #36

@ioggstream

Description

@ioggstream

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

select="dc:creator|dcterms:creator[ancestor::owl:Ontology]">

cc: @giorgialodi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions