use of net.fortuna.ical4j.vcard.VCardBuilder in project stanbol by apache.
the class VcardIndexingSource method main.
public static void main(String[] args) throws Exception {
VcardIndexingSource instance = new VcardIndexingSource();
instance.prefix = "http://test.org/";
VCardBuilder parser = new VCardBuilder(new InputStreamReader(new FileInputStream(new File(args[0])), "utf8"));
Map<EntityType, Map<String, Set<String>>> entityMap = new EnumMap<EntityType, Map<String, Set<String>>>(EntityType.class);
entityMap.put(EntityType.organization, new HashMap<String, Set<String>>());
entityMap.put(EntityType.person, new HashMap<String, Set<String>>());
for (VCard vcard : parser.buildAll()) {
instance.processVcard(vcard, OntologyMappings.schemaOrgMappings, entityMap);
}
}
Aggregations