atomic icon indicating copy to clipboard operation
atomic copied to clipboard

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

Open ablodge opened this issue 8 years ago • 0 comments

**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.

ablodge avatar Apr 07 '17 20:04 ablodge