/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.jena.riot.resultset;

import org.apache.jena.riot.Lang ;
import org.apache.jena.riot.LangBuilder ;
import org.apache.jena.riot.RDFLanguages ;
import org.apache.jena.riot.WebContent ;

public class ResultSetLang {
    // Add SSE!
    public static final Lang SPARQLResultSetXML
        = LangBuilder.create("SPARQL-Results-XML", WebContent.contentTypeResultsXML)
                     .addAltNames("SRX")
                     .addFileExtensions("srx")
                     .build() ;
    
    public static final Lang SPARQLResultSetJSON
        = LangBuilder.create("SPARQL-Results-JSON", WebContent.contentTypeResultsJSON)
                     .addAltNames("SRJ")
                     .addFileExtensions("srj")
                     .build() ;
    
    public static final Lang SPARQLResultSetCSV = Lang.CSV;
    
//    public static final Lang SPARQLResultSetCSV 
//        = LangBuilder.create("SPARQL-Results-CSV", contentTypeTextCSV)
//                     .addAltNames("CSV")   
//                     .addFileExtensions("csv")
//                     .build() ;
    
    public static final Lang SPARQLResultSetTSV
        = LangBuilder.create("SPARQL-Results-TSV", WebContent.contentTypeTextTSV)
                     .addAltNames("TSV")
                     .addFileExtensions("tsv")
                     .build() ;
    
    public static final Lang SPARQLResultSetThrift
        = LangBuilder.create("SPARQL-Results-Thrift", WebContent.contentTypeResultsThrift)
                     .addAltNames("SRT")
                     .addFileExtensions("srt")
                     .build() ;
    
    public static final Lang SPARQLResultSetText
        = LangBuilder.create("SPARQL-Results-Text", WebContent.contentTypeTextPlain)
                     .addFileExtensions("txt")
                     .build() ;

    private static boolean initialized = false ;
    public static void init() {
        if ( initialized )
            return ;
        initialized = true ;
        RDFLanguages.register(SPARQLResultSetXML) ;
        RDFLanguages.register(SPARQLResultSetJSON) ;
        RDFLanguages.register(SPARQLResultSetCSV) ;
        RDFLanguages.register(SPARQLResultSetTSV) ;
        RDFLanguages.register(SPARQLResultSetThrift) ;
        ResultSetReaderRegistry.init();
        ResultSetWriterRegistry.init();
    }    
}

@@ -1629,26 +1629,24 @@
 g.CSV;%0A    %0A
-//
     public s
@@ -1681,468 +1681,22 @@
 tSet
-CSV %0A//        = LangBuilder.create(%22SPARQL-Results-CSV%22, contentTypeTextCSV)%0A//                     .addAltNames(%22CSV%22)   %0A//                     .addFileExtensions(%22csv%22)%0A//                     .build() ;%0A    %0A    public static final Lang SPARQLResultSetTSV%0A        = LangBuilder.create(%22SPARQL-Results-TSV%22, WebContent.contentTypeTextTSV)%0A                     .addAltNames(%22TSV%22)%0A                     .addFileExtensions(%22tsv%22)%0A                     .build() 
+TSV = Lang.TSV
 ;%0A  

Use Lang.TSV.