Example
com.ontotext.kim.client.entity
Interface EntityDescription
- All Superinterfaces:
- LabelsDescription, RDFHolder
- All Known Implementing Classes:
- EntityDescriptionImpl
public interface EntityDescription
- extends LabelsDescription, RDFHolder
Representation of all data and relations, surrounding an entity
- Author:
- mnozchev
Method Summary | |
---|---|
Collection<org.openrdf.model.Literal> |
getAttributes(org.openrdf.model.URI attributeURI)
Returns all attributes of some type |
Collection<org.openrdf.model.URI> |
getAttributeTypes()
Returns all attribute types |
Object |
getContext(org.openrdf.model.URI contextURI)
Returns all prefetch entity descriptions related to this one. |
Collection<org.openrdf.model.URI> |
getContextTypes()
Returns all prefetch relation types |
Collection<EntityDescription> |
getPrefetchedRelations(org.openrdf.model.URI relationURI)
Returns all prefetch entity descriptions related to this one. |
Collection<org.openrdf.model.URI> |
getPrefetchedRelationTypes()
Returns all prefetch relation types |
Collection<org.openrdf.model.Resource> |
getRelations(org.openrdf.model.URI relationURI)
Returns all Entities that this Entity is in some relation with |
Collection<org.openrdf.model.URI> |
getRelationTypes()
Returns all relation types |
boolean |
isEmpty()
Whether this entity description has no attributes, relations or contexts |
Methods inherited from interface com.ontotext.kim.client.entity.LabelsDescription |
---|
getLabels, getMainLabel, getResource |
Methods inherited from interface com.ontotext.kim.client.RDFHolder |
---|
toRDF |
Method Detail |
---|
getAttributeTypes
Collection<org.openrdf.model.URI> getAttributeTypes()
- Returns all attribute types
getAttributes
Collection<org.openrdf.model.Literal> getAttributes(org.openrdf.model.URI attributeURI)
- Returns all attributes of some type
- Parameters:
attributeType
- given attribute type
getRelationTypes
Collection<org.openrdf.model.URI> getRelationTypes()
- Returns all relation types
getRelations
Collection<org.openrdf.model.Resource> getRelations(org.openrdf.model.URI relationURI)
- Returns all Entities that this Entity is in some relation with
- Parameters:
relationType
- given relation type
getPrefetchedRelationTypes
Collection<org.openrdf.model.URI> getPrefetchedRelationTypes()
- Returns all prefetch relation types
getPrefetchedRelations
Collection<EntityDescription> getPrefetchedRelations(org.openrdf.model.URI relationURI)
- Returns all prefetch entity descriptions related to this one.
getContextTypes
Collection<org.openrdf.model.URI> getContextTypes()
- Returns all prefetch relation types
getContext
Object getContext(org.openrdf.model.URI contextURI)
- Returns all prefetch entity descriptions related to this one.
isEmpty
boolean isEmpty()
- Whether this entity description has no attributes, relations or contexts
Empty restrictions are returned by
EntityAPI.getEntityDescription(Resource)
if the given resource is not found in the semantic repository- Returns:
- whether this entity description has no attributes, relations or contexts
Labels:
None