You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2011/08/17 19:14:27 UTC

[jira] [Created] (STANBOL-313) Create WebContentItem

Create WebContentItem
---------------------

                 Key: STANBOL-313
                 URL: https://issues.apache.org/jira/browse/STANBOL-313
             Project: Stanbol
          Issue Type: Improvement
            Reporter: Reto Bachmann-Gmür


Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

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

       

[jira] [Commented] (STANBOL-313) Create WebContentItem

Posted by "Olivier Grisel (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116646#comment-13116646 ] 

Olivier Grisel commented on STANBOL-313:
----------------------------------------

We might also want to include the HTTP headers of the web request that might be useful for some enhancer that might not some additional context info passed as HTTP headers to stanbol (e.g. a Single Sign On token, user specific credentials for a 3rd party annotators such as Zemanta, SalsaDev or OpenCalais...) ...
                
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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] [Resolved] (STANBOL-313) Create WebContentItem

Posted by "Rupert Westenthaler (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rupert Westenthaler resolved STANBOL-313.
-----------------------------------------

    Resolution: Fixed

applied patch in revision 	#1183332

I was not able to use the new WebContentItem as suggested in the ContentHub, because in the meantime the implementation of the ContentHub has changed so that is uses a Store specific ContentItem implementation (SolrContentItem).
                
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Rupert Westenthaler
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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] (STANBOL-313) Create WebContentItem

Posted by "Rupert Westenthaler (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116667#comment-13116667 ] 

Rupert Westenthaler commented on STANBOL-313:
---------------------------------------------

When enhancing lets say a Dutch text but the user sets the "Accept-Language: " header to German the Enhancement Engine might also want to add the German labels for extracted/suggested entities to the enhancement graph.

+1 for adding request headers to the Enhancement Graph (however we might not want to store credentials and such via the Store interface)
                
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Rupert Westenthaler
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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] [Assigned] (STANBOL-313) Create WebContentItem

Posted by "Rupert Westenthaler (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rupert Westenthaler reassigned STANBOL-313:
-------------------------------------------

    Assignee: Rupert Westenthaler
    
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Rupert Westenthaler
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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] [Updated] (STANBOL-313) Create WebContentItem

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reto Bachmann-Gmür updated STANBOL-313:
---------------------------------------

    Attachment: STANBOL-313-enhancer.patch

Proposed resolution.
patch to be applied in trunk/enhancer

> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

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

       

[jira] [Commented] (STANBOL-313) Create WebContentItem

Posted by "Reto Bachmann-Gmür (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116696#comment-13116696 ] 

Reto Bachmann-Gmür commented on STANBOL-313:
--------------------------------------------

The proposed patch is ideal for the subset of URIs which name a specific sequence of bytes at least at a determined point in time. For some resources that are content-negotiable the value of the Content-Location header of the response is a URI belonging to this subset. However the patch is a simple utility implementation of ContentItem inheriting its identity conditions so there is nothing to prevent having multiple different (i.e. equals returning false) WebContentItems with the same ID (Uri) and possibly different contents.

I think there's a lot of room for improvement having a more powerful notion of resource rather than the current ContentItem, my patch didn't mean to address this broader field.
                
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Rupert Westenthaler
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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] (STANBOL-313) Create WebContentItem

Posted by "Rupert Westenthaler (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116710#comment-13116710 ] 

Rupert Westenthaler commented on STANBOL-313:
---------------------------------------------

You are right. Sorry for using this issue for discussions about the new Stanbol Enhancement Structure and related topics. 

I plan to test the patch tomorrow.

best
Rupert
                
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Rupert Westenthaler
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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] (STANBOL-313) Create WebContentItem

Posted by "Rupert Westenthaler (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116641#comment-13116641 ] 

Rupert Westenthaler commented on STANBOL-313:
---------------------------------------------

This might be also useful if we base the Stanbol Enhancement Structure on the annotation-ontology [1].

The URI parsed in the constructor would be the annotated document and the dereferenced Version (if not only stored as byte Array in memory, but also stored in some repository) would become to the SourceDocument as described in [2].

[1] http://code.google.com/p/annotation-ontology/
[2] http://code.google.com/p/annotation-ontology/wiki/SourceDocument 
                
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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] (STANBOL-313) Create WebContentItem

Posted by "Olivier Grisel (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116668#comment-13116668 ] 

Olivier Grisel commented on STANBOL-313:
----------------------------------------

That's why I don't want to store the original request headers in the Enhancement Graph but rather in another graph or dedicated java datastructure.
                
> Create WebContentItem
> ---------------------
>
>                 Key: STANBOL-313
>                 URL: https://issues.apache.org/jira/browse/STANBOL-313
>             Project: Stanbol
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Rupert Westenthaler
>         Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a dereferenceable resource. The class might cache the content or get the stream from remote. The class could be used for example in ContentHubRootResource.createContentItemFromForm but it seems like a generic implementationof ContentItem.

--
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