Class SPARQLStarResultsJSONConstants

java.lang.Object
org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLStarResultsJSONConstants

final class SPARQLStarResultsJSONConstants extends Object
Constants for the SPARQL-star JSON format. The format handles TupleQueryResult 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"
          }
        }
  }
 
See Also:
  • Field Details

  • Constructor Details

    • SPARQLStarResultsJSONConstants

      SPARQLStarResultsJSONConstants()