Hendy Irawan created JENA-735:
---------------------------------
Summary: Cannot write using TURTLE_FLAT:
com.hp.hpl.jena.shared.NoWriterForLangException: TURTLE_FLAT
Key: JENA-735
URL: https://issues.apache.org/jira/browse/JENA-735
Project: Apache Jena
Issue Type: Bug
Components: RIOT
Affects Versions: Jena 2.11.2
Reporter: Hendy Irawan
https://jena.apache.org/documentation/io/rdf-output.html mentioned:
bq. This page describes the RIOT (RDF I/O technology) output capabilities
introduced in Jena 2.10.1. ... There are two ways to write RDF data using
Apache Jena RIOT, either via the RDFDataMgr ... or using the model API:
{code}
model.write(output, "format") ;
{code}
The Model API (I'm using {{DefaultModel}}) method throws exception for
{{TURTLE_FLAT}} (it works for {{TURTLE}}):
{code}
05:14:19.797 [main] DEBUG o.a.j.riot.stream.JenaIOEnvironment - Failed to find
configuration:
location-mapping.ttl;location-mapping.rdf;location-mapping.n3;etc/location-mapping.rdf;etc/location-mapping.n3;etc/location-mapping.ttl
05:14:19.851 [main] INFO c.hendyirawan.wordnet.Wn30CoreToWn31 - Loading
WordNet 3.0 core file
'/media/ceefour/passport/Tech/Intelligent_Systems/WordNet3/wn30-core-synsets.tab'...
05:14:19.993 [main] INFO c.hendyirawan.wordnet.Wn30CoreToWn31 - Converted to
9920 RDF statements
05:14:19.993 [main] INFO c.hendyirawan.wordnet.Wn30CoreToWn31 - Saving TURTLE
to '/home/ceefour/git/wordnet-extras/wn31-core-synsets.ttl'...
Exception in thread "main" com.hp.hpl.jena.shared.NoWriterForLangException:
TURTLE_FLAT
at
com.hp.hpl.jena.rdf.model.impl.RDFWriterFImpl.getWriter(RDFWriterFImpl.java:125)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.getWriter(ModelCom.java:305)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.write(ModelCom.java:354)
at com.hendyirawan.wordnet.Wn30CoreToWn31.main(Wn30CoreToWn31.java:96)
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)