Structural Imsets: Fundamentals