Class SPARQLStarResultsJSONConstants


  • final class SPARQLStarResultsJSONConstants
    extends java.lang.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:
    RDF-star and SPARQL-star Draft Community Group Report
    • 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 serialized Triple value.
      (package private) static java.lang.String TRIPLE_STARDOG
      Type string for serialized Triple value - Stardog dialect
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 serialized Triple 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
    • Constructor Detail

      • SPARQLStarResultsJSONConstants

        SPARQLStarResultsJSONConstants()