Revision fb736afc
Added by Andreas Kohlbecker over 8 years ago
src/main/java/org/bgbm/biovel/drf/utils/IdentifierUtils.java | ||
---|---|---|
1 | 1 |
package org.bgbm.biovel.drf.utils; |
2 | 2 |
|
3 |
import java.net.MalformedURLException; |
|
3 | 4 |
import java.util.UUID; |
4 | 5 |
|
5 | 6 |
import com.ibm.lsid.MalformedLSIDException; |
6 | 7 |
import com.ibm.lsid.client.LSIDAuthority; |
8 |
import com.sun.jndi.toolkit.url.Uri; |
|
7 | 9 |
|
8 | 10 |
public class IdentifierUtils { |
9 | 11 |
|
... | ... | |
38 | 40 |
return true; |
39 | 41 |
} |
40 | 42 |
|
43 |
/** |
|
44 |
* @param id |
|
45 |
* @param idBaseUri |
|
46 |
* @return |
|
47 |
*/ |
|
48 |
@SuppressWarnings("unused") |
|
49 |
public static boolean checkURI(String id) { |
|
50 |
try { |
|
51 |
new Uri(id); |
|
52 |
} catch (MalformedURLException e) { |
|
53 |
return false; |
|
54 |
} |
|
55 |
return true; |
|
56 |
} |
|
57 |
|
|
41 | 58 |
} |
Also available in: Unified diff
externalizing TripleStore functionality from SparqlClient