| java.lang.Object com.hp.hpl.jena.n3.IRIResolver
IRIResolver | public class IRIResolver (Code) | | A simple class to access IRI resolution
author: Andy Seaborne, Jeremy Carroll |
Field Summary | |
final static IRI | cwd The current working directory, as an IRI. | final static IRIFactory | factory An IRIFactory appropriately configuired. |
Constructor Summary | |
public | IRIResolver() Construct an IRIResolver with base as the
current working directory. | public | IRIResolver(String baseS) Construct an IRIResolver with base determined
by the argument URI. |
cwd | final static IRI cwd(Code) | | The current working directory, as an IRI.
|
factory | final static IRIFactory factory(Code) | | An IRIFactory appropriately configuired.
|
IRIResolver | public IRIResolver()(Code) | | Construct an IRIResolver with base as the
current working directory.
|
IRIResolver | public IRIResolver(String baseS)(Code) | | Construct an IRIResolver with base determined
by the argument URI. If this is relative,
it is relative against the current working directory.
Parameters: baseS - throws: JenaURIException - If resulting base would not be legal, absolute IRI |
chooseBaseURI | public static String chooseBaseURI()(Code) | | Choose a base URI based on the current directory
String Absolute URI |
chooseBaseURI | public static String chooseBaseURI(String baseURI)(Code) | | Choose a baseURI based on a suggestion
String URI (if relative, relative to current working directory). |
getBaseIRI | public String getBaseIRI()(Code) | | The base of this IRIResolver.
|
resolve | public static String resolve(String relStr, String baseStr) throws JenaURIException(Code) | | Create resolve a URI against a base. If baseStr is a relative file IRI
then it is first resolved against the current working directory.
Parameters: relStr - Parameters: baseStr - Can be null if relStr is absolute String An absolute URI throws: JenaURIException - If result would not be legal, absolute IRI |
resolve | public String resolve(String relURI)(Code) | | Resolve the relative URI against the base of
this IRIResolver.
Parameters: relURI - the resolved IRI throws: JenaURIException - If resulting URI would not be legal, absolute IRI |
resolveFileURL | public static String resolveFileURL(String filename) throws IRIException(Code) | | Turn a filename into a well-formed file: URL relative to the working
directory.
Parameters: filename - String The filename as an absolute URL |
resolveGlobal | public static String resolveGlobal(String str)(Code) | | Resolve the relative URI str against the current
working directory.
Parameters: str - |
|
|