Package io.setl.rdf.normalization
Class NQuadSerializer
- java.lang.Object
-
- io.setl.rdf.normalization.NQuadSerializer
-
public class NQuadSerializer extends java.lang.ObjectEncode an RDF quad in N-Quad format. For cryptographic reasons the serialization is performed with the minimum of escapes. RDF requires string-equality for IRIs, so no processing of percent encoding in the IRIs is performed.- See Also:
- RDF 1.1. N-Quads.
-
-
Constructor Summary
Constructors Constructor Description NQuadSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringwrite(com.apicatalog.rdf.RdfNQuad nQuad)static java.lang.Stringwrite(com.apicatalog.rdf.RdfResource subject, com.apicatalog.rdf.RdfResource predicate, com.apicatalog.rdf.RdfValue object, java.util.Optional<com.apicatalog.rdf.RdfResource> graphName)Write out the specified values in NQuad format.
-
-
-
Method Detail
-
write
public static java.lang.String write(com.apicatalog.rdf.RdfNQuad nQuad)
-
write
public static java.lang.String write(com.apicatalog.rdf.RdfResource subject, com.apicatalog.rdf.RdfResource predicate, com.apicatalog.rdf.RdfValue object, java.util.Optional<com.apicatalog.rdf.RdfResource> graphName)Write out the specified values in NQuad format.- Parameters:
subject- the quad's subjectpredicate- the quad's predicateobject- the quad's objectgraphName- the quad's graph name, if any- Returns:
- the NQuad serialization
-
-