p.setLat(point.getLatitude());
return p;
}
public Feature persist(final Place place) {
Feature f = (Feature) designate(uriOf(place), place.getPlaceType().getElmoClass());
if (null != place.getName()) {
f.setRdfsLabel(place.getName());
}
if (null != place.getFullName()) {
f.setTitle(place.getFullName());
}
if (null != place.getUrl()) {
Thing t = designate(place.getUrl(), Thing.class);
// FIXME: I'm not sure how this Object Set is handled
Set<Object> s = f.getRdfsSeeAlso();
s.add(t);
f.setRdfsSeeAlso(s);
}
// TODO: link into DBPedia and/or GeoNames
if (null != place.getCountryCode()) {
f.setCountryCode(place.getCountryCode());
}
/*
if (null != place.getPlaceType()) {
org.openrdf.concepts.rdfs.Class c = classForPlaceType(place.getPlaceType());