public class ModelIOUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIXES
The prefixes used by default by modelFromTurtle.
|
Constructor and Description |
---|
ModelIOUtils() |
Modifier and Type | Method and Description |
---|---|
static com.hp.hpl.jena.rdf.model.Model |
modelFromTurtle(String ttl)
Create a model by reading the Turtle string ttl, using the prefixes
from PREFIXES.
|
void |
modelToTurtleFile(com.hp.hpl.jena.rdf.model.Model m,
String fileName)
Write the model
m to the file named fileName
in Turtle format. |
static String |
renderModelAs(com.hp.hpl.jena.rdf.model.Model m,
String format)
Answer a serialisation of
m in the format
format . |
public static final String PREFIXES
public static com.hp.hpl.jena.rdf.model.Model modelFromTurtle(String ttl)
public void modelToTurtleFile(com.hp.hpl.jena.rdf.model.Model m, String fileName)
m
to the file named fileName
in Turtle format.Copyright © 2014. All Rights Reserved.