java.lang.Object
org.apache.jena.irix.IRIs
Operations in support of
IRIx
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRIxResolver
Return a resolver that does not resolve, and have a base and does not allow relative URIs.static boolean
Check a string is valid syntax for an IRI (absolute or relative)static String
Check a string is valid syntax for an IRI, is an absolute IRI (resolve if necessary) and normalize (e.g.static String
The system base IRI as a string.static IRIx
The system baseIRIx
.static IRIx
Operation to take a string and make anIRIx
.static IRIxResolver
Return a resolver that does not resolve relative URIs, with the current system base as its base IRIstatic String
Resolve a URI against the system base.static String
Resolve a URI against a base.static String
Resolve a URI against a base.static String
Resolve a URI against a base.static IRIx
resolveIRI
(String iriStr) Resolve a URI against the system base.static IRIxResolver
Return a general purpose resolver, with the current system base as its base IRI.static IRIxResolver
Return a general purpose resolver, with the supplied IRI its base.static String
Get the URI scheme at the start of the string.static IRIxResolver
Return a general purpose resolver, with the current system base as its base IRI.static String
Given a candidate baseURI string, which may be a filename, turn it into a IRI suitable as a base IRI.
-
Constructor Details
-
IRIs
public IRIs()
-
-
Method Details
-
reference
Operation to take a string and make anIRIx
. This operation does not resolve the string against a base.Use this function if the application has been given an URI and wants to be sure it is valid for use in RDF.
Use
resolve(java.lang.String)
to resolve a potentially relative URI against the current system base. -
check
Check a string is valid syntax for an IRI (absolute or relative) -
checkEx
Check a string is valid syntax for an IRI, is an absolute IRI (resolve if necessary) and normalize (e.g. remove "./.." and "/../"). -
getSystemBase
The system baseIRIx
. -
getBaseStr
The system base IRI as a string. -
toBase
Given a candidate baseURI string, which may be a filename, turn it into a IRI suitable as a base IRI. -
stdResolver
Return a general purpose resolver, with the current system base as its base IRI. -
resolver
Return a general purpose resolver, with the current system base as its base IRI. -
resolver
Return a general purpose resolver, with the supplied IRI its base. -
absoluteResolver
Return a resolver that does not resolve, and have a base and does not allow relative URIs. -
relativeResolver
Return a resolver that does not resolve relative URIs, with the current system base as its base IRI -
resolve
Resolve a URI against the system base. -
resolveIRI
Resolve a URI against the system base. -
resolve
Resolve a URI against a base. -
resolve
Resolve a URI against a base. -
resolve
Resolve a URI against a base. The base must be an absolute IRI. -
scheme
Get the URI scheme at the start of the string. This is the substring up to, and excluding, the first ":" if it conforms to the syntax requirements. Return null if it does not look like a scheme.The RFC 3986 URI grammar defines
scheme
as:URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) ...
-