Class RDFTerm2Json

  • public class RDFTerm2Json
    extends java.lang.Object
    General converting of Nodes to JSON.

    This is a one way, lossy, conversion from an RDF Term to the best available JSON value.

    This is not SPARQL results in JSON (application/result-sets+json).

    RDF Term JSON value
    URI String
    xsd:string String
    rdf:langString String (no @lang)
    XSD numeric JSON number
    xsd:boolean boolean
    Literal, other datatype String, no ^^
    Unbound JSON null

    See also NV for conversion to and from NodeValues for function argument and results.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static JsonValue fromNode​(Node node)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RDFTerm2Json

        public RDFTerm2Json()