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

Cannot convert Atomic project using SaltNPepper because of string "//@sCorpusGraphs.0/@nodes.0" #85

Open
ablodge opened this issue Apr 7, 2017 · 0 comments
Assignees

Comments

@ablodge
Copy link

ablodge commented Apr 7, 2017

**Note that Atomic's exporter works fine, so this issue is not an urgent problem, but still a bug.

I tried to import a Paula document into Atomic and then run SaltNPepper with
importer: SaltXMLImporter
exporter: PAULAExporter
on the atomic project folder in my workspace. I get the error below.

Failed to import corpus by module. Nested exception was:  (PepperModuleException)
full stack trace:
org.corpus_tools.pepper.modules.exceptions.PepperModuleException: Failed to import corpus by module. Nested exception was:
        at org.corpus_tools.pepper.core.PepperJobImpl.importCorpusStructures(PepperJobImpl.java:583)
        at org.corpus_tools.pepper.core.PepperJobImpl.convert(PepperJobImpl.java:902)
        at org.corpus_tools.pepper.cli.PepperStarter.convert(PepperStarter.java:505)
        at org.corpus_tools.pepper.cli.PepperStarter.main(PepperStarter.java:1283)
Caused by: org.corpus_tools.salt.exceptions.SaltResourceException: Invalid source reference "//@sCorpusGraphs.0/@nodes.0" for relation
        at org.corpus_tools.salt.util.internal.persistence.SaltXML10Handler.startElement(SaltXML10Handler.java:226)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
        ....

Note that if you remove the string "@sCorpusGraphs.0/" in saltProject.salt to change
<edges xsi:type="sCorpusStructure:SCorpusDocumentRelation" source="//@sCorpusGraphs.0/@nodes.0" target="//@sCorpusGraphs.0/@nodes.1">
to
<edges xsi:type="sCorpusStructure:SCorpusDocumentRelation" source="//@nodes.0" target="//@nodes.1">
then it works fine.

@sdruskat sdruskat self-assigned this Apr 9, 2017
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