Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-1355

DataFileProvider should provide location of data files to OSGi components.

    XMLWordPrintableJSON

Details

    Description

      Currently the DataFileProvider only supports requests for resources. If a specific resource is available the caller gets an InputStream for that Resource. Otherwise a IOException is thrown.

      Here the proposal is to add :

      DataFileProvider (interface)
      URL getInputStream(
                  String bundleSymbolicName,
                  String filename,
                  Map<String,String> comments) throws IOException;
      

      Service that allows to return the location of data files to OSGi components.
      eg. stanbol/datafile/path/to/file or jar:file:/home/.m2/repository/jarfile.jar!/path/to/file

      Intended Usage:
      Jira issue stanbol-1007 uses CMU Sphinx api. Sphinx needs the URL to load the model files. No such api has been provided yet by Sphinx to load the model as Stream.

      Attachments

        Activity

          People

            rafaharo Rafa Haro
            perfectus Suman Saurabh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 504h
                504h
                Remaining:
                Remaining Estimate - 504h
                504h
                Logged:
                Time Spent - Not Specified
                Not Specified