Hi,

There is obviously an issue with the Model.write method for TriG format.

Run the following to see that ttl is returned when Trig is requested...Formats 
names are based on https://jena.apache.org/documentation/io/

package io.bdrc.ldspdi.test;

import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;

public class WriteTrigTest {
    
    public static void main(String[] args) {
        Model mod=ModelFactory.createDefaultModel();
        mod.read("http://purl.bdrc.io/resource/T00AG0281.ttl";);
        System.out.println("***************** TURTLE 
**************************");
        mod.write(System.out,"TURTLE");
        System.out.println("***************** JSON   
**************************");
        mod.write(System.out,"RDF/JSON");
        System.out.println("***************** TRIG   
**************************");
        mod.write(System.out,"TriG");
    }

}

Marc

Reply via email to