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

The given xpointer expression '#' does not follows the supported syntax #138

Open
gcelano opened this issue Jan 23, 2021 · 0 comments
Open

Comments

@gcelano
Copy link

gcelano commented Jan 23, 2021

I get an error message (below) while transforming Paula into relannis, caused by files containing dependency annotation such as

https://git.informatik.uni-leipzig.de/celano/latinnlp/-/blob/master/paula/ola/phi0119.phi001.perseus-lat2/phi0119.phi001.perseus-lat2.tok01_dep01.xml

Do you have any idea about the cause for that?

If I move the content of attribute xml:base into attributes xlink:href and target, I still get part of the error below (as far I can see, from line "Cannot map 'salt:/0/phi0119.phi001/phi0119.phi001.perseus-lat2 " to "org.corpus_tools.pepper.impl.PepperMapperControllerImpl.run(PepperMapperControllerImpl.java:188")

java.lang.Exception: The given xpointer expression '#' does not follows the supported syntax '((,)[)]
at org.corpus_tools.peppermodules.paula.util.xPointer.XPtrInterpreter.getXPtrRefs(XPtrInterpreter.java:231)
at org.corpus_tools.peppermodules.paula.util.xPointer.XPtrInterpreter.getResult(XPtrInterpreter.java:550)
at org.corpus_tools.peppermodules.paula.PAULA2SaltMapper.getPAULAElementIds(PAULA2SaltMapper.java:489)
at org.corpus_tools.peppermodules.paula.PAULA2SaltMapper.paulaRELConnector(PAULA2SaltMapper.java:815)
at org.corpus_tools.peppermodules.paula.readers.PAULARelReader.startElement(PAULARelReader.java:61)
at org.corpus_tools.peppermodules.paula.readers.PAULAReader.startElement(PAULAReader.java:186)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:510)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
at java.xml/com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:752)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1377)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2710)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
at org.corpus_tools.peppermodules.paula.PAULAFileDelegator.startPaulaFile(PAULAFileDelegator.java:209)
at org.corpus_tools.peppermodules.paula.PAULAFileDelegator.startPaulaFiles(PAULAFileDelegator.java:144)
at org.corpus_tools.peppermodules.paula.PAULA2SaltMapper.mapSDocument(PAULA2SaltMapper.java:168)
at org.corpus_tools.pepper.impl.PepperMapperControllerImpl.map(PepperMapperControllerImpl.java:251)
at org.corpus_tools.pepper.impl.PepperMapperControllerImpl.run(PepperMapperControllerImpl.java:188)
Cannot map 'salt:/0/phi0119.phi001/phi0119.phi001.perseus-lat2' with module 'PAULAImporter', because of a mapping result was 'FAILED'.
An exception was thrown by the mapper threads 'Thread[PAULAImporter_mapper(salt:/phi0119.phi001/phi0119.phi001.perseus-lat2),5,PAULAImporter_mapperGroup]'.
org.corpus_tools.pepper.modules.exceptions.PepperModuleException: A data error occured for Pepper mapper 'org.corpus_tools.peppermodules.paula.PAULA2SaltMapper'. Cannot compute paula-ids corresponding to xmlBase 'phi0119.phi001.perseus-lat2.tok01.xml' and href '#'.
at org.corpus_tools.peppermodules.paula.PAULA2SaltMapper.getPAULAElementIds(PAULA2SaltMapper.java:553)
at org.corpus_tools.peppermodules.paula.PAULA2SaltMapper.paulaRELConnector(PAULA2SaltMapper.java:815)
at org.corpus_tools.peppermodules.paula.readers.PAULARelReader.startElement(PAULARelReader.java:61)
at org.corpus_tools.peppermodules.paula.readers.PAULAReader.startElement(PAULAReader.java:186)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:510)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
at java.xml/com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:752)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1377)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2710)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
at org.corpus_tools.peppermodules.paula.PAULAFileDelegator.startPaulaFile(PAULAFileDelegator.java:209)
at org.corpus_tools.peppermodules.paula.PAULAFileDelegator.startPaulaFiles(PAULAFileDelegator.java:144)
at org.corpus_tools.peppermodules.paula.PAULA2SaltMapper.mapSDocument(PAULA2SaltMapper.java:168)
at org.corpus_tools.pepper.impl.PepperMapperControllerImpl.map(PepperMapperControllerImpl.java:251)
at org.corpus_tools.pepper.impl.PepperMapperControllerImpl.run(PepperMapperControllerImpl.java:188)
Caused by: java.lang.Exception: The given xpointer expression '#' does not follows the supported syntax '((,)
[)]
at org.corpus_tools.peppermodules.paula.util.xPointer.XPtrInterpreter.getXPtrRefs(XPtrInterpreter.java:231)
at org.corpus_tools.peppermodules.paula.util.xPointer.XPtrInterpreter.getResult(XPtrInterpreter.java:550)
at org.corpus_tools.peppermodules.paula.PAULA2SaltMapper.getPAULAElementIds(PAULA2SaltMapper.java:489)
... 20 more

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

1 participant