Commit 1fc88ce3 by Madhan Neethiraj Committed by apoorvnaik

ATLAS-2648: Remove prefix '__' from AtlasGlossary type names

Change-Id: I3b5940c9936d718b5b6e3c5d08d3cbbd173f7a51 Signed-off-by: 's avatarapoorvnaik <apoorvnaik@apache.org>
parent 94d0c0ab
{
"enumDefs": [
{
"name": "__AtlasGlossaryTermRelationshipStatus",
"name": "AtlasGlossaryTermRelationshipStatus",
"description": "TermRelationshipStatus defines how reliable the relationship is between two glossary terms",
"typeVersion": "1.0",
"elementDefs": [
......@@ -33,7 +33,7 @@
]
},
{
"name": "__AtlasGlossaryTermAssignmentStatus",
"name": "AtlasGlossaryTermAssignmentStatus",
"description": "TermAssignmentStatus defines how much the semantic assignment should be trusted.",
"typeVersion": "1.0",
"elementDefs": [
......@@ -79,7 +79,7 @@
"classificationDefs": [],
"entityDefs": [
{
"name": "__AtlasGlossary",
"name": "AtlasGlossary",
"superTypes": [
"__internal"
],
......@@ -136,7 +136,7 @@
]
},
{
"name": "__AtlasGlossaryTerm",
"name": "AtlasGlossaryTerm",
"superTypes": [
"__internal"
],
......@@ -201,7 +201,7 @@
]
},
{
"name": "__AtlasGlossaryCategory",
"name": "AtlasGlossaryCategory",
"superTypes": [
"__internal"
],
......@@ -244,7 +244,7 @@
],
"relationshipDefs": [
{
"name": "__AtlasGlossarySemanticAssignment",
"name": "AtlasGlossarySemanticAssignment",
"description": "SemanticAssignment is a relationship used to assign a term to a referenceable object. This means that the term describes the meaning of the referenceable object. The semantic assignment needs to be a controlled relationship when glossary definitions are used to provide classifications for the data assets and hence define how the data is to be governed.",
"typeVersion": "1.0",
"attributeDefs": [
......@@ -271,7 +271,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"isOptional": true,
"cardinality": "SINGLE",
"valuesMinCount": 0,
......@@ -326,7 +326,7 @@
"relationshipCategory": "ASSOCIATION",
"propagateTags": "ONE_TO_TWO",
"endDef1": {
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"name": "assignedEntities",
"isContainer": false,
"cardinality": "SET"
......@@ -339,36 +339,36 @@
}
},
{
"name": "__AtlasGlossaryTermAnchor",
"name": "AtlasGlossaryTermAnchor",
"typeVersion": "1.0",
"description": "TermAnchor links each term to exactly one Glossary object. This means that this is its home glossary. If the Glossary object is deleted, then so are all of the terms linked to it.",
"endDef1": {
"name": "terms",
"type": "__AtlasGlossary",
"type": "AtlasGlossary",
"cardinality": "SET",
"isContainer": true
},
"endDef2": {
"name": "anchor",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SINGLE"
},
"relationshipCategory": "COMPOSITION",
"propagateTags": "NONE"
},
{
"name": "__AtlasGlossaryTermCategorization",
"name": "AtlasGlossaryTermCategorization",
"typeVersion": "1.0",
"description": "TermCategorization is a relationship used to organize terms into categories. A term may be linked with many categories and a category may have many terms linked to it. This relationship may connect terms and categories both in the same glossary or in different glossaries.",
"endDef1": {
"name": "terms",
"type": "__AtlasGlossaryCategory",
"type": "AtlasGlossaryCategory",
"cardinality": "SET",
"isContainer": true
},
"endDef2": {
"name": "categories",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "AGGREGATION",
......@@ -384,7 +384,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true,
......@@ -393,53 +393,53 @@
]
},
{
"name": "__AtlasGlossaryCategoryAnchor",
"name": "AtlasGlossaryCategoryAnchor",
"typeVersion": "1.0",
"description": "CategoryAnchor links each category to exactly one Glossary object. This means that this is its home glossary. If the Glossary object is deleted then so are all of the categories linked to it.",
"endDef1": {
"name": "categories",
"type": "__AtlasGlossary",
"type": "AtlasGlossary",
"cardinality": "SET",
"isContainer": true
},
"endDef2": {
"name": "anchor",
"type": "__AtlasGlossaryCategory",
"type": "AtlasGlossaryCategory",
"cardinality": "SINGLE"
},
"relationshipCategory": "COMPOSITION",
"propagateTags": "NONE"
},
{
"name": "__AtlasGlossaryCategoryHierarchyLink",
"name": "AtlasGlossaryCategoryHierarchyLink",
"typeVersion": "1.0",
"description": "CategoryHierarchyLink is a relationship used to organize categories into a hierarchy to, for example, create a structure for a taxonomy. A category may have none or one super-categories. This super-category may be in a different glossary.",
"endDef1": {
"name": "childrenCategories",
"type": "__AtlasGlossaryCategory",
"type": "AtlasGlossaryCategory",
"cardinality": "SET",
"isContainer": true
},
"endDef2": {
"name": "parentCategory",
"type": "__AtlasGlossaryCategory",
"type": "AtlasGlossaryCategory",
"cardinality": "SINGLE"
},
"relationshipCategory": "AGGREGATION",
"propagateTags": "NONE"
},
{
"name": "__AtlasGlossaryRelatedTerm",
"name": "AtlasGlossaryRelatedTerm",
"typeVersion": "1.0",
"description": "RelatedTerm is a relationship used to say that the linked glossary term may also be of interest. It is like a 'see also' link in a dictionary.",
"endDef1": {
"name": "seeAlso",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "seeAlso",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -462,7 +462,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......@@ -485,17 +485,17 @@
]
},
{
"name": "__AtlasGlossarySynonym",
"name": "AtlasGlossarySynonym",
"typeVersion": "1.0",
"description": "Synonym is a relationship between glossary terms that have the same, or a very similar meaning in the same language. Notice that both ends of this relationship have the same name and refer to the same type; this results in one Synonym attribute being added to GlossaryTerm.",
"endDef1": {
"name": "synonyms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "synonyms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -518,7 +518,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......@@ -541,17 +541,17 @@
]
},
{
"name": "__AtlasGlossaryAntonym",
"name": "AtlasGlossaryAntonym",
"typeVersion": "1.0",
"description": "Antonym is a relationship between glossary terms that have the opposite (or near opposite) meaning, in the same language. Notice that both ends of this relationship have the same name and refer to the same type; this results in one Antonym attribute being added to GlossaryTerm.",
"endDef1": {
"name": "antonyms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "antonyms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -574,7 +574,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......@@ -597,17 +597,17 @@
]
},
{
"name": "__AtlasGlossaryPreferredTerm",
"name": "AtlasGlossaryPreferredTerm",
"typeVersion": "1.0",
"description": "PreferredTerm is a relationship that indicates that the preferredTerm should be used in place of the preferredToTerm. This relationship can be used to encourage adoption of newer vocabularies. This is a weaker version of ReplacementTerm.",
"endDef1": {
"name": "preferredTerms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "preferredToTerms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -630,7 +630,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......@@ -653,17 +653,17 @@
]
},
{
"name": "__AtlasGlossaryReplacementTerm",
"name": "AtlasGlossaryReplacementTerm",
"typeVersion": "1.0",
"description": "ReplacementTerm is a relationship that indicates that the replacementTerm must be used instead of the replacedByTerm. This is stronger version of the PreferredTerm.",
"endDef1": {
"name": "replacedBy",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "replacementTerms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -686,7 +686,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......@@ -709,17 +709,17 @@
]
},
{
"name": "__AtlasGlossaryTranslation",
"name": "AtlasGlossaryTranslation",
"typeVersion": "1.0",
"description": "Translation is a relationship that defines that the related terms represent the same meaning, but each are written in a different language. Hence one is a translation of the other. The language of each term is defined in the Glossary object that anchors the term.",
"endDef1": {
"name": "translatedTerms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "translationTerms",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -742,7 +742,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......@@ -765,17 +765,17 @@
]
},
{
"name": "__AtlasGlossaryIsARelationship",
"name": "AtlasGlossaryIsARelationship",
"typeVersion": "1.0",
"description": "IsA is a relationship that defines that the 'isA' term is a more generic term than the 'isOf' term. For example, this relationship would be use to say that 'Cat' ISA 'Animal'.",
"endDef1": {
"name": "classifies",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "isA",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -798,7 +798,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......@@ -821,17 +821,17 @@
]
},
{
"name": "__AtlasGlossaryValidValue",
"name": "AtlasGlossaryValidValue",
"typeVersion": "1.0",
"description": "ValidValue is a relationship that shows the validValue term represents one of the valid values that could be assigned to a data item that has the meaning described in the validValueFor term.",
"endDef1": {
"name": "validValuesFor",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"endDef2": {
"name": "validValues",
"type": "__AtlasGlossaryTerm",
"type": "AtlasGlossaryTerm",
"cardinality": "SET"
},
"relationshipCategory": "ASSOCIATION",
......@@ -854,7 +854,7 @@
},
{
"name": "status",
"typeName": "__AtlasGlossaryTermRelationshipStatus",
"typeName": "AtlasGlossaryTermRelationshipStatus",
"cardinality": "SINGLE",
"isIndexable": true,
"isOptional": true
......
......@@ -125,7 +125,7 @@ public final class Constants {
public static final String CLASSIFICATION_EDGE_IS_PROPAGATED_PROPERTY_KEY = INTERNAL_PROPERTY_KEY_PREFIX + "isPropagated";
public static final String CLASSIFICATION_EDGE_STATE_PROPERTY_KEY = STATE_PROPERTY_KEY;
public static final String CLASSIFICATION_LABEL = "classifiedAs";
public static final String TERM_ASSIGNMENT_LABEL = "r:__AtlasGlossarySemanticAssignment";
public static final String TERM_ASSIGNMENT_LABEL = "r:AtlasGlossarySemanticAssignment";
public static final String VERTEX_ID_IN_IMPORT_KEY = "__vIdInImport";
public static final String EDGE_ID_IN_IMPORT_KEY = "__eIdInImport";
......
......@@ -126,7 +126,7 @@ define(['require',
this.entityObject = this.collection.first().toJSON();
var collectionJSON = this.entityObject.entity;
if (collectionJSON && collectionJSON.typeName.startsWith("__AtlasGlossary")) {
if (collectionJSON && collectionJSON.typeName.startsWith("AtlasGlossary")) {
this.$(".termBox").hide();
}
// MergerRefEntity.
......
......@@ -485,7 +485,7 @@ define(['require',
data: function(params) {
return {
attrValuePrefix: params.term, // search term
typeName: "__AtlasGlossaryTerm",
typeName: "AtlasGlossaryTerm",
limit: 10,
offset: 0
};
......
......@@ -851,7 +851,7 @@ define(['require',
formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
fromRaw: function(rawValue, model) {
var obj = model.toJSON();
if (!(obj.typeName.startsWith("__AtlasGlossary"))) {
if (!(obj.typeName.startsWith("AtlasGlossary"))) {
if (obj.status && Enums.entityStateReadOnly[obj.status]) {
return '<div class="readOnly">' + CommonViewFunction.termForTable(obj); + '</div>';
} else {
......
......@@ -437,19 +437,19 @@ public class AtlasGlossaryTerm extends AtlasGlossaryBaseObject {
}
public enum Relation {
SEE_ALSO("__AtlasGlossaryRelatedTerm", "seeAlso"),
SYNONYMS("__AtlasGlossarySynonym", "synonyms"),
ANTONYMS("__AtlasGlossaryAntonym", "antonyms"),
PREFERRED_TERMS("__AtlasGlossaryPreferredTerm", "preferredTerms"),
PREFERRED_TO_TERMS("__AtlasGlossaryPreferredTerm", "preferredToTerms"),
REPLACEMENT_TERMS("__AtlasGlossaryReplacementTerm", "replacementTerms"),
REPLACED_BY("__AtlasGlossaryReplacementTerm", "replacedBy"),
TRANSLATION_TERMS("__AtlasGlossaryTranslation", "translationTerms"),
TRANSLATED_TERMS("__AtlasGlossaryTranslation", "translatedTerms"),
ISA("__AtlasGlossaryIsARelationship", "isA"),
CLASSIFIES("__AtlasGlossaryIsARelationship", "classifies"),
VALID_VALUES("__AtlasGlossaryValidValue", "validValues"),
VALID_VALUES_FOR("__AtlasGlossaryValidValue", "validValuesFor"),
SEE_ALSO("AtlasGlossaryRelatedTerm", "seeAlso"),
SYNONYMS("AtlasGlossarySynonym", "synonyms"),
ANTONYMS("AtlasGlossaryAntonym", "antonyms"),
PREFERRED_TERMS("AtlasGlossaryPreferredTerm", "preferredTerms"),
PREFERRED_TO_TERMS("AtlasGlossaryPreferredTerm", "preferredToTerms"),
REPLACEMENT_TERMS("AtlasGlossaryReplacementTerm", "replacementTerms"),
REPLACED_BY("AtlasGlossaryReplacementTerm", "replacedBy"),
TRANSLATION_TERMS("AtlasGlossaryTranslation", "translationTerms"),
TRANSLATED_TERMS("AtlasGlossaryTranslation", "translatedTerms"),
ISA("AtlasGlossaryIsARelationship", "isA"),
CLASSIFIES("AtlasGlossaryIsARelationship", "classifies"),
VALID_VALUES("AtlasGlossaryValidValue", "validValues"),
VALID_VALUES_FOR("AtlasGlossaryValidValue", "validValuesFor"),
;
private String relationName;
......
......@@ -33,7 +33,7 @@ public class TermSearchProcessor extends SearchProcessor {
private static final Logger LOG = LoggerFactory.getLogger(TermSearchProcessor.class);
private static final Logger PERF_LOG = AtlasPerfTracer.getPerfLogger("TermSearchProcessor");
public static final String ATLAS_GLOSSARY_TERM_ENTITY_TYPE = "__AtlasGlossaryTerm";
public static final String ATLAS_GLOSSARY_TERM_ENTITY_TYPE = "AtlasGlossaryTerm";
public static final String ATLAS_GLOSSARY_TERM_ATTR_QNAME = "qualifiedName";
public static final String ATLAS_GLOSSARY_TERM_ATTR_ASSIGNED_ENTITIES = "assignedEntities";
......
......@@ -36,9 +36,9 @@ public abstract class GlossaryUtils {
public static final String TERM_ASSIGNMENT_ATTR_STEWARD = "steward";
public static final String TERM_ASSIGNMENT_ATTR_SOURCE = "source";
static final String ATLAS_GLOSSARY_TYPENAME = "__AtlasGlossary";
static final String ATLAS_GLOSSARY_TERM_TYPENAME = "__AtlasGlossaryTerm";
static final String ATLAS_GLOSSARY_CATEGORY_TYPENAME = "__AtlasGlossaryCategory";
static final String ATLAS_GLOSSARY_TYPENAME = "AtlasGlossary";
static final String ATLAS_GLOSSARY_TERM_TYPENAME = "AtlasGlossaryTerm";
static final String ATLAS_GLOSSARY_CATEGORY_TYPENAME = "AtlasGlossaryCategory";
// Relation name constants
protected static final String ATLAS_GLOSSARY_PREFIX = ATLAS_GLOSSARY_TYPENAME;
......
......@@ -27,24 +27,18 @@ import org.apache.commons.lang3.StringUtils;
public abstract class AbstractDataTransferObject<T extends AtlasBaseModelObject> implements DataTransferObject<T> {
private static final String DEFAULT_PREFIX = "Atlas";
private final AtlasTypeRegistry typeRegistry;
private final Class<T> objectType;
private final String entityTypeName;
private final String alternateEntityTypeName;
protected AbstractDataTransferObject(AtlasTypeRegistry typeRegistry, Class<T> tClass, boolean isInternal) {
protected AbstractDataTransferObject(AtlasTypeRegistry typeRegistry, Class<T> tClass) {
this(typeRegistry, tClass, tClass.getSimpleName());
}
protected AbstractDataTransferObject(AtlasTypeRegistry typeRegistry, Class<T> tClass, String entityTypeName) {
this.typeRegistry = typeRegistry;
this.objectType = tClass;
if (isInternal) {
this.entityTypeName = Constants.INTERNAL_PROPERTY_KEY_PREFIX + objectType.getSimpleName();
this.alternateEntityTypeName = null;
} else {
this.entityTypeName = objectType.getSimpleName();
this.alternateEntityTypeName = entityTypeName.startsWith(DEFAULT_PREFIX) ? entityTypeName.substring(DEFAULT_PREFIX.length()) : null;
}
this.entityTypeName = entityTypeName;
}
@Override
......@@ -55,9 +49,7 @@ public abstract class AbstractDataTransferObject<T extends AtlasBaseModelObject>
@Override
public AtlasEntityType getEntityType() {
AtlasEntityType ret = typeRegistry.getEntityTypeByName(entityTypeName);
if (ret == null) {
ret = typeRegistry.getEntityTypeByName(alternateEntityTypeName);
}
return ret;
}
......
......@@ -33,8 +33,12 @@ import java.util.HashSet;
import java.util.Set;
public abstract class AbstractGlossaryDTO<T extends AtlasBaseModelObject> extends AbstractDataTransferObject<T> {
protected AbstractGlossaryDTO(final AtlasTypeRegistry typeRegistry, final Class<T> tClass, final boolean isInternal) {
super(typeRegistry, tClass, isInternal);
protected AbstractGlossaryDTO(final AtlasTypeRegistry typeRegistry, final Class<T> tClass) {
super(typeRegistry, tClass);
}
protected AbstractGlossaryDTO(final AtlasTypeRegistry typeRegistry, final Class<T> tClass, final String entityTypeName) {
super(typeRegistry, tClass, entityTypeName);
}
protected AtlasRelatedTermHeader constructRelatedTermId(AtlasRelatedObjectId relatedObjectId) {
......
......@@ -39,7 +39,7 @@ public class AtlasGlossaryCategoryDTO extends AbstractGlossaryDTO<AtlasGlossaryC
@Inject
protected AtlasGlossaryCategoryDTO(final AtlasTypeRegistry typeRegistry) {
super(typeRegistry, AtlasGlossaryCategory.class, true);
super(typeRegistry, AtlasGlossaryCategory.class);
}
@Override
......
......@@ -38,7 +38,7 @@ public class AtlasGlossaryDTO extends AbstractGlossaryDTO<AtlasGlossary> {
@Inject
public AtlasGlossaryDTO(AtlasTypeRegistry typeRegistry) {
super(typeRegistry, AtlasGlossary.class, true);
super(typeRegistry, AtlasGlossary.class);
}
@Override
......
......@@ -40,7 +40,7 @@ public class AtlasGlossaryTermDTO extends AbstractGlossaryDTO<AtlasGlossaryTerm>
@Inject
protected AtlasGlossaryTermDTO(final AtlasTypeRegistry typeRegistry) {
super(typeRegistry, AtlasGlossaryTerm.class, true);
super(typeRegistry, AtlasGlossaryTerm.class);
}
@Override
......
......@@ -44,7 +44,7 @@ public class AtlasSavedSearchDTO extends AbstractDataTransferObject<AtlasUserSav
@Inject
public AtlasSavedSearchDTO(AtlasTypeRegistry typeRegistry) {
super(typeRegistry, AtlasUserSavedSearch.class, true);
super(typeRegistry, AtlasUserSavedSearch.class, "__AtlasUserSavedSearch");
}
@Override
......
......@@ -40,7 +40,7 @@ public class AtlasUserProfileDTO extends AbstractDataTransferObject<AtlasUserPro
@Inject
public AtlasUserProfileDTO(AtlasTypeRegistry typeRegistry, AtlasSavedSearchDTO savedSearchDTO) {
super(typeRegistry, AtlasUserProfile.class, true);
super(typeRegistry, AtlasUserProfile.class, "__AtlasUserProfile");
this.savedSearchDTO = savedSearchDTO;
}
......
......@@ -120,8 +120,8 @@ import static org.apache.atlas.type.AtlasStructType.AtlasAttribute.AtlasRelation
public final class EntityGraphRetriever {
private static final Logger LOG = LoggerFactory.getLogger(EntityGraphRetriever.class);
private static final String TERM_RELATION_NAME = "__AtlasGlossarySemanticAssignment";
private static final String GLOSSARY_TERM_DISPLAY_NAME_ATTR = "__AtlasGlossaryTerm.displayName";
private static final String TERM_RELATION_NAME = "AtlasGlossarySemanticAssignment";
private static final String GLOSSARY_TERM_DISPLAY_NAME_ATTR = "AtlasGlossaryTerm.displayName";
private final String NAME = "name";
private final String DISPLAY_NAME = "displayName";
......
......@@ -246,10 +246,10 @@ public class ImportServiceTest {
loadGlossary();
runImportWithNoParameters(importService, zipSource);
assertEntityCount("__AtlasGlossary", "40c80052-3129-4f7c-8f2f-391677935416", 1);
assertEntityCount("__AtlasGlossaryTerm", "e93ac426-de04-4d54-a7c9-d76c1e96369b", 1);
assertEntityCount("__AtlasGlossaryTerm", "93ad3bf6-23dc-4e3f-b70e-f8fad6438203", 1);
assertEntityCount("__AtlasGlossaryTerm", "105533b6-c125-4a87-bed5-cdf67fb68c39", 1);
assertEntityCount("AtlasGlossary", "40c80052-3129-4f7c-8f2f-391677935416", 1);
assertEntityCount("AtlasGlossaryTerm", "e93ac426-de04-4d54-a7c9-d76c1e96369b", 1);
assertEntityCount("AtlasGlossaryTerm", "93ad3bf6-23dc-4e3f-b70e-f8fad6438203", 1);
assertEntityCount("AtlasGlossaryTerm", "105533b6-c125-4a87-bed5-cdf67fb68c39", 1);
}
private List<AtlasEntityHeader> getImportedEntities(String query, String guid) throws AtlasBaseException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment