public class RdfUtil extends Object
Constructor and Description |
---|
RdfUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
modelToNTriple(org.apache.jena.rdf.model.Model model) |
static String |
modelToRdfXml(org.apache.jena.rdf.model.Model model) |
static String |
modelToString(org.apache.jena.rdf.model.Model model,
String syntax)
serialize given rdf model in the requested syntax
|
public static String modelToRdfXml(org.apache.jena.rdf.model.Model model) throws IOException
IOException
public static String modelToNTriple(org.apache.jena.rdf.model.Model model) throws IOException
IOException
public static String modelToString(org.apache.jena.rdf.model.Model model, String syntax) throws IOException
model
- model to be serializedsyntax
- serialization syntaxIOException
Copyright © 2020. All rights reserved.