Package org.eclipse.lyo.trs.client.util
Class RdfUtil
java.lang.Object
org.eclipse.lyo.trs.client.util.RdfUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
modelToNTriple
(Model model) static String
modelToRdfXml
(Model model) static String
modelToString
(Model model, String syntax) serialize given rdf model in the requested syntax
-
Constructor Details
-
RdfUtil
public RdfUtil()
-
-
Method Details
-
modelToRdfXml
- Throws:
IOException
-
modelToNTriple
- Throws:
IOException
-
modelToString
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
-