01: package org.ontoware.rdf2go.example;
02:
03: import java.io.File;
04: import java.io.FileInputStream;
05: import java.io.FileNotFoundException;
06:
07: import com.hp.hpl.jena.rdf.model.Model;
08: import com.hp.hpl.jena.rdf.model.ModelFactory;
09:
10: public class ToN3 {
11:
12: /**
13: * @param args
14: * @throws FileNotFoundException
15: */
16: public static void main(String[] args) throws FileNotFoundException {
17: Model m = ModelFactory.createDefaultModel();
18: m
19: .read(
20: new FileInputStream(
21: new File(
22: "P:\\__sirdf\\rdf2go\\src\\org\\ontoware\\rdf2go\\example\\thiemann.foaf.rdf.xml")),
23: "");
24: m.write(System.out, "N-TRIPLES");
25: }
26: }
|