public class OntologyTagServiceImpl extends Object implements OntologyTagService
| Constructor and Description |
|---|
OntologyTagServiceImpl(DataService dataService,
OntologyService ontologyService,
TagRepository tagRepository,
IdGenerator idGenerator) |
public OntologyTagServiceImpl(DataService dataService, OntologyService ontologyService, TagRepository tagRepository, IdGenerator idGenerator)
public void removeAttributeTag(String entity, String attribute, String relationIRI, String ontologyTermIRI)
removeAttributeTag in interface OntologyTagServicepublic void removeAttributeTag(EntityMetaData entityMetaData, Tag<AttributeMetaData,OntologyTerm,Ontology> removeTag)
TagServiceremoveAttributeTag in interface TagService<OntologyTerm,Ontology>entityMetaData - the entity the tagged attribute sits onremoveTag - the tag to removepublic com.google.common.collect.Multimap<Relation,OntologyTerm> getTagsForAttribute(EntityMetaData entityMetaData, AttributeMetaData attributeMetaData)
TagServicegetTagsForAttribute in interface TagService<OntologyTerm,Ontology>public Iterable<Tag<Package,OntologyTerm,Ontology>> getTagsForPackage(Package p)
TagServicegetTagsForPackage in interface TagService<OntologyTerm,Ontology>public void addAttributeTag(EntityMetaData entityMetaData, Tag<AttributeMetaData,OntologyTerm,Ontology> tag)
TagServiceaddAttributeTag in interface TagService<OntologyTerm,Ontology>entityMetaData - the entity the tagged attribute sits ontag - the tag to addpublic OntologyTag addAttributeTag(String entity, String attribute, String relationIRI, List<String> ontologyTermIRIs)
addAttributeTag in interface OntologyTagServicepublic Entity getTagEntity(Tag<?,OntologyTerm,Ontology> tag)
public void removeAllTagsFromEntity(String entityName)
TagServiceremoveAllTagsFromEntity in interface TagService<OntologyTerm,Ontology>entityName - the name of the entity for which all tags should be removedpublic Map<String,OntologyTag> tagAttributesInEntity(String entity, Map<AttributeMetaData,OntologyTerm> tags)
tagAttributesInEntity in interface OntologyTagServicepublic void addEntityTag(Tag<EntityMetaData,OntologyTerm,Ontology> tag)
TagServiceaddEntityTag in interface TagService<OntologyTerm,Ontology>tag - the tag to addpublic void removeEntityTag(Tag<EntityMetaData,OntologyTerm,Ontology> tag)
TagServiceremoveEntityTag in interface TagService<OntologyTerm,Ontology>tag - the tag to removepublic Iterable<Tag<EntityMetaData,LabeledResource,LabeledResource>> getTagsForEntity(EntityMetaData entityMetaData)
TagServicegetTagsForEntity in interface TagService<OntologyTerm,Ontology>Copyright © 2016. All Rights Reserved.