Package org.intermine.web.fair
Class SemanticMarkupFormatter
- java.lang.Object
-
- org.intermine.web.fair.SemanticMarkupFormatter
-
public final class SemanticMarkupFormatter extends java.lang.Object
Class providing schema/bioschemas markups- Author:
- Daniela Butano
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
formatBioEntity(javax.servlet.http.HttpServletRequest request, int id)
Returns bioschema.org markups to be added to the report page of bio entitiesstatic java.util.Map<java.lang.String,java.lang.Object>
formatInstance(javax.servlet.http.HttpServletRequest request, Profile profile)
Returns schema.org markups to be added to the home pagestatic boolean
isEnabled()
Return true if markup are enabled (disabled by default)
-
-
-
Method Detail
-
formatInstance
public static java.util.Map<java.lang.String,java.lang.Object> formatInstance(javax.servlet.http.HttpServletRequest request, Profile profile)
Returns schema.org markups to be added to the home page- Parameters:
request
- the HttpServletRequestprofile
- the profile- Returns:
- the map containing the markups
-
formatBioEntity
public static java.util.Map<java.lang.String,java.lang.Object> formatBioEntity(javax.servlet.http.HttpServletRequest request, int id)
Returns bioschema.org markups to be added to the report page of bio entities- Parameters:
request
- the HttpServletRequestid
- intermine internal id- Returns:
- the map containing the markups
-
isEnabled
public static boolean isEnabled()
Return true if markup are enabled (disabled by default)- Returns:
- true if markup are enabled
-
-