Class RDFDatasetUtils
java.lang.Object
com.github.jsonldjava.core.RDFDatasetUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidescape(String str, StringBuilder rval) Escapes the given string according to the N-Quads escape rulesstatic RDFDatasetparseNQuads(String input) Parses RDF in the form of N-Quads.static StringtoNQuads(RDFDataset dataset) static voidtoNQuads(RDFDataset dataset, StringBuilder output) static String
-
Constructor Details
-
RDFDatasetUtils
public RDFDatasetUtils()
-
-
Method Details
-
toNQuads
-
toNQuads
-
unescape
-
escape
Escapes the given string according to the N-Quads escape rules- Parameters:
str- The string to escaperval- TheStringBuilderto 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.
-