Package com.github.jsonldjava.core
Class RDFDatasetUtils
java.lang.Object
com.github.jsonldjava.core.RDFDatasetUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
escape
(String str, StringBuilder rval) Escapes the given string according to the N-Quads escape rulesstatic RDFDataset
parseNQuads
(String input) Parses RDF in the form of N-Quads.(package private) static String
toNQuad
(RDFDataset.Quad triple, String graphName) (package private) static String
toNQuad
(RDFDataset.Quad triple, String graphName, String bnode) (package private) static void
toNQuad
(RDFDataset.Quad triple, String graphName, String bnode, StringBuilder output) static String
toNQuads
(RDFDataset dataset) static void
toNQuads
(RDFDataset dataset, StringBuilder output) static String
-
Field Details
-
UCHAR_MATCHED
-
-
Constructor Details
-
RDFDatasetUtils
public RDFDatasetUtils()
-
-
Method Details
-
toNQuads
-
toNQuads
-
toNQuad
-
toNQuad
-
toNQuad
-
unescape
-
escape
Escapes the given string according to the N-Quads escape rules- Parameters:
str
- The string to escaperval
- TheStringBuilder
to append to.
-
parseNQuads
Parses RDF in the form of N-Quads.- Parameters:
input
- the N-Quads input to parse.- Returns:
- an RDF dataset.
- Throws:
JsonLdError
- If there was an error parsing the N-Quads document.
-