Package n10s.quadrdf

Class ContextResource

java.lang.Object
n10s.quadrdf.ContextResource

public class ContextResource extends 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:
  • Constructor Details

    • ContextResource

      public ContextResource(String uri, String graphUri)
  • Method Details

    • getUri

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object