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

OutOfMemoryError when converting from JSON-LD to N-triples #12

Open
odanoburu opened this issue Nov 26, 2019 · 0 comments
Open

OutOfMemoryError when converting from JSON-LD to N-triples #12

odanoburu opened this issue Nov 26, 2019 · 0 comments

Comments

@odanoburu
Copy link

hi, I'm trying to convert a document in JSON-LD to N-triples using rdfpro 0.6 in a fedora 29 machine with 8GB RAM, but I get out-of-memory errors:

% rdfpro '{' @read wn.jsonld , @write out-json-ld.nt '}' 
EXECUTION FAILED. Parsing of wn.jsonld failed

eu.fbk.rdfpro.RDFSourceException: Parsing of wn.jsonld failed
        at eu.fbk.rdfpro.RDFSources$FileSource$ParseJob.run(RDFSources.java:608)
        at eu.fbk.rdfpro.RDFSources$FileSource$2.run(RDFSources.java:494)
        at eu.fbk.rdfpro.RDFSources$FileSource.parse(RDFSources.java:516)
        at eu.fbk.rdfpro.RDFSources$FileSource.emit(RDFSources.java:416)
        at eu.fbk.rdfpro.RDFProcessor$1.emit(RDFProcessor.java:103)
        at eu.fbk.rdfpro.RDFProcessors$InjectSourceHandler.inject(RDFProcessors.java:1007)
        at eu.fbk.rdfpro.RDFProcessors$InjectSourceHandler.access$000(RDFProcessors.java:925)
        at eu.fbk.rdfpro.RDFProcessors$InjectSourceHandler$1.run(RDFProcessors.java:961)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:68)
        at java.lang.StringBuilder.<init>(StringBuilder.java:101)
        at org.semarglproject.jsonld.JsonLdParser.unescape(JsonLdParser.java:368)
        at org.semarglproject.jsonld.JsonLdParser.processStringChar(JsonLdParser.java:235)
        at org.semarglproject.jsonld.JsonLdParser.process(JsonLdParser.java:163)
        at org.semarglproject.jsonld.JsonLdParser.process(JsonLdParser.java:42)
        at eu.fbk.rdfpro.jsonld.JSONLDParser.parse(JSONLDParser.java:96)
        at eu.fbk.rdfpro.RDFSources$FileSource$ParseJob.run(RDFSources.java:600)
        ... 10 more

any idea what could be causing this?

a sample file would be this one: test.jsonld.gz

but github doesn't allow me to attach the original big here (200MB, 30MB compressed)

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