Class Prologue

  • Direct Known Subclasses:
    Query, UpdateRequest

    public class Prologue
    extends java.lang.Object
    Prologue - combines with PrefixMapping (the RIOT Prologue uses PrefixMap)
    • Method Detail

      • explicitlySetBaseURI

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

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

        public IRIx getBase()
      • setBase

        public void setBase​(IRIx base)
      • setBaseURI

        public void setBaseURI​(java.lang.String baseURI)
        baseURI - The baseURI to set.
      • setPrefix

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

        public PrefixMapping getPrefixMapping()
        Return the prefix map from the parsed query
      • setPrefixMapping

        public void setPrefixMapping​(PrefixMapping pmap)
        Set the mapping
      • getPrefix

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

        public java.lang.String expandPrefixedName​(java.lang.String prefixed)
        Expand prefixed name
        prefixed - The prefixed name to be expanded
        URI, or null if not expanded.
      • shortForm

        public java.lang.String shortForm​(java.lang.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)