Class RDFDataset.Node

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      Node()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(RDFDataset.Node o)  
      java.lang.String getDatatype()  
      java.lang.String getLanguage()  
      java.lang.String getValue()  
      abstract boolean isBlankNode()  
      abstract boolean isIRI()  
      abstract boolean isLiteral()  
      (package private) java.util.Map<java.lang.String,​java.lang.Object> toObject​(java.lang.Boolean useNativeTypes)
      Converts an RDF triple object to a JSON-LD object.
      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • Node

        public Node()
    • Method Detail

      • isLiteral

        public abstract boolean isLiteral()
      • isIRI

        public abstract boolean isIRI()
      • isBlankNode

        public abstract boolean isBlankNode()
      • getValue

        public java.lang.String getValue()
      • getDatatype

        public java.lang.String getDatatype()
      • getLanguage

        public java.lang.String getLanguage()
      • toObject

        java.util.Map<java.lang.String,​java.lang.Object> toObject​(java.lang.Boolean useNativeTypes)
                                                                 throws JsonLdError
        Converts an RDF triple object to a JSON-LD object.
        Parameters:
        o - the RDF triple object to convert.
        useNativeTypes - true to output native types, false not to.
        Returns:
        the JSON-LD object.
        Throws:
        JsonLdError