org.d2rq.writer
Class PrettyTurtleWriter
java.lang.Object
org.d2rq.writer.PrettyTurtleWriter
public class PrettyTurtleWriter
- extends Object
Method Summary |
void |
flush()
|
void |
printComment(String comment)
|
void |
printCompactBlankNodeProperties(Property property,
List<Map<Property,RDFNode>> values)
|
void |
printIndent()
|
void |
println()
|
void |
printLongStringProperty(Property property,
String value)
|
void |
printPrefix(String prefix,
String uri)
|
void |
printPrefixes(PrefixMapping prefixes)
|
void |
printProperty(boolean writeIt,
Property property,
boolean value)
|
void |
printProperty(boolean writeIt,
Property property,
int value)
|
void |
printProperty(boolean writeIt,
Property property,
String value)
|
void |
printProperty(Property property,
Map<Property,RDFNode> value)
|
void |
printProperty(Property property,
MapObject object)
|
void |
printProperty(Property property,
RDFNode term)
|
void |
printProperty(Property property,
String value)
|
void |
printPropertyEnd()
|
void |
printPropertyStart(Property property)
Opens a blank node. |
void |
printPropertyStart(Property property,
boolean compact)
Opens a blank node. |
void |
printPropertyTurtle(boolean writeIt,
Property property,
String turtleSnippet)
|
void |
printRDFNodeProperties(Property property,
Collection<? extends RDFNode> terms)
|
void |
printResourceEnd()
|
void |
printResourceStart(Resource resource)
|
void |
printResourceStart(Resource resource,
Resource class_)
|
void |
printStringProperties(Property property,
Collection<String> values)
|
void |
printURIProperty(Property property,
String uri)
|
String |
relativize(String iri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrettyTurtleWriter
public PrettyTurtleWriter(String baseIRI,
PrefixMapping prefixes,
Writer out)
- Parameters:
baseIRI
- Any IRIs starting with this one will be written as relative
PrettyTurtleWriter
public PrettyTurtleWriter(String baseIRI,
PrefixMapping prefixes,
OutputStream out)
- Parameters:
baseIRI
- Any IRIs starting with this one will be written as relative
flush
public void flush()
println
public void println()
printComment
public void printComment(String comment)
printPrefixes
public void printPrefixes(PrefixMapping prefixes)
printPrefix
public void printPrefix(String prefix,
String uri)
printProperty
public void printProperty(Property property,
MapObject object)
printResourceStart
public void printResourceStart(Resource resource)
printResourceStart
public void printResourceStart(Resource resource,
Resource class_)
printResourceEnd
public void printResourceEnd()
printPropertyStart
public void printPropertyStart(Property property)
- Opens a blank node.
printPropertyStart
public void printPropertyStart(Property property,
boolean compact)
- Opens a blank node.
printPropertyEnd
public void printPropertyEnd()
printIndent
public void printIndent()
printProperty
public void printProperty(boolean writeIt,
Property property,
boolean value)
printProperty
public void printProperty(boolean writeIt,
Property property,
int value)
printProperty
public void printProperty(boolean writeIt,
Property property,
String value)
printProperty
public void printProperty(Property property,
String value)
printLongStringProperty
public void printLongStringProperty(Property property,
String value)
printURIProperty
public void printURIProperty(Property property,
String uri)
printProperty
public void printProperty(Property property,
RDFNode term)
printRDFNodeProperties
public void printRDFNodeProperties(Property property,
Collection<? extends RDFNode> terms)
printStringProperties
public void printStringProperties(Property property,
Collection<String> values)
printProperty
public void printProperty(Property property,
Map<Property,RDFNode> value)
printCompactBlankNodeProperties
public void printCompactBlankNodeProperties(Property property,
List<Map<Property,RDFNode>> values)
printPropertyTurtle
public void printPropertyTurtle(boolean writeIt,
Property property,
String turtleSnippet)
relativize
public String relativize(String iri)