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

Error processing nested resources #36

Open
ioggstream opened this issue Dec 13, 2021 · 1 comment
Open

Error processing nested resources #36

ioggstream opened this issue Dec 13, 2021 · 1 comment

Comments

@ioggstream
Copy link

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

@tharindupr
Copy link

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

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

No branches or pull requests

2 participants