A man indicted for allegedly making violent threats on a social networking site toward his estranged wife, law enforcement officers, his former co-workers and to an unspecified kindergarten class was not committing a crime because his words were more like the lyrics of an artist who raps an intent to commit violent acts, his defense attorney argued in federal court Monday.

Anthony D. Elonis has been indicted for allegedly making threats in October and November 2010 to the employees and patrons of Dorney Park and Wildwater Kingdom, his estranged wife, the Pennsylvania State Police and the Berks County Sheriff’s Department, a Federal Bureau of Investigation agent and a kindergarten class of elementary schoolchildren, according to court papers.