Package org.apache.jena.ttl
Class N3IRIResolver
- java.lang.Object
-
- org.apache.jena.ttl.N3IRIResolver
-
@Deprecated public class N3IRIResolver extends java.lang.Object
Deprecated.A simple class to access IRI resolution. Replaced byorg.apache.jena.riot.system.IRIResolver
Only exists for jena-core tests
-
-
Constructor Summary
Constructors Constructor Description N3IRIResolver()
Deprecated.Construct an IRIResolver with base as the current working directory.N3IRIResolver(java.lang.String baseS)
Deprecated.Construct an IRIResolver with base determined by the argument URI.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
chooseBaseURI()
Deprecated.Choose a base URI based on the current directorystatic java.lang.String
chooseBaseURI(java.lang.String baseURI)
Deprecated.Choose a baseURI based on a suggestionjava.lang.String
getBaseIRI()
Deprecated.The base of this IRIResolver.java.lang.String
resolve(java.lang.String relURI)
Deprecated.Resolve the relative URI against the base of this IRIResolver.static java.lang.String
resolve(java.lang.String relStr, java.lang.String baseStr)
Deprecated.Create resolve a URI against a base.static java.lang.String
resolveFileURL(java.lang.String filename)
Deprecated.Turn a filename into a well-formed file: URL relative to the working directory.static java.lang.String
resolveGlobal(java.lang.String str)
Deprecated.Resolve the relative URI str against the current working directory.static void
setShowExceptions(boolean state)
Deprecated.To allow Eyeball to bypass IRI checking (because it's doing its own)static void
suppressExceptions()
Deprecated.To allow Eyeball to bypass IRI checking (because it's doing its own)
-
-
-
Constructor Detail
-
N3IRIResolver
public N3IRIResolver()
Deprecated.Construct an IRIResolver with base as the current working directory.
-
N3IRIResolver
public N3IRIResolver(java.lang.String baseS)
Deprecated.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
-
-
Method Detail
-
resolveFileURL
public static java.lang.String resolveFileURL(java.lang.String filename) throws IRIException
Deprecated.Turn a filename into a well-formed file: URL relative to the working directory.- Parameters:
filename
-- Returns:
- String The filename as an absolute URL
- Throws:
IRIException
-
resolve
public static java.lang.String resolve(java.lang.String relStr, java.lang.String baseStr) throws JenaURIException
Deprecated.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
-baseStr
- Can be null if relStr is absolute- Returns:
- String An absolute URI
- Throws:
JenaURIException
- If result would not be legal, absolute IRI
-
getBaseIRI
public java.lang.String getBaseIRI()
Deprecated.The base of this IRIResolver.- Returns:
- String
-
resolve
public java.lang.String resolve(java.lang.String relURI)
Deprecated.Resolve the relative URI against the base of this IRIResolver.- Parameters:
relURI
-- Returns:
- the resolved IRI
- Throws:
JenaURIException
- If resulting URI would not be legal, absolute IRI
-
suppressExceptions
public static void suppressExceptions()
Deprecated.To allow Eyeball to bypass IRI checking (because it's doing its own)
-
setShowExceptions
public static void setShowExceptions(boolean state)
Deprecated.To allow Eyeball to bypass IRI checking (because it's doing its own)
-
resolveGlobal
public static java.lang.String resolveGlobal(java.lang.String str)
Deprecated.Resolve the relative URI str against the current working directory.- Parameters:
str
-- Returns:
- String
-
chooseBaseURI
public static java.lang.String chooseBaseURI()
Deprecated.Choose a base URI based on the current directory- Returns:
- String Absolute URI
-
chooseBaseURI
public static java.lang.String chooseBaseURI(java.lang.String baseURI)
Deprecated.Choose a baseURI based on a suggestion- Returns:
- String URI (if relative, relative to current working directory).
-
-