Revision 41057
Added by Giorgos Alexiou over 8 years ago
MapCountries.java | ||
---|---|---|
36 | 36 |
String countryURI=""; |
37 | 37 |
try{ |
38 | 38 |
iso_3166_1_Code = iso_3166_1_Code.trim(); |
39 |
|
|
40 |
if(iso_3166_1_Code.equals("UK") || iso_3166_1_Code.equals("GB")) return "http://dbpedia.org/resource/United_Kingdom"; |
|
41 |
|
|
39 | 42 |
Model dbpediaCountries = ModelFactory.createDefaultModel(); |
40 | 43 |
// URL file = MapCountries.class.getClassLoader().getResource("rdfData/dbpedia_Countries.rdf"); |
41 | 44 |
// InputStream is = new FileInputStream(path); |
Also available in: Unified diff
Changes in The RDFizer
validation for URIs