Package org.eclipse.lyo.trs.client.util
Class RdfUtil
- java.lang.Object
-
- org.eclipse.lyo.trs.client.util.RdfUtil
-
public class RdfUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description RdfUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
modelToNTriple(Model model)
static String
modelToRdfXml(Model model)
static String
modelToString(Model model, String syntax)
serialize given rdf model in the requested syntax
-
-
-
Method Detail
-
modelToRdfXml
public static String modelToRdfXml(Model model) throws IOException
- Throws:
IOException
-
modelToNTriple
public static String modelToNTriple(Model model) throws IOException
- Throws:
IOException
-
modelToString
public static String modelToString(Model model, String syntax) throws IOException
serialize given rdf model in the requested syntax- Parameters:
model
- model to be serializedsyntax
- serialization syntax- Returns:
- the seralization of the model as a string
- Throws:
IOException
-
-