You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <de...@uima.apache.org> on 2010/12/17 16:35:03 UTC

[jira] Created: (UIMA-1969) Add support for external resources hosted on an http server

Add support for external resources hosted on an http server
-----------------------------------------------------------

                 Key: UIMA-1969
                 URL: https://issues.apache.org/jira/browse/UIMA-1969
             Project: UIMA
          Issue Type: New Feature
          Components: Core Java Framework
    Affects Versions: 2.3.1SDK
            Reporter: Jörn Kottmann


Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
for many use cases in which the resources are almost static and rarely change. In our scenario the resources
are updated frequently and hosted on a central server. The server could expose a file system over the network
via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.

In order to do that the resource loading must be extended to also support resource which are available via
http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
According to the documentation it uses URL.openStream and forbids http URLs which would be supported
by that method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1969) Add support for external resources hosted on an http server

Posted by "Tommaso Teofili (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972540#action_12972540 ] 

Tommaso Teofili commented on UIMA-1969:
---------------------------------------

I agree that this would be a valuable addition

> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
>                 Key: UIMA-1969
>                 URL: https://issues.apache.org/jira/browse/UIMA-1969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3.1SDK
>            Reporter: Jörn Kottmann
>
> Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
> for many use cases in which the resources are almost static and rarely change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support resource which are available via
> http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
> According to the documentation it uses URL.openStream and forbids http URLs which would be supported
> by that method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (UIMA-1969) Add support for external resources hosted on an http server

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann reassigned UIMA-1969:
-----------------------------------

    Assignee: Jörn Kottmann

> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
>                 Key: UIMA-1969
>                 URL: https://issues.apache.org/jira/browse/UIMA-1969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3.1SDK
>            Reporter: Jörn Kottmann
>            Assignee: Jörn Kottmann
>
> Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
> for many use cases in which the resources are almost static and rarely change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support resource which are available via
> http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
> According to the documentation it uses URL.openStream and forbids http URLs which would be supported
> by that method.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (UIMA-1969) Add support for external resources hosted on an http server

Posted by "Marshall Schor (Assigned) (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor reassigned UIMA-1969:
------------------------------------

    Assignee: Marshall Schor  (was: Joern Kottmann)
    
> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
>                 Key: UIMA-1969
>                 URL: https://issues.apache.org/jira/browse/UIMA-1969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3.1SDK
>            Reporter: Joern Kottmann
>            Assignee: Marshall Schor
>
> Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
> for many use cases in which the resources are almost static and rarely change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support resource which are available via
> http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
> According to the documentation it uses URL.openStream and forbids http URLs which would be supported
> by that method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (UIMA-1969) Add support for external resources hosted on an http server

Posted by "Marshall Schor (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973301#action_12973301 ] 

Marshall Schor commented on UIMA-1969:
--------------------------------------

There are two impls of DataResource interface.  

* ConfigurableDataResource_impl
* DataResource_impl 

Both are initialized with a ResourceSpecifier, an instance of:
* ConfigurableDataResource_impl  -- ConfigurableDataResourceSpecifier
* DataResource_impl - FileResourceSpecifier

Neither of these specifiers actually requires that the URL be a file.

DataResource_impl first attempts to create the URL from the spec; only if that fails does it attempt to construct a URL based on treating the spec as a file.

The ConfigurableDataResource_impl does the same thing, but doesn't attempt to construct a URL based on treating the spec as a file name. 

So - this might work already, and maybe the Javadocs need to be fixed?

> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
>                 Key: UIMA-1969
>                 URL: https://issues.apache.org/jira/browse/UIMA-1969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3.1SDK
>            Reporter: Jörn Kottmann
>
> Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
> for many use cases in which the resources are almost static and rarely change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support resource which are available via
> http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
> According to the documentation it uses URL.openStream and forbids http URLs which would be supported
> by that method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Closed] (UIMA-1969) Add support for external resources hosted on an http server

Posted by "Marshall Schor (Closed) (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor closed UIMA-1969.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.0SDK
    
> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
>                 Key: UIMA-1969
>                 URL: https://issues.apache.org/jira/browse/UIMA-1969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3.1SDK
>            Reporter: Joern Kottmann
>            Assignee: Marshall Schor
>             Fix For: 2.4.0SDK
>
>
> Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
> for many use cases in which the resources are almost static and rarely change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support resource which are available via
> http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
> According to the documentation it uses URL.openStream and forbids http URLs which would be supported
> by that method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (UIMA-1969) Add support for external resources hosted on an http server

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973304#action_12973304 ] 

Jörn Kottmann commented on UIMA-1969:
-------------------------------------

Sounds good, I will just try it out and report back here.

> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
>                 Key: UIMA-1969
>                 URL: https://issues.apache.org/jira/browse/UIMA-1969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3.1SDK
>            Reporter: Jörn Kottmann
>
> Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
> for many use cases in which the resources are almost static and rarely change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support resource which are available via
> http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
> According to the documentation it uses URL.openStream and forbids http URLs which would be supported
> by that method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1969) Add support for external resources hosted on an http server

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997418#comment-12997418 ] 

Jörn Kottmann commented on UIMA-1969:
-------------------------------------

Sorry it took me a few days. I tested it now with UIMA-AS 2.3.1 RC4 and it can just load resources from an http server out of the box.

To close this issue we need to update the documentation.

> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
>                 Key: UIMA-1969
>                 URL: https://issues.apache.org/jira/browse/UIMA-1969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.3.1SDK
>            Reporter: Jörn Kottmann
>
> Currently external resources for an Analysis Engine can only be loaded from the file system. This is useful 
> for many use cases in which the resources are almost static and rarely change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support resource which are available via
> http. It seems that the current code for the file URLs can be easily extended to also allow http resources. 
> According to the documentation it uses URL.openStream and forbids http URLs which would be supported
> by that method.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira