Class SPARQLStarResultsJSONConstants
- java.lang.Object
-
- org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLStarResultsJSONConstants
-
final class SPARQLStarResultsJSONConstants extends java.lang.Object
Constants for the SPARQL-star JSON format. The format handlesTupleQueryResult
only. For Boolean results, the SPARQL JSON format is used.The format introduces a new type, triple, whose value is an object consisting of three elements:
- s - the triple's subject
- p - the triple's predicate
- o - the triple's object
Each of the three elements s, p and o is another object identical in structure to the value for each binding.
For example:
"b" : { "type" : "triple", "value" : { "s" : { "type" : "uri", "value" : "urn:a" }, "p" : { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, "o" : { "type" : "uri", "value" : "urn:b" } } }
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
OBJECT
Key name of the JSON object for the triple's object.(package private) static java.lang.String
OBJECT_JENA
Key name of the JSON object for the triple's object - Apache Jena dialect(package private) static java.lang.String
PREDICATE
Key name of the JSON object for the triple's predicate.(package private) static java.lang.String
PREDICATE_JENA
Key name of the JSON object for the triple's predicate - Apache Jena dialect(package private) static TupleQueryResultFormat
QUERY_RESULT_FORMAT
(package private) static java.lang.String
SUBJECT
Key name of the JSON object for the triple's subject.(package private) static java.lang.String
SUBJECT_JENA
Key name of the JSON object for the triple's subject - Apache Jena dialect(package private) static java.lang.String
TRIPLE
Type string for serializedTriple
value.(package private) static java.lang.String
TRIPLE_STARDOG
Type string for serializedTriple
value - Stardog dialect
-
Constructor Summary
Constructors Constructor Description SPARQLStarResultsJSONConstants()
-
-
-
Field Detail
-
QUERY_RESULT_FORMAT
static TupleQueryResultFormat QUERY_RESULT_FORMAT
-
TRIPLE
static final java.lang.String TRIPLE
Type string for serializedTriple
value.- See Also:
- Constant Field Values
-
SUBJECT
static final java.lang.String SUBJECT
Key name of the JSON object for the triple's subject.- See Also:
- Constant Field Values
-
PREDICATE
static final java.lang.String PREDICATE
Key name of the JSON object for the triple's predicate.- See Also:
- Constant Field Values
-
OBJECT
static final java.lang.String OBJECT
Key name of the JSON object for the triple's object.- See Also:
- Constant Field Values
-
TRIPLE_STARDOG
static final java.lang.String TRIPLE_STARDOG
Type string for serializedTriple
value - Stardog dialect- See Also:
- Constant Field Values
-
SUBJECT_JENA
static final java.lang.String SUBJECT_JENA
Key name of the JSON object for the triple's subject - Apache Jena dialect- See Also:
- Constant Field Values
-
PREDICATE_JENA
static final java.lang.String PREDICATE_JENA
Key name of the JSON object for the triple's predicate - Apache Jena dialect- See Also:
- Constant Field Values
-
OBJECT_JENA
static final java.lang.String OBJECT_JENA
Key name of the JSON object for the triple's object - Apache Jena dialect- See Also:
- Constant Field Values
-
-