@@ -0,0 +1,1932 @@
+/**%0A * Copyright (c) 2016, German Neuroinformatics Node (G-Node)%0A *%0A * All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted under the terms of the BSD License. See%0A * LICENSE file in the root of the Project.%0A */%0A%0Apackage org.g_node.srv;%0A%0Aimport java.util.Set;%0Aimport org.g_node.micro.rdf.RdfFileServiceJena;%0Aimport org.g_node.reporter.LKTLogbook.LktReporterJena;%0A%0A/**%0A * Class used as a switch between different RDF APIs.%0A *%0A * @author Michael Sonntag (sonntag@bio.lmu.de)%0A */%0Apublic final class RdfServiceSwitch %7B%0A    /**%0A     * Switch to the query result file formats that are supported by the currently used RDF API.%0A     */%0A    public static final Set%3CString%3E QUERY_RESULT_FILE_FORMATS = RdfFileServiceJena.QUERY_RESULT_FILE_FORMATS.keySet();%0A%0A    /**%0A     * Switch to the method that checks, if the provided file is a valid RDF file. This check is%0A     * dependent on the used RDF API.%0A     * @param uri Uri of the file that is to be checked if its a valid RDF file.%0A     * @return True if the file is a valid RDF file, false otherwise.%0A     */%0A    public static boolean isValidRdfFile(final String uri) %7B%0A        return RdfFileServiceJena.isValidRdfFile(uri);%0A    %7D%0A%0A    /**%0A     * Switch to the method querying an RDF input file and writing%0A     * the results to an output file of a specified format.%0A     * @param inFile RDF file that is to be queried.%0A     * @param queryString SPARQL query string used to create a report from the inFile.%0A     * @param outputFile File where the results of the query are supposed to be saved to.%0A     * @param outputFormat Format of the output file.%0A     */%0A    public static void runReport(final String inFile, final String queryString,%0A                                   final String outputFile, final String outputFormat) %7B%0A        LktReporterJena.runReport(inFile, queryString, outputFile, outputFormat);%0A    %7D%0A%0A%7D%0A

Add class