Package n10s.quadrdf

Class ContextResource


  • public class ContextResource
    extends java.lang.Object
    ContextResource represents a Resource with an optional graph (context) uri.

    It is used as Key for the Maps containing labels and properties.

    Created on 06.06.2019

    Author:
    Emre Arkan
    See Also:
    RDFQuadDirectStatementLoader, RDFQuadDirectStatementDeleter
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextResource​(java.lang.String uri, java.lang.String graphUri)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getGraphUri()  
      java.lang.String getUri()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContextResource

        public ContextResource​(java.lang.String uri,
                               java.lang.String graphUri)
    • Method Detail

      • getUri

        public java.lang.String getUri()
        Returns:
        uri the URI of the current instance
      • getGraphUri

        public java.lang.String getGraphUri()
        Returns:
        graphUri the graph URI of the current instance if given, null otherwise
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object