Class EditConfigurationUtils
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationUtils
-
public class EditConfigurationUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringMULTI_VALUED_EDIT_SUBMISSION
-
Constructor Summary
Constructors Constructor Description EditConfigurationUtils()
-
Method Summary
-
-
-
Field Detail
-
MULTI_VALUED_EDIT_SUBMISSION
protected static final String MULTI_VALUED_EDIT_SUBMISSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSubjectUri
public static String getSubjectUri(VitroRequest vreq)
-
getPredicateUri
public static String getPredicateUri(VitroRequest vreq)
-
getObjectUri
public static String getObjectUri(VitroRequest vreq)
-
getDomainUri
public static String getDomainUri(VitroRequest vreq)
-
getRangeUri
public static String getRangeUri(VitroRequest vreq)
-
getTypeOfNew
public static String getTypeOfNew(VitroRequest vreq)
-
getRangeVClass
public static VClass getRangeVClass(VitroRequest vreq)
-
getLangAwardRangeVClass
public static VClass getLangAwardRangeVClass(VitroRequest vreq)
-
getSubjectIndividual
public static Individual getSubjectIndividual(VitroRequest vreq)
-
getIndividual
public static Individual getIndividual(VitroRequest vreq, String uri)
-
getObjectIndividual
public static Individual getObjectIndividual(VitroRequest vreq)
-
getObjectProperty
public static ObjectProperty getObjectProperty(VitroRequest vreq)
-
getDataProperty
public static DataProperty getDataProperty(VitroRequest vreq)
-
getObjectPropertyForPredicate
public static ObjectProperty getObjectPropertyForPredicate(VitroRequest vreq, String predicateUri)
-
getObjectPropertyForPredicate
public static ObjectProperty getObjectPropertyForPredicate(VitroRequest vreq, String predicateUri, String domainUri, String rangeUri)
-
getObjectPropertyForPredicateLangAware
public static ObjectProperty getObjectPropertyForPredicateLangAware(VitroRequest vreq, String predicateUri, String domainUri, String rangeUri)
-
getDataPropertyForPredicate
public static DataProperty getDataPropertyForPredicate(VitroRequest vreq, String predicateUri)
-
getFormUrlWithoutContext
public static String getFormUrlWithoutContext(VitroRequest vreq)
-
getFormUrl
public static String getFormUrl(VitroRequest vreq)
-
getEditUrl
public static String getEditUrl(VitroRequest vreq)
-
getEditUrlWithoutContext
public static String getEditUrlWithoutContext(VitroRequest vreq)
-
getCancelUrlBase
public static String getCancelUrlBase(VitroRequest vreq)
-
getEditKey
public static String getEditKey(VitroRequest vreq)
-
isDataProperty
public static boolean isDataProperty(String predicateUri, VitroRequest vreq)
-
getDataPropKey
protected static String getDataPropKey(VitroRequest vreq)
-
isObjectProperty
public static boolean isObjectProperty(String predicateUri, VitroRequest vreq)
-
getDataPropertyStatement
public static DataPropertyStatement getDataPropertyStatement(VitroRequest vreq, javax.servlet.http.HttpSession session, Integer dataHash, String predicateUri)
May return null if data property statement cannot be found.
-
getDataHash
public static Integer getDataHash(VitroRequest vreq)
-
getExistingLiteralValues
public static Map<String,List<String>> getExistingLiteralValues(VitroRequest vreq, EditConfigurationVTwo editConfig)
-
transformLiteralMap
public static Map<String,List<String>> transformLiteralMap(Map<String,List<org.apache.jena.rdf.model.Literal>> map)
-
getExistingUriValues
public static Map<String,List<String>> getExistingUriValues(EditConfigurationVTwo editConfig)
-
generateHTMLForElement
public static String generateHTMLForElement(VitroRequest vreq, String fieldName, EditConfigurationVTwo editConfig)
-
getEditConfiguration
public static EditConfigurationVTwo getEditConfiguration(javax.servlet.http.HttpServletRequest request)
-
-