Class DataPropertyDaoJena
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDaoCon
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDao
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.PropertyDaoJena
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.DataPropertyDaoJena
-
- All Implemented Interfaces:
DataPropertyDao,PropertyDao
public class DataPropertyDaoJena extends PropertyDaoJena implements DataPropertyDao
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.cornell.mannlib.vitro.webapp.dao.PropertyDao
PropertyDao.FullPropertyKey
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDATA_PROPERTY_QUERY_STRINGprotected static List<String>EXCLUDED_NAMESPACESprotected static StringLIST_VIEW_CONFIG_FILE_QUERY_STRINGprotected static org.apache.jena.query.QuerylistViewConfigFileQueryprotected static org.apache.commons.logging.Loglogprotected static StringPROPERTY_FILTERS-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.PropertyDaoJena
dwf, FAUX_PROPERTY_FLAG, PREFIXES, rdfService
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDao
DEFAULT_NAMESPACE, KEEP_ONLY_IF_FALSE, KEEP_ONLY_IF_TRUE, NONUSER_NAMESPACES, PREFERRED_LANGUAGES, PSEUDO_BNODE_NS, XSD, xsdDateFormat, xsdDateTimeFormat
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDaoCon
ADDITIONAL_LINK, APPLICATION_ABOUTTEXT, APPLICATION_ACKNOWLEGETEXT, APPLICATION_CONTACTMAIL, APPLICATION_COPYRIGHTANCHOR, APPLICATION_COPYRIGHTURL, APPLICATION_CORRECTIONMAIL, APPLICATION_THEMEDIR, CLASSGROUP, DATAPROPERTY_ISEXTERNALID, DESCRIPTION_ANNOT, DISPLAY_LIMIT, DISPLAY_RANK, DISPLAY_RANK_ANNOT, EDITING, EXAMPLE, EXAMPLE_ANNOT, IN_CLASSGROUP, IND_MAIN_IMAGE, LINK, LINK_ANCHOR, LINK_DISPLAYRANK, LINK_TYPE, LINK_URL, MODTIME, MONIKER, ONTOLOGY_PREFIX_ANNOT, PERMISSION, PERMISSION_SET_FOR_NEW_USERS, PERMISSION_SET_FOR_PUBLIC, PERMISSIONSET, PERMISSIONSET_HAS_PERMISSION, PORTAL, PRIMARY_LINK, PROPERTY_ADDLINKSUPPRESSED, PROPERTY_COLLATEBYSUBCLASSANNOT, PROPERTY_CUSTOM_LIST_VIEW_ANNOT, PROPERTY_CUSTOMDISPLAYVIEWANNOT, PROPERTY_CUSTOMENTRYFORMANNOT, PROPERTY_CUSTOMSEARCHVIEWANNOT, PROPERTY_CUSTOMSHORTVIEWANNOT, PROPERTY_DELETELINKSUPPRESSED, PROPERTY_EDITLINKSUPPRESSED, PROPERTY_ENTITYSORTDIRECTION, PROPERTY_ENTITYSORTFIELD, PROPERTY_FULLPROPERTYNAMEANNOT, PROPERTY_INPROPERTYGROUPANNOT, PROPERTY_OBJECTINDIVIDUALSORTPROPERTY, PROPERTY_OFFERCREATENEWOPTIONANNOT, PROPERTY_SELECTFROMEXISTINGANNOT, PROPERTY_STUBOBJECTPROPERTYANNOT, PROPERTYGROUP, PUBLIC_DESCRIPTION_ANNOT, SEARCH_BOOST_ANNOT, SHORTDEF, USERACCOUNT, USERACCOUNT_ARGON2_PASSWORD, USERACCOUNT_EMAIL_ADDRESS, USERACCOUNT_EMAIL_KEY, USERACCOUNT_EXTERNAL_AUTH_ID, USERACCOUNT_EXTERNAL_AUTH_ONLY, USERACCOUNT_FIRST_NAME, USERACCOUNT_HAS_PERMISSION_SET, USERACCOUNT_LAST_LOGIN_TIME, USERACCOUNT_LAST_NAME, USERACCOUNT_LOGIN_COUNT, USERACCOUNT_MD5_PASSWORD, USERACCOUNT_OLD_PASSWORD, USERACCOUNT_PASSWORD_CHANGE_REQUIRED, USERACCOUNT_PASSWORD_LINK_EXPIRES, USERACCOUNT_PROXY_EDITOR_FOR, USERACCOUNT_ROOT_USER, USERACCOUNT_STATUS, VITRO_PUBLIC_ONTOLOGY
-
-
Constructor Summary
Constructors Constructor Description DataPropertyDaoJena(RDFService rdfService, DatasetWrapperFactory dwf, WebappDaoFactoryJena wadf)
-
Method Summary
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.PropertyDaoJena
addEquivalentProperty, addEquivalentProperty, addSubproperty, addSubproperty, addSubproperty, addSuperproperty, addSuperproperty, addSuperproperty, getAllPossiblePropInstForIndividual, getAllPropInstByVClass, getAllPropInstByVClasses, getAllSubPropertyURIs, getAllSuperPropertyURIs, getClassesWithRestrictionOnProperty, getEquivalentPropertyURIs, getOntModel, getPropertiesWithAppropriateDomainFor, getPropertyQueryResults, getRDFService, getRestrictedClasses, getSubPropertyURIs, getSuperPropertyURIs, removeABoxStatementsWithPredicate, removeABoxStatementsWithPredicate, removeEquivalentProperty, removeEquivalentProperty, removeSubproperty, removeSubproperty, removeSubproperty, removeSuperproperty, removeSuperproperty, removeSuperproperty
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDao
addPropertyBooleanValue, addPropertyDateTimeValue, addPropertyDateValue, addPropertyFloatValue, addPropertyIntValue, addPropertyLongValue, addPropertyNonNegativeIntValue, addPropertyResourceURIValue, addPropertyResourceValue, addPropertyStringValue, checkURI, getClassURIStr, getDefaultLanguage, getLabel, getLabelLiteral, getLabelLiteral, getLabelOrId, getLocalNameOrId, getOntClass, getOntModelSelector, getPropertyBooleanValue, getPropertyDateTimeValue, getPropertyDateValue, getPropertyFloatValue, getPropertyIntValue, getPropertyLongValue, getPropertyNonNegativeIntegerValue, getPropertyNonNegativeIntValue, getPropertyResourceURIValues, getPropertyStringValue, getSmartRemoval, getWebappDaoFactory, getWritableOntModelList, isBooleanClassExpression, listDirectObjectPropertySubjects, listDirectObjectPropertyValues, makeNodeForURI, removeRulesMentioningResource, smartRemove, tryLiteralForPreferredLanguages, updatePlainLiteralValue, updatePlainLiteralValue, updatePropertyBooleanValue, updatePropertyDateTimeValue, updatePropertyDateValue, updatePropertyFloatValue, updatePropertyIntValue, updatePropertyLongValue, updatePropertyNonNegativeIntegerValue, updatePropertyNonNegativeIntValue, updatePropertyResourceURIValue, updatePropertyResourceURIValue, updatePropertyResourceURIValues, updatePropertyResourceValue, updatePropertyResourceValue, updatePropertyStringValue, updateRDFSLabel, updateRDFSLabel
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.JenaBaseDaoCon
getConstModel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.dao.PropertyDao
addEquivalentProperty, addEquivalentProperty, addSubproperty, addSubproperty, addSuperproperty, addSuperproperty, getAllSubPropertyURIs, getAllSuperPropertyURIs, getClassesWithRestrictionOnProperty, getEquivalentPropertyURIs, getSubPropertyURIs, getSuperPropertyURIs, removeEquivalentProperty, removeEquivalentProperty, removeSubproperty, removeSubproperty, removeSuperproperty, removeSuperproperty
-
-
-
-
Field Detail
-
log
protected static final org.apache.commons.logging.Log log
-
PROPERTY_FILTERS
protected static final String PROPERTY_FILTERS
-
DATA_PROPERTY_QUERY_STRING
protected static final String DATA_PROPERTY_QUERY_STRING
-
LIST_VIEW_CONFIG_FILE_QUERY_STRING
protected static final String LIST_VIEW_CONFIG_FILE_QUERY_STRING
- See Also:
- Constant Field Values
-
listViewConfigFileQuery
protected static org.apache.jena.query.Query listViewConfigFileQuery
-
-
Constructor Detail
-
DataPropertyDaoJena
public DataPropertyDaoJena(RDFService rdfService, DatasetWrapperFactory dwf, WebappDaoFactoryJena wadf)
-
-
Method Detail
-
deleteDataProperty
public void deleteDataProperty(DataProperty dtp)
- Specified by:
deleteDataPropertyin interfaceDataPropertyDao
-
deleteDataProperty
public void deleteDataProperty(String URI)
- Specified by:
deleteDataPropertyin interfaceDataPropertyDao
-
annotateDataPropertyAsExternalIdentifier
public boolean annotateDataPropertyAsExternalIdentifier(String dataPropertyURI)
- Specified by:
annotateDataPropertyAsExternalIdentifierin interfaceDataPropertyDao
-
deleteDataProperty
public void deleteDataProperty(String URI, org.apache.jena.ontology.OntModel ontModel)
-
fillDataPropertiesForIndividual
public void fillDataPropertiesForIndividual(Individual entity)
- Specified by:
fillDataPropertiesForIndividualin interfaceDataPropertyDao
-
getAllDataProperties
public List getAllDataProperties()
- Specified by:
getAllDataPropertiesin interfaceDataPropertyDao
-
getAllExternalIdDataProperties
public List getAllExternalIdDataProperties()
- Specified by:
getAllExternalIdDataPropertiesin interfaceDataPropertyDao
-
getDataPropertiesForVClass
public List<DataProperty> getDataPropertiesForVClass(String vclassURI)
- Specified by:
getDataPropertiesForVClassin interfaceDataPropertyDao
-
getDatapropsForClass
public List<DataProperty> getDatapropsForClass(String vclassURI)
-
getAllPossibleDatapropsForIndividual
public Collection<DataProperty> getAllPossibleDatapropsForIndividual(String individualURI)
- Specified by:
getAllPossibleDatapropsForIndividualin interfaceDataPropertyDao
-
reasoningAvailable
protected boolean reasoningAvailable()
-
getRequiredDatatypeURI
public String getRequiredDatatypeURI(Individual individual, DataProperty dataprop)
- Specified by:
getRequiredDatatypeURIin interfaceDataPropertyDao
-
getSupertypeURIs
protected List<String> getSupertypeURIs(Individual ind)
This method will iterate through each of an individual's direct types and get the URIs of all supertypes.
-
getDataPropertyByURI
public DataProperty getDataPropertyByURI(String dataPropertyURI)
- Specified by:
getDataPropertyByURIin interfaceDataPropertyDao
-
insertDataProperty
public String insertDataProperty(DataProperty dtp) throws InsertException
- Specified by:
insertDataPropertyin interfaceDataPropertyDao- Throws:
InsertException
-
insertDataProperty
public String insertDataProperty(DataProperty dtp, org.apache.jena.ontology.OntModel ontModel) throws InsertException
- Throws:
InsertException
-
updateDataProperty
public void updateDataProperty(DataProperty dtp)
- Specified by:
updateDataPropertyin interfaceDataPropertyDao
-
updateDataProperty
public void updateDataProperty(DataProperty dtp, org.apache.jena.ontology.OntModel ontModel)
-
getRootDataProperties
public List<DataProperty> getRootDataProperties()
- Specified by:
getRootDataPropertiesin interfaceDataPropertyDao
-
getDataPropertyList
public List<DataProperty> getDataPropertyList(Individual subject)
- Specified by:
getDataPropertyListin interfaceDataPropertyDao
-
getDataPropertyList
public List<DataProperty> getDataPropertyList(String subjectUri)
- Specified by:
getDataPropertyListin interfaceDataPropertyDao
-
getCustomListViewConfigFileName
public String getCustomListViewConfigFileName(DataProperty dp)
- Specified by:
getCustomListViewConfigFileNamein interfaceDataPropertyDao
-
-