Class AbstractIRI.GenericIRI

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String iri  
      private static long serialVersionUID  
      private int split  
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericIRI​(java.lang.String iri)  
      GenericIRI​(java.lang.String namespace, java.lang.String localName)  
    • Field Detail

      • iri

        private final java.lang.String iri
      • split

        private int split
    • Constructor Detail

      • GenericIRI

        GenericIRI​(java.lang.String iri)
      • GenericIRI

        GenericIRI​(java.lang.String namespace,
                   java.lang.String localName)
    • Method Detail

      • stringValue

        public java.lang.String stringValue()
        Description copied from interface: Value
        Returns the String-value of a Value object. This returns either a Literal's label, a IRI's URI or a BNode's ID.
        Specified by:
        stringValue in interface Value
        Overrides:
        stringValue in class AbstractIRI
      • getNamespace

        public java.lang.String getNamespace()
        Description copied from interface: IRI
        Gets the namespace part of this IRI.

        The namespace is defined as per the algorithm described in the class documentation.

        Returns:
        the namespace of this IRI
      • getLocalName

        public java.lang.String getLocalName()
        Description copied from interface: IRI
        Gets the local name part of this IRI.

        The local name is defined as per the algorithm described in the class documentation.

        Returns:
        the local name of this IRI
      • split

        private int split()