[ 
https://issues.apache.org/jira/browse/CLEREZZA-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reto Bachmann-Gmür closed CLEREZZA-214.
---------------------------------------

      Assignee: Reto Bachmann-Gmür
    Resolution: Won't Fix

I think what should be used here are virtual graphs as temporary addition to 
the content graph.

TypeHandlers are there to allow response a response of an arbitrary type. A 
typical usecase would be to deliver a binary stream encoding the sound of the 
requested music resource, especially if this data cannot easily be conceived in 
RDF.

If typehandlers returns a graphnode, the graphnode backing the graphnode must 
contain all information the rendering mechanism might need. If the ssp includes 
a referenced resource as reference in the html (image, object,...) a 
TypeHandler might be invoked on that resource but this is only the case when a 
new request is processed, typehandlers are seen as a separate layer from the 
rendering mechanism which is not invoked once a GraphNode has been returned by 
a jax-rs or TypeHandler resource-method.

In the case you describe its about fast changing data external to the stored 
graphs, I think that's a prototypical usecase for virtual graph as 
content-graph addition, its about content not presentation.

> In platform.typerendering: When using the render() function in ssp, a 
> TypeHandler (if existent) should be invoked to "process" GraphNode before 
> rendering.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-214
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-214
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Manuel Innerhofer
>            Assignee: Reto Bachmann-Gmür
>
> At the moment: 
> E.g I have a resource of type "http:localhost:8080/MyTop10CountrySongs". When 
> I request the resource in the browser, then my Top10CountrySongsTypeHandler 
> is invoked, which will search my graph and determines by top 10 favorite 
> country songs. A graph node in a UnionGraph of a SimpleMGraph (containing 
> triples from my resource to the 10 songs) and the content graph is finally 
> returned by the TypeHandler for rendering.
> The Problem:
> Now I'd like to render my "http:localhost:8080/MyTop10CountrySongs" resource 
> within a .ssp. But the Top10CountrySongsTypeHandler, which complemented the 
> graph, is not executed, therefore the the properties pointing to the songs 
> are missing.
> The Request:
> Please fix this

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

Reply via email to