jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1240609 - /incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/riot/system/IRIResolver.java
Date Sat, 04 Feb 2012 20:51:27 GMT
Author: andy
Date: Sat Feb  4 20:51:27 2012
New Revision: 1240609

URL: http://svn.apache.org/viewvc?rev=1240609&view=rev
Log:
Add a static method to sort out a URI and return as a string.

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/riot/system/IRIResolver.java

Modified: incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/riot/system/IRIResolver.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/riot/system/IRIResolver.java?rev=1240609&r1=1240608&r2=1240609&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/riot/system/IRIResolver.java
(original)
+++ incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/riot/system/IRIResolver.java
Sat Feb  4 20:51:27 2012
@@ -178,6 +178,21 @@ public abstract class IRIResolver
         return exceptions(resolveIRI(relStr, baseStr)).toString() ;
     }
 
+    /**
+     * Create resolve a URI against a base. If baseStr is a relative file IRI
+     * then it is first resolved against the current working directory.
+     * 
+     * @param relStr
+     * @return String An absolute URI
+     * @throws RiotException
+     *             If result would not be legal, absolute IRI
+     */
+    static public String resolveString(String relStr) throws RiotException
+    {
+        return exceptions(resolveIRI(relStr)).toString() ;
+    }
+
+
     /** 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).



Mime
View raw message