Class TagRepository
- java.lang.Object
-
- org.molgenis.semanticsearch.repository.TagRepository
-
public class TagRepository extends Object
Helper class around theTagMetadatarepository. Internal implementation class, useMetaDataServiceinstead.
-
-
Constructor Summary
Constructors Constructor Description TagRepository(org.molgenis.data.DataService dataService, org.molgenis.data.populate.IdGenerator idGenerator, org.molgenis.data.meta.model.TagFactory tagFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.molgenis.data.meta.model.TaggetTagEntity(String objectIRI, String label, org.molgenis.data.semantic.Relation relation, String codeSystemIRI)Fetches a tag from the repository.
-
-
-
Method Detail
-
getTagEntity
public org.molgenis.data.meta.model.Tag getTagEntity(String objectIRI, String label, org.molgenis.data.semantic.Relation relation, String codeSystemIRI)
Fetches a tag from the repository. Creates a new one if it does not yet exist.- Parameters:
objectIRI- IRI of the objectlabel- label of the objectrelation-Relationof the tagcodeSystemIRI- the IRI of the code system of the tag- Returns:
Tagof typeTagMetadata
-
-