Class IndividualDaoSDB
- 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.IndividualDaoJena
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.IndividualDaoSDB
-
- All Implemented Interfaces:
IndividualDao
public class IndividualDaoSDB extends IndividualDaoJena
-
-
Field Summary
-
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 IndividualDaoSDB(DatasetWrapperFactory dwf, WebappDaoFactorySDB.SDBDatasetMode datasetMode, WebappDaoFactorySDB wadf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getAllIndividualUris()Returns a collection of all Individuals in the model that are user-viewable.protected DatasetWrappergetDatasetWrapper()IndividualgetIndividualByURI(String entityURI)Get a row from the entities table and make an Entity.List<Individual>getIndividualsByDataProperty(String dataPropertyUri, String value)In Jena it can be difficult to get an object with a given dataproperty if you do not care about the datatype or lang of the literal.ListgetIndividualsByVClassURI(String vclassURI, int offset, int quantity)Returns a list of Individuals in a given VClass.protected org.apache.jena.ontology.OntModelgetOntModel()Iterator<String>getUpdatedSinceIterator(long updatedSince)Returns an Iterator over all Individuals in the model that are user-viewable and have been updated since the specified time.protected IndividualmakeIndividual(String individualURI)-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.dao.jena.IndividualDaoJena
addVClass, deleteIndividual, deleteIndividual, deleteIndividual, deleteIndividualWebapp, fillVClassForIndividual, getCountOfIndividualsInVClass, getExternalIds, getExternalIds, getIndividualsByDataProperty, getIndividualsByVClass, getIndividualsByVClassURI, getLabelEditLiteral, getUnusedURI, insertNewIndividual, insertNewIndividual, insertNewIndividualWebapp, isIndividualOfClass, markModified, markModified, removeVClass, updateIndividual, updateIndividual, updateIndividualWebapp
-
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
-
-
-
-
Constructor Detail
-
IndividualDaoSDB
public IndividualDaoSDB(DatasetWrapperFactory dwf, WebappDaoFactorySDB.SDBDatasetMode datasetMode, WebappDaoFactorySDB wadf)
-
-
Method Detail
-
getDatasetWrapper
protected DatasetWrapper getDatasetWrapper()
-
makeIndividual
protected Individual makeIndividual(String individualURI)
-
getOntModel
protected org.apache.jena.ontology.OntModel getOntModel()
- Overrides:
getOntModelin classJenaBaseDao
-
getIndividualsByVClassURI
public List getIndividualsByVClassURI(String vclassURI, int offset, int quantity)
Description copied from interface:IndividualDaoReturns a list of Individuals in a given VClass.- Specified by:
getIndividualsByVClassURIin interfaceIndividualDao- Overrides:
getIndividualsByVClassURIin classIndividualDaoJena
-
getIndividualByURI
public Individual getIndividualByURI(String entityURI)
Description copied from interface:IndividualDaoGet a row from the entities table and make an Entity. PropertiesList will not be filled out. VClass will be filled out.- Specified by:
getIndividualByURIin interfaceIndividualDao- Overrides:
getIndividualByURIin classIndividualDaoJena- Parameters:
entityURI- URI for Individual- Returns:
- an Entity object or null if not found.
-
getIndividualsByDataProperty
public List<Individual> getIndividualsByDataProperty(String dataPropertyUri, String value)
In Jena it can be difficult to get an object with a given dataproperty if you do not care about the datatype or lang of the literal. Use this method if you would like to ignore the lang and datatype. Note: this method doesn't require that a property be declared in the ontology as a data property -- only that it behaves as one.- Specified by:
getIndividualsByDataPropertyin interfaceIndividualDao- Overrides:
getIndividualsByDataPropertyin classIndividualDaoJena
-
getAllIndividualUris
public Collection<String> getAllIndividualUris()
Description copied from interface:IndividualDaoReturns a collection of all Individuals in the model that are user-viewable.- Specified by:
getAllIndividualUrisin interfaceIndividualDao- Overrides:
getAllIndividualUrisin classIndividualDaoJena
-
getUpdatedSinceIterator
public Iterator<String> getUpdatedSinceIterator(long updatedSince)
Description copied from interface:IndividualDaoReturns an Iterator over all Individuals in the model that are user-viewable and have been updated since the specified time.- Specified by:
getUpdatedSinceIteratorin interfaceIndividualDao- Overrides:
getUpdatedSinceIteratorin classIndividualDaoJena
-
-