Class IndividualJena
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean
-
- edu.cornell.mannlib.vitro.webapp.beans.IndividualImpl
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.IndividualJena
-
- All Implemented Interfaces:
Individual,ResourceBean,Comparable<Individual>
public class IndividualJena extends IndividualImpl implements Individual
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean
BaseResourceBean.RoleLevel
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.beans.IndividualImpl
ALL, allVClasses, dataPropertyMap, dataPropertyStatements, datatypePropertyList, DIRECT, directVClasses, externalIds, imageInfo, mainImageUri, modTime, name, NOT_INITIALIZED, objectPropertyMap, objectPropertyStatements, populatedDataPropertyList, populatedObjectPropertyList, propertyList, rangeEnts2Ents, rdfsLabel, searchBoost, searchSnippet, sorted, vClass, vClassURI
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean
hiddenFromDisplayBelowRoleLevel, hiddenFromPublishBelowRoleLevel, localName, localNameWithPrefix, namespace, pickListName, prohibitedFromUpdateBelowRoleLevel, URI
-
-
Constructor Summary
Constructors Constructor Description IndividualJena(org.apache.jena.ontology.OntResource ind, WebappDaoFactoryJena wadf)
-
Method Summary
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.beans.IndividualImpl
compareTo, getDataPropertyStatement, getDataPropertyStatements, getDataValue, getDataValues, getMostSpecificTypeURIs, getSearchSnippet, hasThumb, setDataPropertyMap, setDataPropertyStatements, setDatatypePropertyList, setExternalIds, setMainImageUri, setModTime, setName, setObjectPropertyMap, setObjectPropertyStatements, setPopulatedDataPropertyList, setPopulatedObjectPropertyList, setPropertyList, setRdfsLabel, setSearchBoost, setSearchSnippet, setVClass, setVClasses, setVClassURI, sortForDisplay, sortPropertiesForDisplay, toJSON, toString
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean
equals, getHiddenFromDisplayBelowRoleLevel, getHiddenFromPublishBelowRoleLevel, getLocalName, getLocalNameWithPrefix, getNamespace, getPickListName, getProhibitedFromUpdateBelowRoleLevel, getURI, hashCode, isAnonymous, setHiddenFromDisplayBelowRoleLevel, setHiddenFromDisplayBelowRoleLevelUsingRoleUri, setHiddenFromPublishBelowRoleLevel, setHiddenFromPublishBelowRoleLevelUsingRoleUri, setLocalName, setLocalNameWithPrefix, setNamespace, setPickListName, setProhibitedFromUpdateBelowRoleLevel, setProhibitedFromUpdateBelowRoleLevelUsingRoleUri, setURI
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.beans.Individual
getDataPropertyStatement, getDataPropertyStatements, getDataValue, getDataValues, getMostSpecificTypeURIs, getSearchSnippet, hasThumb, setDataPropertyMap, setDataPropertyStatements, setDatatypePropertyList, setExternalIds, setMainImageUri, setModTime, setName, setObjectPropertyMap, setObjectPropertyStatements, setPopulatedDataPropertyList, setPopulatedObjectPropertyList, setPropertyList, setRdfsLabel, setSearchBoost, setSearchSnippet, setVClass, setVClasses, setVClassURI, sortForDisplay, toJSON
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.beans.ResourceBean
getHiddenFromDisplayBelowRoleLevel, getHiddenFromPublishBelowRoleLevel, getLocalName, getNamespace, getPickListName, getProhibitedFromUpdateBelowRoleLevel, getURI, isAnonymous, setHiddenFromDisplayBelowRoleLevel, setHiddenFromDisplayBelowRoleLevelUsingRoleUri, setHiddenFromPublishBelowRoleLevel, setHiddenFromPublishBelowRoleLevelUsingRoleUri, setLocalName, setNamespace, setProhibitedFromUpdateBelowRoleLevel, setProhibitedFromUpdateBelowRoleLevelUsingRoleUri, setURI
-
-
-
-
Constructor Detail
-
IndividualJena
public IndividualJena(org.apache.jena.ontology.OntResource ind, WebappDaoFactoryJena wadf)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceIndividual- Overrides:
getNamein classIndividualImpl
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceResourceBean- Overrides:
getLabelin classBaseResourceBean
-
getRdfsLabel
public String getRdfsLabel()
Description copied from interface:IndividualReturns an rdfs:label if there is one on the individual. Returns null if none can be found. If more than one rdfs:label can be found for the individual one of the labels will be returned, which one is undefined.- Specified by:
getRdfsLabelin interfaceIndividual- Overrides:
getRdfsLabelin classIndividualImpl
-
getVClassURI
public String getVClassURI()
- Specified by:
getVClassURIin interfaceIndividual- Overrides:
getVClassURIin classIndividualImpl
-
getVClass
public VClass getVClass()
- Specified by:
getVClassin interfaceIndividual- Overrides:
getVClassin classIndividualImpl
-
getModTime
public Timestamp getModTime()
Description copied from class:IndividualImplReturns the last time this object was changed in the model. Notice Java API craziness: Timestamp is a subclass of Date but there are notes in the Javadoc that you should not pretend that a Timestamp is a Date. (Crazy ya?) In particular, Timestamp.equals(Date) will never return true because of the 'nanos.'- Specified by:
getModTimein interfaceIndividual- Overrides:
getModTimein classIndividualImpl
-
getSearchBoost
public Float getSearchBoost()
- Specified by:
getSearchBoostin interfaceIndividual- Overrides:
getSearchBoostin classIndividualImpl
-
getMainImageUri
public String getMainImageUri()
- Specified by:
getMainImageUriin interfaceIndividual- Overrides:
getMainImageUriin classIndividualImpl
-
getImageUrl
public String getImageUrl()
- Specified by:
getImageUrlin interfaceIndividual- Overrides:
getImageUrlin classIndividualImpl
-
getThumbUrl
public String getThumbUrl()
- Specified by:
getThumbUrlin interfaceIndividual- Overrides:
getThumbUrlin classIndividualImpl
-
getObjectPropertyStatements
public List<ObjectPropertyStatement> getObjectPropertyStatements()
- Specified by:
getObjectPropertyStatementsin interfaceIndividual- Overrides:
getObjectPropertyStatementsin classIndividualImpl
-
getObjectPropertyStatements
public List<ObjectPropertyStatement> getObjectPropertyStatements(String propertyURI)
- Specified by:
getObjectPropertyStatementsin interfaceIndividual- Overrides:
getObjectPropertyStatementsin classIndividualImpl
-
getRelatedIndividuals
public List<Individual> getRelatedIndividuals(String propertyURI)
- Specified by:
getRelatedIndividualsin interfaceIndividual- Overrides:
getRelatedIndividualsin classIndividualImpl
-
getRelatedIndividual
public Individual getRelatedIndividual(String propertyURI)
- Specified by:
getRelatedIndividualin interfaceIndividual- Overrides:
getRelatedIndividualin classIndividualImpl
-
getObjectPropertyList
public List<ObjectProperty> getObjectPropertyList()
- Specified by:
getObjectPropertyListin interfaceIndividual- Overrides:
getObjectPropertyListin classIndividualImpl
-
getPopulatedObjectPropertyList
public List<ObjectProperty> getPopulatedObjectPropertyList()
Description copied from interface:IndividualReturns 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:
getPopulatedObjectPropertyListin interfaceIndividual- Overrides:
getPopulatedObjectPropertyListin classIndividualImpl
-
getObjectPropertyMap
public Map<String,ObjectProperty> getObjectPropertyMap()
- Specified by:
getObjectPropertyMapin interfaceIndividual- Overrides:
getObjectPropertyMapin classIndividualImpl
-
getDataPropertyStatements
public List<DataPropertyStatement> getDataPropertyStatements()
- Specified by:
getDataPropertyStatementsin interfaceIndividual- Overrides:
getDataPropertyStatementsin classIndividualImpl
-
getDataPropertyList
public List getDataPropertyList()
- Specified by:
getDataPropertyListin interfaceIndividual- Overrides:
getDataPropertyListin classIndividualImpl
-
getPopulatedDataPropertyList
public List<DataProperty> getPopulatedDataPropertyList()
- Specified by:
getPopulatedDataPropertyListin interfaceIndividual- Overrides:
getPopulatedDataPropertyListin classIndividualImpl
-
getDataPropertyMap
public Map<String,DataProperty> getDataPropertyMap()
- Specified by:
getDataPropertyMapin interfaceIndividual- Overrides:
getDataPropertyMapin classIndividualImpl
-
getExternalIds
public List<DataPropertyStatement> getExternalIds()
- Specified by:
getExternalIdsin interfaceIndividual- Overrides:
getExternalIdsin classIndividualImpl
-
getVClasses
public List<VClass> getVClasses()
- Specified by:
getVClassesin interfaceIndividual- Overrides:
getVClassesin classIndividualImpl
-
getVClasses
public List<VClass> getVClasses(boolean direct)
- Specified by:
getVClassesin interfaceIndividual- Overrides:
getVClassesin classIndividualImpl
-
isVClass
public boolean isVClass(String uri)
The base method inIndividualImplis adequate if the reasoner is up to date. If the base method returns false, check directly to see if any of the super classes of the direct classes will satisfy this request.- Specified by:
isVClassin interfaceIndividual- Overrides:
isVClassin classIndividualImpl
-
sortEnts2EntsForDisplay
protected void sortEnts2EntsForDisplay()
Overriding the base method so that we can do the sorting by arbitrary property here. An IndividualJena has a reference back to the model; everything else is just a dumb bean (for now).- Overrides:
sortEnts2EntsForDisplayin classIndividualImpl
-
resolveAsFauxPropertyStatements
public void resolveAsFauxPropertyStatements(List<ObjectPropertyStatement> list)
Description copied from interface:IndividualThis is crap. It was put in so IndividualFiltering could filter object properties properly, but what we really need is either: filters have a reference to a webappDaoFactory, or all ObjectPropertyStatements are resolved when they are created. See VIVO-946 and VIVO-984.- Specified by:
resolveAsFauxPropertyStatementsin interfaceIndividual- Overrides:
resolveAsFauxPropertyStatementsin classIndividualImpl- Parameters:
list- Object property statements
-
-