# Commutation relations: Identify algebra of group or (semi-)direct product of groups

What is a good reference or how can one check to given a set of possible structure constants? In particular for algebras for three generators. How does one know of given the structure constants, these correspond either to

1. An algebra: here I know that verifying the jacobi identity is a crucial to be a valid algebra. But if so, does someone know a good reference where I can read off what algebra these then correspond to?

2. What about a the algebra of a semi-direct product of groups? I know that for a direct product of groups, at the level of the algebra, the structure constant should show that their is a separation into two sets of generators, that do not mix under the commutator. But for a semi-direct product:

1. Do the structure constant still need to satisfy the Jacobi identity?
2. Do the generators also separate into two mutually disjoint sets, as it does for the direct sum of algebras?

e.g. given the structure constants $$f_{312}=-1 \quad \text{and}\quad f_{121}=1\,,$$ does not satisfy the Jacobi identity and cannot be a direct sum of algebra but does or does not correspond to the algebra of a semi-direct product of groups?

As you might remark, this question shows my lack of knowledge about the algebra of semi-direct products. Consequently, a good reference (preferably physics-oriented) about this would be more than welcome!