public class RDFStarUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TRIPLE_PREFIX
IRI prefix for RDF-star triples encoded as IRIs.
|
| Constructor and Description |
|---|
RDFStarUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Value> |
fromRDFEncodedValue(T encodedValue)
Converts the supplied value from an RDF-compatible representation to an RDF-star value.
|
static boolean |
isEncodedTriple(Value value)
Checks if the supplied
Value represents an RDF-star triple encoded as an IRI. |
static <T extends Value> |
toRDFEncodedValue(T value)
Converts the supplied value from RDF-star to an RDF-compatible representation.
|
public static final String TRIPLE_PREFIX
public static <T extends Value> T toRDFEncodedValue(T value)
RDF-star triples are encoded as IRIs that start with TRIPLE_PREFIX, followed by the base64 encoding of
the N-Triples serialization of the triple.
All other RDF-star values are valid in RDF as well and remain unchanged.
public static <T extends Value> T fromRDFEncodedValue(T encodedValue)
T - encodedValue - an RDF Value to convert to RDF-star.Triple encoded as IRI was supplied, or the supplied
value otherwise.IllegalArgumentException - if the supplied value looked like an RDF-star triple encoded as an IRI but it
could not be decoded successfully.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.