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
ConstructorsConstructorDescriptionPrologue()
Prologue
(PrefixMapping pmap) Prologue
(PrefixMapping pmap, IRIxResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
expandPrefixedName
(String prefixed) Expand prefixed nameboolean
getBase()
Lookup a prefix for this query, including the default prefixesReturn the prefix map from the parsed querystatic int
boolean
samePrologue
(Prologue other) Test whether a Prologue will perform the same as this one.void
void
setBaseURI
(String baseURI) void
Set a prefix for this queryvoid
Set the mappingUse 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
-
setBase
-
getResolver
-
setBaseURI
- Parameters:
baseURI
- The baseURI to set.
-
setPrefix
Set a prefix for this query -
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
-