VIVO-928: added microformats to non persons. Typing goes two levels down in some cases for organizations. Some info content entities covered, though many types not covered by schema.org

This commit is contained in:
Tim Worrall 2015-02-10 16:34:12 -05:00
parent 03c894c463
commit 5eb177b8e6
4 changed files with 83 additions and 6 deletions

View file

@ -38,6 +38,7 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel {
private static final String DTP_CLASS = "http://vivoweb.org/ontology/core#DateTimeValuePrecision";
private static final String ORGANIZATION_CLASS = FOAF + "Organization";
private static final String EVENT_CLASS = "http://purl.org/NET/c4dm/event.owl#Event";
private static final String INFO_CONTENT_ENTITY_CLASS = "http://purl.obolibrary.org/obo/IAO_0000030";
private static final String BASE_VISUALIZATION_URL =
UrlBuilder.getUrl(Route.VISUALIZATION_SHORT.path());
@ -84,6 +85,10 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel {
return isVClass(EVENT_CLASS);
}
public boolean infoContentEntity() {
return isVClass(INFO_CONTENT_ENTITY_CLASS);
}
public String coAuthorVisUrl() {
String url = BASE_VISUALIZATION_URL + "/" + VisualizationFrameworkConstants.COAUTHORSHIP_VIS_SHORT_URL + "/";
return getVisUrl(url);