|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openjena.riot.system.IRIResolver
public abstract class IRIResolver
Package up IRI reolver functionality.
Field Summary | |
---|---|
static com.hp.hpl.jena.iri.IRIFactory |
iriFactory
The IRI checker setup - more than usual Jena but not full IRI. |
Method Summary | |
---|---|
static boolean |
checkIRI(String iriStr)
Check an IRI string (does not resolve it) |
static com.hp.hpl.jena.iri.IRI |
chooseBaseURI()
Choose a base URI based on the current directory |
static com.hp.hpl.jena.iri.IRI |
chooseBaseURI(String baseURI)
Deprecated. |
static IRIResolver |
create()
|
static IRIResolver |
create(com.hp.hpl.jena.iri.IRI baseIRI)
|
static IRIResolver |
create(String baseStr)
|
static IRIResolver |
createNoResolve()
|
String |
getBaseIRIasString()
|
static com.hp.hpl.jena.iri.IRI |
parseIRI(String iriStr)
Parse an IRI (does not resolve it) |
abstract com.hp.hpl.jena.iri.IRI |
resolve(String uriStr)
Create a URI, resolving relative IRIs, and throw exception on bad a IRI |
static com.hp.hpl.jena.iri.IRI |
resolve(String relStr,
String baseStr)
Create resolve a URI against a base. |
static String |
resolveFileURL(String filename)
Turn a filename into a well-formed file: URL relative to the working directory. |
static com.hp.hpl.jena.iri.IRI |
resolveIRI(String uriStr)
Resolve an IRI against whatever is the base for this process (likely to be based on the current working directory of this process at the time of initialization of this class). |
abstract com.hp.hpl.jena.iri.IRI |
resolveSilent(String uriStr)
Create a URI, resolving relative IRIs, but do not throw exception on bad a IRI |
static String |
resolveString(String relStr,
String baseStr)
Create resolve a URI against a base. |
String |
resolveToString(String uriStr)
Resolving relative IRIs, return a string |
String |
resolveToStringSilent(String uriStr)
Resolving relative IRIs, return a string, but do not throw exception on bad a IRI |
static void |
suppressExceptions()
To allow Eyeball to bypass IRI checking (because it's doing its own) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final com.hp.hpl.jena.iri.IRIFactory iriFactory
Method Detail |
---|
public static boolean checkIRI(String iriStr)
public static com.hp.hpl.jena.iri.IRI parseIRI(String iriStr)
public static String resolveFileURL(String filename) throws com.hp.hpl.jena.iri.IRIException
filename
-
com.hp.hpl.jena.iri.IRIException
public static com.hp.hpl.jena.iri.IRI resolve(String relStr, String baseStr) throws RiotException
relStr
- baseStr
- Can be null if relStr is absolute
RiotException
- If result would not be legal, absolute IRIpublic static String resolveString(String relStr, String baseStr) throws RiotException
relStr
- baseStr
- Can be null if relStr is absolute
RiotException
- If result would not be legal, absolute IRIpublic static com.hp.hpl.jena.iri.IRI resolveIRI(String uriStr)
public static IRIResolver create()
public static IRIResolver create(String baseStr)
public static IRIResolver create(com.hp.hpl.jena.iri.IRI baseIRI)
public static IRIResolver createNoResolve()
public static void suppressExceptions()
public static com.hp.hpl.jena.iri.IRI chooseBaseURI()
@Deprecated public static com.hp.hpl.jena.iri.IRI chooseBaseURI(String baseURI)
public String getBaseIRIasString()
public abstract com.hp.hpl.jena.iri.IRI resolve(String uriStr)
public abstract com.hp.hpl.jena.iri.IRI resolveSilent(String uriStr)
public String resolveToString(String uriStr)
public String resolveToStringSilent(String uriStr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |