Class ObjectPropertyDaoJena
- 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.ObjectPropertyDaoJena
-
- All Implemented Interfaces:
ObjectPropertyDao,PropertyDao
public class ObjectPropertyDaoJena extends PropertyDaoJena implements ObjectPropertyDao
-
-
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 List<String>EXCLUDED_NAMESPACESprotected static StringLIST_VIEW_CONFIG_FILE_QUERY_STRINGprotected static org.apache.jena.query.QuerylistViewConfigFileQueryprotected static StringOBJECT_PROPERTY_QUERY_STRINGprotected 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, HIDDEN_FROM_DISPLAY_BELOW_ROLE_LEVEL_ANNOT, HIDDEN_FROM_PUBLISH_BELOW_ROLE_LEVEL_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, PROHIBITED_FROM_UPDATE_BELOW_ROLE_LEVEL_ANNOT, 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 ObjectPropertyDaoJena(RDFService rdfService, DatasetWrapperFactory dwf, Map<PropertyDao.FullPropertyKey,String> customListViewConfigFileMap, WebappDaoFactoryJena wadf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteObjectProperty(ObjectProperty prop)voiddeleteObjectProperty(String propertyURI)voiddeleteProperty(ObjectProperty prop, org.apache.jena.ontology.OntModel ontModel)voidfillObjectPropertiesForIndividual(Individual entity)ListgetAllObjectProperties()StringgetCustomListViewConfigFileName(ObjectProperty op)List<ObjectProperty>getObjectPropertiesForObjectPropertyStatements(List<ObjectPropertyStatement> objPropertyStmts)ObjectPropertygetObjectPropertyByURI(String propertyURI)ObjectPropertygetObjectPropertyByURIs(String propertyURI, String domainURI, String rangeURI)ObjectPropertygetObjectPropertyByURIs(String propertyURI, String domainURI, String rangeURI, ObjectProperty base)Use this method to supply a base ObjectProperty whose fields will be updated as necessary to correspond to the configuration for the specified Domain and Range.List<ObjectProperty>getObjectPropertyList(Individual subject)Returns a list of ObjectProperty objects for which statements exist about the individual.List<ObjectProperty>getObjectPropertyList(String subjectUri)Returns a list of ObjectProperty objects for which statements exist about the individual.protected org.apache.jena.ontology.OntModelgetOntModel()ListgetPropIdsForClass(String classURI, boolean direction)List<ObjectProperty>getRootObjectProperties()List<String>getSubPropertyURIs(String objectPropertyURI)List<String>getSuperPropertyURIs(String objectPropertyURI)intinsertObjectProperty(ObjectProperty prop)intinsertProperty(ObjectProperty prop, org.apache.jena.ontology.OntModel ontModel)protected ObjectPropertypropertyFromOntProperty(org.apache.jena.ontology.OntProperty op)booleanskipEditForm(String predicateURI)voidupdateObjectProperty(ObjectProperty prop)voidupdateProperty(ObjectProperty prop, org.apache.jena.ontology.OntModel ontModel)-
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, getPropertiesWithAppropriateDomainFor, getPropertyQueryResults, getRDFService, getRestrictedClasses, 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, getMostRestrictiveRoleLevel, 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.ObjectPropertyDao
getSuperPropertyURIs
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.dao.PropertyDao
addEquivalentProperty, addEquivalentProperty, addSubproperty, addSubproperty, addSuperproperty, addSuperproperty, getAllSubPropertyURIs, getAllSuperPropertyURIs, getClassesWithRestrictionOnProperty, getEquivalentPropertyURIs, removeEquivalentProperty, removeEquivalentProperty, removeSubproperty, removeSubproperty, removeSuperproperty, removeSuperproperty
-
-
-
-
Field Detail
-
PROPERTY_FILTERS
protected static final String PROPERTY_FILTERS
-
OBJECT_PROPERTY_QUERY_STRING
protected static final String OBJECT_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
-
ObjectPropertyDaoJena
public ObjectPropertyDaoJena(RDFService rdfService, DatasetWrapperFactory dwf, Map<PropertyDao.FullPropertyKey,String> customListViewConfigFileMap, WebappDaoFactoryJena wadf)
-
-
Method Detail
-
getOntModel
protected org.apache.jena.ontology.OntModel getOntModel()
- Overrides:
getOntModelin classPropertyDaoJena
-
deleteObjectProperty
public void deleteObjectProperty(String propertyURI)
- Specified by:
deleteObjectPropertyin interfaceObjectPropertyDao
-
fillObjectPropertiesForIndividual
public void fillObjectPropertiesForIndividual(Individual entity)
- Specified by:
fillObjectPropertiesForIndividualin interfaceObjectPropertyDao
-
propertyFromOntProperty
protected ObjectProperty propertyFromOntProperty(org.apache.jena.ontology.OntProperty op)
-
getAllObjectProperties
public List getAllObjectProperties()
- Specified by:
getAllObjectPropertiesin interfaceObjectPropertyDao
-
getObjectPropertyByURI
public ObjectProperty getObjectPropertyByURI(String propertyURI)
- Specified by:
getObjectPropertyByURIin interfaceObjectPropertyDao
-
getObjectPropertyByURIs
public ObjectProperty getObjectPropertyByURIs(String propertyURI, String domainURI, String rangeURI)
- Specified by:
getObjectPropertyByURIsin interfaceObjectPropertyDao
-
getObjectPropertyByURIs
public ObjectProperty getObjectPropertyByURIs(String propertyURI, String domainURI, String rangeURI, ObjectProperty base)
Description copied from interface:ObjectPropertyDaoUse this method to supply a base ObjectProperty whose fields will be updated as necessary to correspond to the configuration for the specified Domain and Range.- Specified by:
getObjectPropertyByURIsin interfaceObjectPropertyDao- Parameters:
propertyURI- Object Property URIdomainURI- Domain URIrangeURI- Range URIbase- Object property- Returns:
- ObjectProperty
-
getObjectPropertiesForObjectPropertyStatements
public List<ObjectProperty> getObjectPropertiesForObjectPropertyStatements(List<ObjectPropertyStatement> objPropertyStmts)
- Specified by:
getObjectPropertiesForObjectPropertyStatementsin interfaceObjectPropertyDao
-
insertObjectProperty
public int insertObjectProperty(ObjectProperty prop) throws InsertException
- Specified by:
insertObjectPropertyin interfaceObjectPropertyDao- Throws:
InsertException
-
insertProperty
public int insertProperty(ObjectProperty prop, org.apache.jena.ontology.OntModel ontModel) throws InsertException
- Throws:
InsertException
-
updateObjectProperty
public void updateObjectProperty(ObjectProperty prop)
- Specified by:
updateObjectPropertyin interfaceObjectPropertyDao
-
updateProperty
public void updateProperty(ObjectProperty prop, org.apache.jena.ontology.OntModel ontModel)
-
deleteObjectProperty
public void deleteObjectProperty(ObjectProperty prop)
- Specified by:
deleteObjectPropertyin interfaceObjectPropertyDao
-
deleteProperty
public void deleteProperty(ObjectProperty prop, org.apache.jena.ontology.OntModel ontModel)
-
getRootObjectProperties
public List<ObjectProperty> getRootObjectProperties()
- Specified by:
getRootObjectPropertiesin interfaceObjectPropertyDao
-
getSubPropertyURIs
public List<String> getSubPropertyURIs(String objectPropertyURI)
- Specified by:
getSubPropertyURIsin interfaceObjectPropertyDao- Specified by:
getSubPropertyURIsin interfacePropertyDao- Overrides:
getSubPropertyURIsin classPropertyDaoJena
-
skipEditForm
public boolean skipEditForm(String predicateURI)
- Specified by:
skipEditFormin interfaceObjectPropertyDao
-
getObjectPropertyList
public List<ObjectProperty> getObjectPropertyList(Individual subject)
Description copied from interface:ObjectPropertyDaoReturns a list of ObjectProperty objects for which statements exist about the individual. Note that this method now returns multiple copies of a given predicate, with the rangeVClassURI changed to indicate the distinct types of the related objects. This supports finding the approriate list views for the "faux" qualified properties.- Specified by:
getObjectPropertyListin interfaceObjectPropertyDao
-
getObjectPropertyList
public List<ObjectProperty> getObjectPropertyList(String subjectUri)
Description copied from interface:ObjectPropertyDaoReturns a list of ObjectProperty objects for which statements exist about the individual. Note that this method now returns multiple copies of a given predicate, with the rangeVClassURI changed to indicate the distinct types of the related objects. This supports finding the approriate list views for the "faux" qualified properties.- Specified by:
getObjectPropertyListin interfaceObjectPropertyDao
-
getCustomListViewConfigFileName
public String getCustomListViewConfigFileName(ObjectProperty op)
- Specified by:
getCustomListViewConfigFileNamein interfaceObjectPropertyDao
-
-