You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Manuel Innerhofer (JIRA)" <ji...@apache.org> on 2009/12/16 14:21:18 UTC
[jira] Created: (CLEREZZA-38) implement OSGi service that retrieves
the thumbnail uri for a InfoDiscoBit
implement OSGi service that retrieves the thumbnail uri for a InfoDiscoBit
--------------------------------------------------------------------------
Key: CLEREZZA-38
URL: https://issues.apache.org/jira/browse/CLEREZZA-38
Project: Clerezza
Issue Type: New Feature
Reporter: Manuel Innerhofer
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLEREZZA-38) implement OSGi service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791925#action_12791925 ]
Reto Bachmann-Gmür commented on CLEREZZA-38:
--------------------------------------------
so fo any uri u you now there's a thumbnail at <base-uri>thumbnail-service?uri=<u>
> implement OSGi service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLEREZZA-38) implement OSGi service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791924#action_12791924 ]
Reto Bachmann-Gmür commented on CLEREZZA-38:
--------------------------------------------
do we need that service? wouldn't the discussed rest-service delivering a thumbnail for a resource identified by the uri passed as get-parameter be enough?
> implement OSGi service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLEREZZA-38) implement rest-service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Hasan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795335#action_12795335 ]
Hasan commented on CLEREZZA-38:
-------------------------------
reviewing
> implement rest-service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CLEREZZA-38) implement rest-service that retrieves
the thumbnail uri for a InfoDiscoBit
Posted by "Hasan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hasan closed CLEREZZA-38.
-------------------------
> implement rest-service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CLEREZZA-38) implement rest-service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Manuel Innerhofer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manuel Innerhofer resolved CLEREZZA-38.
---------------------------------------
Resolution: Fixed
> implement rest-service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLEREZZA-38) implement rest-service that retrieves
the thumbnail uri for a InfoDiscoBit
Posted by "Manuel Innerhofer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manuel Innerhofer updated CLEREZZA-38:
--------------------------------------
Summary: implement rest-service that retrieves the thumbnail uri for a InfoDiscoBit (was: implement OSGi service that retrieves the thumbnail uri for a InfoDiscoBit)
> implement rest-service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (CLEREZZA-38) implement rest-service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Hasan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hasan reopened CLEREZZA-38:
---------------------------
In representations.rdf
- In Property isIconFor
-- isIconFor is a DatatypeProperty, not an ObjectProperty, as it is defined now
-- property rdfs:isDefinedBy is incorrect
-- suggest to rephrase the definition to: "Points to a string specifying the resource type for which the subject is an icon."
In ThumbnailService
- unused imports
- cannot import org.apache.clerezza.rdf.ontologies.EXIF
(org.apache.clerezza.rdf.ontologies/0.11-incubating-SNAPSHOT/org.apache.clerezza.rdf.ontologies-0.11-incubating-20091223.111515-4.jar does not contain EXIF)
- In public getThumbnailUri
-- missing java doc for param width and height
- In private getThumbnailUri
-- it is assumed that the store always has EXIF.width and height properties for each thumbnail
subject. I think bad things can happen and the store might not have these properties for a
thumbnail, so getObjects(EXIF.width).next() might throw an exception.
-> Suggest to avoid this exception by using hasNext() and handle the missing EXIF.width prop
accordingly for example ignore and continue the loop.
In AlternativeRepresentationGenerator
- getService may return null, therefore contentHandler.put can throw NullPointerException.
(probably this is ok, since the method may throw RuntimeException and
node.addProperty happens after contentHandler.put)
- don't understand the purpose of the condition lastIndexOfDot >= (oldUri.length() - 6)
in createThumbnailUri.
a short inline comments might help
In pom.xml of ...core
<description>Provides a Meta Data Generator that generates alternative
representations for data of various meta types</description>
<dependencies>
- typo "meta types"?
- would change "various" to image/* as mentioned in AlternativeRepresentationGenerator
- would add that this bundle also provides a JAX-RS service to retrieve a thumbnail of an
InfoDiscoBit via http redirection
> implement rest-service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLEREZZA-38) implement OSGi service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Manuel Innerhofer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791916#action_12791916 ]
Manuel Innerhofer commented on CLEREZZA-38:
-------------------------------------------
I suggest to implement this service in the project org.apache.clerezza.platform.content.thumbnails. I propose it does the following steps to retrieve an image representing the specified InfoDiscoBit:
- If the InfoDiscoBit has a DISCOBITS:thumbnail property, then return the uri of the thumbnail.
- If no thumbnail is available then check if the media type of the InfoDiscoBit has a icon (which represents the media type) and return its uri.
- If also no media type icon is available, then return a uri to a default icon.
This solution would require that media type resources have a property that points to their icons. In which ontology would this property be defined? The media type property is in the DISCOBITS ontology, so maybe there (DISCOBITS:icon?).
> implement OSGi service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CLEREZZA-38) implement rest-service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Manuel Innerhofer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manuel Innerhofer resolved CLEREZZA-38.
---------------------------------------
Resolution: Fixed
> implement rest-service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLEREZZA-38) implement OSGi service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791923#action_12791923 ]
Reto Bachmann-Gmür commented on CLEREZZA-38:
--------------------------------------------
as the media type is represented as a literal it cannot hace a property
Isuggest a separtare ontology in org.apache.clerezza.platform.content.thumbnails that defines a property isIconFor with domain foaf:Image and range xsd:string
> implement OSGi service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CLEREZZA-38) implement OSGi service that
retrieves the thumbnail uri for a InfoDiscoBit
Posted by "Manuel Innerhofer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manuel Innerhofer reassigned CLEREZZA-38:
-----------------------------------------
Assignee: Manuel Innerhofer
> implement OSGi service that retrieves the thumbnail uri for a InfoDiscoBit
> --------------------------------------------------------------------------
>
> Key: CLEREZZA-38
> URL: https://issues.apache.org/jira/browse/CLEREZZA-38
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Manuel Innerhofer
> Assignee: Manuel Innerhofer
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.