Skip to content

Commit f696339

Browse files
feat: add Unit and Occupation to entity category dropdown
1 parent 9f28155 commit f696339

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

shacl-demo/js/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const CONFIG = {
2323
literal: 10
2424
}
2525
},
26-
ENTITY_CATEGORIES: ["Person_Entity", "Organization_Entity", "Geopolitical_Entity", "Product_Entity"],
26+
ENTITY_CATEGORIES: ["Person_Entity", "Organization_Entity", "Geopolitical_Entity", "Product_Entity", "Unit_Entity", "Occupation_Entity"],
2727
SUGGEST_DEBOUNCE_MS: 150,
2828
SUGGEST_MIN_CHARS: 2,
2929
SUGGEST_MAX_RESULTS: 10
@@ -709,6 +709,8 @@ function formatCategoryLabel(category) {
709709
case 'Organization_Entity': return 'Organization';
710710
case 'Person_Entity': return 'Person';
711711
case 'Product_Entity': return 'Product';
712+
case 'Unit_Entity': return 'Unit';
713+
case 'Occupation_Entity': return 'Occupation';
712714
default: return category.replace(/_Entity$/, '');
713715
}
714716
}

0 commit comments

Comments
 (0)