Github user kinow commented on the issue: https://github.com/apache/jena/pull/455 Tested just the new parser with with the following code: ```java public static void main(String args[]) { try { java.io.Reader in = new java.io.StringReader(FileUtils.readFileToString(new File("/home/kinow/Development/php/workspace/Skosmos/config.ttl"), Charset.forName("UTF-8"))) ; TurtleJavacc parser = new TurtleJavacc(in) ; FactoryRDF factory = new FactoryRDFStd(); ErrorHandler errorHandler = ErrorHandlerFactory.errorHandlerSimple(); IRIResolver resolver = IRIResolver.create(); PrefixMap prefixMap = new PrefixMapStd(); Context context = null; boolean checking = true ; boolean strictMode = true; ParserProfile profile = new ParserProfileStd(factory, errorHandler, resolver, prefixMap, context, checking, strictMode); StreamRDF dest = new PrintingStreamRDF(System.out); parser.setDest(dest); parser.setProfile(profile); dest.start(); parser.parse(); dest.finish(); System.out.println("Parsed query successfully!") ; System.out.println("---" + System.lineSeparator()) ; } catch (Exception e) { System.out.println("Parser error: " + e.getMessage()) ; e.printStackTrace(System.err) ; } } ``` `config.ttl` is the config file for Skosmos. The template can be found [here](https://github.com/NatLibFi/Skosmos/blob/c68a9715ced03c17906299f421fe97b27047566c/config.ttl.dist). Code worked with no issues, and for what's worth, here's the output: ```shell log4j:WARN No appenders could be found for logger (org.apache.jena.util.FileManager). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. PREFIX void: <http://rdfs.org/ns/void#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX dc: <http://purl.org/dc/terms/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX wv: <http://vocab.org/waiver/terms/norms> PREFIX sd: <http://www.w3.org/ns/sparql-service-description#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX skosmos: <http://purl.org/net/skosmos#> PREFIX isothes: <http://purl.org/iso25964/skos-thes#> PREFIX mdrtype: <http://publications.europa.eu/resource/authority/dataset-type/> PREFIX : <file:///home/kinow/Development/java/jena/jena/jena-arq/#> <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/net/skosmos#Configuration> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#sparqlEndpoint> "http://fuseki:3030/skosmos/sparql" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#sparqlDialect> "Generic" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#sparqlCollationEnabled> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#sparqlTimeout> "60"^^<http://www.w3.org/2001/XMLSchema#integer> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#httpTimeout> "60"^^<http://www.w3.org/2001/XMLSchema#integer> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#serviceName> "Skosmos" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#baseHref> "http://localhost:8000/" . ??1 <http://www.w3.org/2000/01/rdf-schema#label> "fi" . ??1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "fi_FI.utf8" . ??0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> ??1 . ??0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> ??2 . ??3 <http://www.w3.org/2000/01/rdf-schema#label> "sv" . ??3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "sv_SE.utf8" . ??2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> ??3 . ??2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> ??4 . ??5 <http://www.w3.org/2000/01/rdf-schema#label> "en" . ??5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "en_GB.utf8" . ??4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> ??5 . ??4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#languages> ??0 . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#searchResultsSize> "20"^^<http://www.w3.org/2001/XMLSchema#integer> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#transitiveLimit> "1000"^^<http://www.w3.org/2001/XMLSchema#integer> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#logCaughtExceptions> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#logBrowserConsole> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#logFileName> "/tmp/skosmos.log" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#templateCache> "/tmp/skosmos-template-cache" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#customCss> "" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#feedbackAddress> "" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#feedbackSender> "" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#feedbackEnvelopeSender> "" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#uiLanguageDropdown> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#uiHoneypotEnabled> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#uiHoneypotTime> "5"^^<http://www.w3.org/2001/XMLSchema#integer> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#config> <http://purl.org/net/skosmos#globalPlugins> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/net/skosmos#Vocabulary> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/ns/void#Dataset> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/dc/terms/title> "YSA - Yleinen suomalainen asiasanasto"@fi . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/dc/terms/title> "YSA - Allmän tesaurus pÃ¥ finska"@sv . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/dc/terms/title> "YSA - General Finnish thesaurus"@en . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/dc/terms/subject> <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/dc/terms/type> <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://rdfs.org/ns/void#uriSpace> "http://www.yso.fi/onto/ysa/" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/net/skosmos#groupClass> <http://www.w3.org/2004/02/skos/core#Collection> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/net/skosmos#language> "fi" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/net/skosmos#shortName> "YSA" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/net/skosmos#feedbackRecipient> "vesa-po...@helsinki.fi" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/net/skosmos#showChangeList> "true" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://rdfs.org/ns/void#dataDump> <http://api.finto.fi/download/ysa/ysa-skos.ttl> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://rdfs.org/ns/void#sparqlEndpoint> <http://api.dev.finto.fi/sparql> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#ysa> <http://purl.org/net/skosmos#sparqlGraph> <http://www.yso.fi/onto/ysa/> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/net/skosmos#Vocabulary> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/ns/void#Dataset> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/dc/terms/title> "YSO - Yleinen suomalainen ontologia"@fi . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/dc/terms/title> "ALLFO - Allmän finländsk ontologi"@sv . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/dc/terms/title> "YSO - General Finnish ontology"@en . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/dc/terms/subject> <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/dc/terms/type> <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://rdfs.org/ns/void#uriSpace> "http://www.yso.fi/onto/yso/" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#language> "fi" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#language> "sv" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#language> "en" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#defaultLanguage> "fi" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#showTopConcepts> "true" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#showStatistics> "false" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#loadExternalResources> "false" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#shortName> "YSO" . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#shortName> "ALLFO"@sv . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#groupClass> <http://purl.org/iso25964/skos-thes#ConceptGroup> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#arrayClass> <http://purl.org/iso25964/skos-thes#ThesaurusArray> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://rdfs.org/ns/void#dataDump> <http://api.finto.fi/download/yso/yso-skos.ttl> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://rdfs.org/ns/void#sparqlEndpoint> <http://api.dev.finto.fi/sparql> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#sparqlGraph> <http://www.yso.fi/onto/yso/> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#yso> <http://purl.org/net/skosmos#mainConceptScheme> <http://www.yso.fi/onto/yso/> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#categories> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#ConceptScheme> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#categories> <http://www.w3.org/2004/02/skos/core#prefLabel> "Skosmos Vocabulary Categories"@en . <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> <http://www.w3.org/2004/02/skos/core#topConceptOf> <file:///home/kinow/Development/java/jena/jena/jena-arq/#categories> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> <http://www.w3.org/2004/02/skos/core#inScheme> <file:///home/kinow/Development/java/jena/jena/jena-arq/#categories> . <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> <http://www.w3.org/2004/02/skos/core#prefLabel> "Yleiskäsitteet"@fi . <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> <http://www.w3.org/2004/02/skos/core#prefLabel> "Allmänna begrepp"@sv . <file:///home/kinow/Development/java/jena/jena/jena-arq/#cat_general> <http://www.w3.org/2004/02/skos/core#prefLabel> "General concepts"@en . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "ТезаÑÑÑÑ"@bg . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tezaurus"@cs . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesaurus"@da . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Thesaurus"@de . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "ÎηÏÎ±Ï ÏÏÏ"@el . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Thesaurus"@en . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesaurus"@et . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesaurus"@fi . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Thésaurus"@fr . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Pojmovnik"@hr . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tezaurusz"@hu . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesauro"@it . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "TÄzaurs"@lv . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tezauras"@lt . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Teżawru"@mt . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Thesaurus"@nl . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesaurus"@no . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tezaurus"@pl . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesauro"@pt . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tezaur"@ro . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Synonymický slovnÃk"@sk . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tezaver"@sl . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesauro"@es . <http://publications.europa.eu/resource/authority/dataset-type/THESAURUS> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tesaurus"@sv . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "ÐнÑологиÑ"@bg . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologie"@cs . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologi"@da . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologie"@de . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "ÎνÏολογία"@el . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontology"@en . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontoloogia"@et . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologia"@fi . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologie"@fr . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologija"@hr . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontológia"@hu . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologia"@it . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "OntoloÄ£ija"@lv . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologija"@lt . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "OntoloÄ¡ija"@mt . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologie"@nl . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologi"@no . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Struktura pojÄciowa"@pl . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologia"@pt . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologie"@ro . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontológia"@sk . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologija"@sl . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "OntologÃa"@es . <http://publications.europa.eu/resource/authority/dataset-type/ONTOLOGY> <http://www.w3.org/2004/02/skos/core#prefLabel> "Ontologi"@sv . Parsed query successfully! --- ``` Thanks!
---