[
https://issues.apache.org/jira/browse/JENA-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16569467#comment-16569467
]
ASF GitHub Bot commented on JENA-1584:
--------------------------------------
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> "[email protected]" .
<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!
> Include a Javacc based Turtle parser in RIOT
> --------------------------------------------
>
> Key: JENA-1584
> URL: https://issues.apache.org/jira/browse/JENA-1584
> Project: Apache Jena
> Issue Type: Improvement
> Components: RIOT
> Affects Versions: Jena 3.8.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Fix For: Jena 3.9.0
>
>
> Turtle is the basis for some additional languages (RDF*, SHACL and ShEX
> compact forms).
> The main RIOT Turtle parser is written for speed, with the tuned tokenizer
> and directly written java grammar parser. This makes it harder to reuse and
> extend.
> This ticket proposes including another RDF 1.1 compliant Turtle parser based
> on JavaCC to provide an easier route for additional languages by providing
> all the details of Turtle such as the tokens and prefix name handling, in a
> form more suitable as a base for the new language. It will still be by being
> a copy of the parser, system, not class inheritance.)
> RDF 1.1 Turtle and SPARQL 1.1 were aligned by the working groups and share
> tokens and several grammar rules.
> This would not be active by default (i.e. not a registered {{Lang}} and it's
> parser factory but registered by automatic initialization). It's test suite
> would be run in the build and pass the RDF 1.1 Turtle test suite.
>
> There is non-RDF1.1 Javacc Turtle parser in jena-core is based on the
> pre-RDF1.1 state of Turtle. It is sufficient for the assembler tests that
> read turtle files. It could be moved into the test area except there appear
> to be some legacy applications that only use jena-core.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)