Mercurial > hg > openmind
view src/main/java/org/mpi/openmind/scripts/Biography.java @ 1:615d27dce9b3
(none)
author | jurzua |
---|---|
date | Wed, 29 Oct 2014 13:28:45 +0000 |
parents | |
children |
line wrap: on
line source
package org.mpi.openmind.scripts; import java.util.List; import org.mpi.openmind.cache.WrapperService; import org.mpi.openmind.repository.bo.Attribute; import org.mpi.openmind.repository.bo.Entity; import org.mpi.openmind.repository.services.ServiceRegistry; public class Biography { public static void execute(WrapperService wrapper){ List<Entity> rs = wrapper.getEntitiesByAtt("PERSON", "url", "http://islamsci.mcgill.ca/RASI/BEA", -1, true); for(Entity ent : rs){ Attribute att = wrapper.getAttributeByName(ent.getId(), "url"); System.out.println(/*"[" + ent.getId() + "] " +*/ ent.getNormalizedOwnValue() + " - " + att.getOwnValue()); } System.out.println("RS: " + rs.size()); } public static void main(String[] args){ ServiceRegistry services = new ServiceRegistry(); Biography.execute(services.getWrapper()); System.exit(0); } }