java.lang.Object
org.apache.jena.sparql.core.Prologue
- Direct Known Subclasses:
Query,UpdateRequest
Prologue - combines with PrefixMapping (the RIOT Prologue uses PrefixMap)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()expandPrefixedName(String prefixed) Expand prefixed namebooleanorg.apache.jena.irix.IRIxgetBase()Lookup a prefix for this query, including the default prefixesorg.apache.jena.shared.PrefixMappingReturn the prefix map from the parsed queryorg.apache.jena.irix.IRIxResolverReturn the version string declared in SPARQL.static intbooleansamePrologue(Prologue other) Test whether a Prologue will perform the same as this one.voidsetBase(org.apache.jena.irix.IRIx base) voidsetBaseURI(String baseURI) voidSet a prefix for this queryvoidsetPrefixMapping(org.apache.jena.shared.PrefixMapping pmap) Set the mappingvoidsetVersion(String version) Use the prefix map to turn a URI into a qname, or return the original URI
-
Constructor Details
-
Prologue
public Prologue()
-
-
Method Details
-
copy
-
explicitlySetBaseURI
public boolean explicitlySetBaseURI()- Returns:
- True if the query has an explicitly set base URI.
-
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
- Parameters:
baseURI- The baseURI to set.
-
setVersion
-
getVersion
Return the version string declared in SPARQL. This is not the code version. Returns null for "not set", which is the common case. -
setPrefix
Set a prefix for this query -
getPrefixMapping
public org.apache.jena.shared.PrefixMapping getPrefixMapping()Return the prefix map from the parsed query -
getPrefix
Lookup a prefix for this query, including the default prefixes -
expandPrefixedName
Expand prefixed name- Parameters:
prefixed- The prefixed name to be expanded- Returns:
- URI, or null if not expanded.
-
shortForm
Use the prefix map to turn a URI into a qname, or return the original URI -
samePrologue
Test whether a Prologue will perform the same as this one. -
hash
-