You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Oliver Strässer (JIRA)" <ji...@apache.org> on 2010/06/02 09:59:38 UTC

[jira] Created: (CLEREZZA-224) eed the "current language information" in the widget.

eed the "current language information" in the widget. 
------------------------------------------------------

                 Key: CLEREZZA-224
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
             Project: Clerezza
          Issue Type: New Feature
            Reporter: Oliver Strässer
            Priority: Critical


Hi all

I'll need the "current language Information" in the widget.

Use Case 1:

I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property wwfch:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.

How can I propagte the language information from the page to my widget?

Use Case 2:

I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.


1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
2 . approach : the individual language is added to the context graphnode.


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


[jira] Commented: (CLEREZZA-224) eed the "current language information" in the widget.

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875550#action_12875550 ] 

Tommaso Teofili commented on CLEREZZA-224:
------------------------------------------

Maybe you could call inside ore "before" the widget (depending on use case) UIMABaseMetadataGenerator (providing a valid AlchemyAPI key as 'apikey' value in TextLanguageDetectionAEDescriptor.xml descriptor inside the org.apache.clerezza.uima.utils module) to enrich your graphnode with language finding it under the DCTERMS.language graphnode property

> eed the "current language information" in the widget. 
> ------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property wwfch:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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


[jira] Commented: (CLEREZZA-224) need the "current language information" in the widget.

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

Reto Bachmann-Gmür commented on CLEREZZA-224:
---------------------------------------------

I think the user language preference should be associated to the context node, 

> need the "current language information" in the widget. 
> -------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property ont:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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


[jira] Commented: (CLEREZZA-224) eed the "current language information" in the widget.

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

Reto Bachmann-Gmür commented on CLEREZZA-224:
---------------------------------------------

what is "current language Information", the preferred langauge according to accept-language and possibly an overwriting cookie?

> eed the "current language information" in the widget. 
> ------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property wwfch:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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


[jira] Closed: (CLEREZZA-224) need the "current language information" in the widget.

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

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

      Assignee: Reto Bachmann-Gmür
    Resolution: Incomplete

closing the issue due to missing information, possibly not an issue as context-node can be used.

> need the "current language information" in the widget. 
> -------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Assignee: Reto Bachmann-Gmür
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property ont:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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


[jira] Issue Comment Edited: (CLEREZZA-224) eed the "current language information" in the widget.

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875550#action_12875550 ] 

Tommaso Teofili edited comment on CLEREZZA-224 at 6/4/10 6:12 AM:
------------------------------------------------------------------

Maybe you could call inside or "before" the widget (depending on use case) UIMABaseMetadataGenerator (providing a valid AlchemyAPI key as 'apikey' value in TextLanguageDetectionAEDescriptor.xml descriptor inside the org.apache.clerezza.uima.utils module) to enrich your graphnode with language finding it under the DCTERMS.language graphnode property

      was (Author: teofili):
    Maybe you could call inside ore "before" the widget (depending on use case) UIMABaseMetadataGenerator (providing a valid AlchemyAPI key as 'apikey' value in TextLanguageDetectionAEDescriptor.xml descriptor inside the org.apache.clerezza.uima.utils module) to enrich your graphnode with language finding it under the DCTERMS.language graphnode property
  
> eed the "current language information" in the widget. 
> ------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property wwfch:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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


[jira] Commented: (CLEREZZA-224) eed the "current language information" in the widget.

Posted by "André Dietisheim (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875555#action_12875555 ] 

André Dietisheim commented on CLEREZZA-224:
-------------------------------------------

File: bundle://85.0:1/org/apache/clerezza/web/resources/style/headed-page-template.ssp

			
			

			
		

		

Description:

				

java.lang.RuntimeException: no renderer could be created for <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> (in [<http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://clerezza.org/2009/04/digitalassetmanager#hasResourcePicker> org.apache.clerezza.rdf.core.BNode@1c8638a., <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/08/platform#HeadedPage>., org.apache.clerezza.rdf.core.BNode@1c8638a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/04/digitalassetmanager#ResourcePicker>.]), edit-naked,[application/xhtml+xml]

		
		

Stack trace:

java.lang.RuntimeException: no renderer could be created for <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> (in [<http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://clerezza.org/2009/04/digitalassetmanager#hasResourcePicker> org.apache.clerezza.rdf.core.BNode@1c8638a., <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/08/platform#HeadedPage>., org.apache.clerezza.rdf.core.BNode@1c8638a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/04/digitalassetmanager#ResourcePicker>.]), edit-naked,[application/xhtml+xml]
	at org.apache.clerezza.platform.typerendering.CallbackRendererImpl.render(CallbackRendererImpl.java:46)
	at headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e$.render$1(headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e:65529)
	at headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e$.run$1(headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e:49)
	at headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e$$anonfun$main$1$$anonfun$apply$1.apply(headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e:59)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
	at scala.Console$.withOut(Console.scala:84)
	at scala.Console$.withOut(Console.scala:102)

Any idea what's the reason?

> eed the "current language information" in the widget. 
> ------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property wwfch:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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


[jira] Updated: (CLEREZZA-224) eed the "current language information" in the widget.

Posted by "André Dietisheim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

André Dietisheim updated CLEREZZA-224:
--------------------------------------

    Comment: was deleted

(was: File: bundle://85.0:1/org/apache/clerezza/web/resources/style/headed-page-template.ssp

			
			

			
		

		

Description:

				

java.lang.RuntimeException: no renderer could be created for <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> (in [<http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://clerezza.org/2009/04/digitalassetmanager#hasResourcePicker> org.apache.clerezza.rdf.core.BNode@1c8638a., <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/08/platform#HeadedPage>., org.apache.clerezza.rdf.core.BNode@1c8638a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/04/digitalassetmanager#ResourcePicker>.]), edit-naked,[application/xhtml+xml]

		
		

Stack trace:

java.lang.RuntimeException: no renderer could be created for <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> (in [<http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://clerezza.org/2009/04/digitalassetmanager#hasResourcePicker> org.apache.clerezza.rdf.core.BNode@1c8638a., <http://localhost:8080/news/2010/06/04/AEOEUEaoeue> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/08/platform#HeadedPage>., org.apache.clerezza.rdf.core.BNode@1c8638a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://clerezza.org/2009/04/digitalassetmanager#ResourcePicker>.]), edit-naked,[application/xhtml+xml]
	at org.apache.clerezza.platform.typerendering.CallbackRendererImpl.render(CallbackRendererImpl.java:46)
	at headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e$.render$1(headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e:65529)
	at headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e$.run$1(headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e:49)
	at headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e$$anonfun$main$1$$anonfun$apply$1.apply(headed_page_templateef9efe8ecb94c7900ccca3a7da7b1d4e:59)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
	at scala.Console$.withOut(Console.scala:84)
	at scala.Console$.withOut(Console.scala:102)

Any idea what's the reason?)

> eed the "current language information" in the widget. 
> ------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property wwfch:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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


[jira] Updated: (CLEREZZA-224) need the "current language information" in the widget.

Posted by "Oliver Strässer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Strässer updated CLEREZZA-224:
-------------------------------------

        Summary: need the "current language information" in the widget.   (was: eed the "current language information" in the widget. )
    Description: 
Hi all

I'll need the "current language Information" in the widget.

Use Case 1:

I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property ont:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.

How can I propagte the language information from the page to my widget?

Use Case 2:

I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.


1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
2 . approach : the individual language is added to the context graphnode.


  was:
Hi all

I'll need the "current language Information" in the widget.

Use Case 1:

I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property wwfch:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.

How can I propagte the language information from the page to my widget?

Use Case 2:

I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.


1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
2 . approach : the individual language is added to the context graphnode.



> need the "current language information" in the widget. 
> -------------------------------------------------------
>
>                 Key: CLEREZZA-224
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-224
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Oliver Strässer
>            Priority: Critical
>
> Hi all
> I'll need the "current language Information" in the widget.
> Use Case 1:
> I create an App which contains information about animals in different languages. I have implemented a template widget called "display-pet" which is language independed. This widget is from RDF type "PetWidget" and has a property ont:describePet, which points to a description of a pet. Corresponding to the current language of the page the description of the animal should be displayed.
> How can I propagte the language information from the page to my widget?
> Use Case 2:
> I display an interactive flash content. This flash content requests an xml with all pet information.  This flash needs the current language information of the page too. - to request the correct language and display all labels in the correct language.
> 1 . approach : the graphnode, that i receive in the ssp file (wich renders the pet or include the flash content), has an triple which holds the language information of the page.
> 2 . approach : the individual language is added to the context graphnode.

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