In Ntriple and NQuad with Hadoop and Cascading
If you don't have hadoop and cascading you can type
sort k-1 filename.nt
RDFPropStat, an class based on cascading calculates the distinct subject, object and triples of each properties
Analyzes the structure of dataset by its coherence value
Coverting RDF to graph input for Metis