|
||||||||||
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 org.apache.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 org.apache.jena.iri.IRI |
chooseBaseURI()
Choose a base URI based on the current directory |
static org.apache.jena.iri.IRI |
chooseBaseURI(String baseURI)
Deprecated. |
static IRIResolver |
create()
|
static IRIResolver |
create(org.apache.jena.iri.IRI baseIRI)
|
static IRIResolver |
create(String baseStr)
|
static IRIResolver |
createNoResolve()
|
String |
getBaseIRIasString()
|
static org.apache.jena.iri.IRI |
parseIRI(String iriStr)
Parse an IRI (does not resolve it) |
abstract org.apache.jena.iri.IRI |
resolve(String uriStr)
Create a URI, resolving relative IRIs, and throw exception on bad a IRI |
static org.apache.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 org.apache.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 org.apache.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)
Create resolve a URI against a base. |
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 org.apache.jena.iri.IRIFactory iriFactory
Method Detail |
---|
public static boolean checkIRI(String iriStr)
public static org.apache.jena.iri.IRI parseIRI(String iriStr)
public static String resolveFileURL(String filename) throws org.apache.jena.iri.IRIException
filename
-
org.apache.jena.iri.IRIException
public static org.apache.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 String resolveString(String relStr) throws RiotException
relStr
-
RiotException
- If result would not be legal, absolute IRIpublic static org.apache.jena.iri.IRI resolveIRI(String uriStr)
public static IRIResolver create()
public static IRIResolver create(String baseStr)
public static IRIResolver create(org.apache.jena.iri.IRI baseIRI)
public static IRIResolver createNoResolve()
public static void suppressExceptions()
public static org.apache.jena.iri.IRI chooseBaseURI()
@Deprecated public static org.apache.jena.iri.IRI chooseBaseURI(String baseURI)
public String getBaseIRIasString()
public abstract org.apache.jena.iri.IRI resolve(String uriStr)
public abstract org.apache.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 |