Class Prologue

java.lang.Object
org.apache.jena.sparql.core.Prologue
Direct Known Subclasses:
Query, UpdateRequest

public class Prologue extends Object
Prologue - combines with PrefixMapping (the RIOT Prologue uses PrefixMap)
  • Constructor Details

    • Prologue

      public Prologue()
    • Prologue

      public Prologue(org.apache.jena.shared.PrefixMapping pmap)
    • Prologue

      public Prologue(org.apache.jena.shared.PrefixMapping pmap, org.apache.jena.irix.IRIxResolver resolver)
  • Method Details

    • copy

      public Prologue copy()
    • explicitlySetBaseURI

      public boolean explicitlySetBaseURI()
      Returns:
      True if the query has an explicitly set base URI.
    • getBaseURI

      public String getBaseURI()
      Returns:
      Returns the baseURI, if set.
    • getBase

      public org.apache.jena.irix.IRIx getBase()
    • setBase

      public void setBase(org.apache.jena.irix.IRIx base)
    • getResolver

      public org.apache.jena.irix.IRIxResolver getResolver()
    • setBaseURI

      public void setBaseURI(String baseURI)
      Parameters:
      baseURI - The baseURI to set.
    • setPrefix

      public void setPrefix(String prefix, String expansion)
      Set a prefix for this query
    • getPrefixMapping

      public org.apache.jena.shared.PrefixMapping getPrefixMapping()
      Return the prefix map from the parsed query
    • setPrefixMapping

      public void setPrefixMapping(org.apache.jena.shared.PrefixMapping pmap)
      Set the mapping
    • getPrefix

      public String getPrefix(String prefix)
      Lookup a prefix for this query, including the default prefixes
    • expandPrefixedName

      public String expandPrefixedName(String prefixed)
      Expand prefixed name
      Parameters:
      prefixed - The prefixed name to be expanded
      Returns:
      URI, or null if not expanded.
    • shortForm

      public String shortForm(String uri)
      Use the prefix map to turn a URI into a qname, or return the original URI
    • samePrologue

      public boolean samePrologue(Prologue other)
      Test whether a Prologue will perform the same as this one.
    • hash

      public static int hash(Prologue prologue)