Class Prefix

java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.Prefix
All Implemented Interfaces:
QueryElement

public class Prefix extends Object implements QueryElement
A SPARQL Prefix declaration
See Also:
  • Method Details

    • iri

      public Iri iri(String localName)
      Create a prefixed IRI reference from this prefix
      Parameters:
      localName - the local part of the prefixed IRI
      Returns:
      a prefixed IRI reference, with this prefix's label as the base, and the given string for the local part
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface QueryElement
      Returns:
      the String representing the SPARQL syntax of this element
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object