Skip to content

Commit

Permalink
Use RDFDataMgr, not old RDFWriter interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Apr 22, 2015
1 parent 0b0a4f3 commit 90376c2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import com.hp.hpl.jena.query.* ;
import com.hp.hpl.jena.rdf.model.Model ;
import com.hp.hpl.jena.rdf.model.RDFNode ;
import com.hp.hpl.jena.rdf.model.RDFWriter ;
import com.hp.hpl.jena.shared.PrefixMapping ;
import com.hp.hpl.jena.shared.impl.PrefixMappingImpl ;
import com.hp.hpl.jena.sparql.ARQConstants ;
Expand Down Expand Up @@ -135,9 +134,8 @@ public static void outputResultSet(ResultSet results, Prologue prologue, Results
|| outputFormat.equals(ResultsFormat.FMT_RDF_TTL) ) {
Model m = RDFOutput.encodeAsModel(results) ;
m.setNsPrefixes(prologue.getPrefixMapping()) ;
RDFWriter rdfw = m.getWriter("TURTLE") ;
m.setNsPrefix("rs", ResultSetGraphVocab.getURI()) ;
rdfw.write(m, System.out, null) ;
RDFDataMgr.write(System.out, m, Lang.TURTLE) ;
done = true ;
}

Expand Down

0 comments on commit 90376c2

Please sign in to comment.