I don't clearly understand what happened but from what I see, 3 QCP engaged your miner.
[they are allowed to do so without notice, pirates do need to give the notice prior to destruction of the vessel, because they are pirating. So as far as they are concerned, they can demand your goods when you're down to half hull]
So you decided to dock and take another ship out and what? participate? The only lines // you should have done were [//i am the miner, can I leave please?] and they would let you go.
I do not understand this "pirating 10m from Java". Where are Java's defences? Did they really stood at Java waiting for miners, or did they hang around few clicks from Java, catching transports and then following them as they run towards safety of the station?
I do not understand why do you threaten with sanctions here where everyone can read it. It is an invitation for someone to be an ass and report you instead of explaining the rules to you.