public class Prologue extends Object
Constructor and Description |
---|
Prologue() |
Prologue(PrefixMapping pmap) |
Prologue(PrefixMapping pmap,
com.hp.hpl.jena.n3.IRIResolver resolver) |
Prologue(PrefixMapping pmap,
String base) |
Prologue(Prologue other) |
Modifier and Type | Method and Description |
---|---|
Prologue |
copy() |
String |
expandPrefixedName(String qname)
Expand prefixed name
|
boolean |
explicitlySetBaseURI() |
String |
getBaseURI() |
String |
getPrefix(String prefix)
Lookup a prefix for this query, including the default prefixes
|
PrefixMapping |
getPrefixMapping()
Return the prefix map from the parsed query
|
com.hp.hpl.jena.n3.IRIResolver |
getResolver()
Get the IRI resolver
|
void |
setBaseURI(com.hp.hpl.jena.n3.IRIResolver resolver) |
void |
setBaseURI(String baseURI) |
void |
setPrefix(String prefix,
String expansion)
Set a prefix for this query
|
void |
setPrefixMapping(PrefixMapping pmap)
Set the mapping
|
void |
setResolver(com.hp.hpl.jena.n3.IRIResolver resolver)
Set the IRI resolver
|
String |
shortForm(String uri)
Use the prefix map to turn a URI into a qname, or return the original URI
|
Prologue |
sub(PrefixMapping newMappings) |
Prologue |
sub(PrefixMapping newMappings,
String base) |
Prologue |
sub(String base) |
void |
usePrologueFrom(Prologue other) |
public Prologue()
public Prologue(PrefixMapping pmap)
public Prologue(PrefixMapping pmap, String base)
public Prologue(PrefixMapping pmap, com.hp.hpl.jena.n3.IRIResolver resolver)
public Prologue(Prologue other)
public Prologue copy()
public void usePrologueFrom(Prologue other)
public Prologue sub(PrefixMapping newMappings)
public Prologue sub(PrefixMapping newMappings, String base)
public boolean explicitlySetBaseURI()
public String getBaseURI()
public void setBaseURI(String baseURI)
baseURI
- The baseURI to set.public void setBaseURI(com.hp.hpl.jena.n3.IRIResolver resolver)
resolver
- IRI resolverpublic PrefixMapping getPrefixMapping()
public void setPrefixMapping(PrefixMapping pmap)
public String getPrefix(String prefix)
public com.hp.hpl.jena.n3.IRIResolver getResolver()
public void setResolver(com.hp.hpl.jena.n3.IRIResolver resolver)
public String expandPrefixedName(String qname)
qname
- The prefixed name to be expandedLicenced under the Apache License, Version 2.0