You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Laurent Pellegrino (JIRA)" <ji...@apache.org> on 2011/07/19 14:03:57 UTC
[jira] [Created] (JENA-83) Add a convenient method to create a
typed literal without lang tag
Add a convenient method to create a typed literal without lang tag
------------------------------------------------------------------
Key: JENA-83
URL: https://issues.apache.org/jira/browse/JENA-83
Project: Jena
Issue Type: Improvement
Components: Jena
Reporter: Laurent Pellegrino
Priority: Trivial
It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (JENA-83) Add a convenient method to create a
typed literal without lang tag
Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068289#comment-13068289 ]
Andy Seaborne commented on JENA-83:
-----------------------------------
If there were a patch, it could be applied (hint, hint!)
> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
> Key: JENA-83
> URL: https://issues.apache.org/jira/browse/JENA-83
> Project: Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Laurent Pellegrino
> Priority: Trivial
> Labels: api, datatype, jena, literal
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (JENA-83) Add a convenient method to create a typed
literal without lang tag
Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne closed JENA-83.
-----------------------------
> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
> Key: JENA-83
> URL: https://issues.apache.org/jira/browse/JENA-83
> Project: Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Laurent Pellegrino
> Assignee: Andy Seaborne
> Priority: Trivial
> Labels: api, jena, literal
> Attachments: JENA-83-r1148711.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (JENA-83) Add a convenient method to
create a typed literal without lang tag
Posted by "Laurent Pellegrino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068299#comment-13068299 ]
Laurent Pellegrino edited comment on JENA-83 at 8/9/11 4:22 PM:
----------------------------------------------------------------
Please find enclosed the patch.
was (Author: laurent.pellegrino):
Please find enclosed the patch. I have put an empty String for the default lang parameter because it seems that in the source file you use it but I don't know whether it is better to use "" or null.
> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
> Key: JENA-83
> URL: https://issues.apache.org/jira/browse/JENA-83
> Project: Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Laurent Pellegrino
> Priority: Trivial
> Labels: api, datatype, jena, literal
> Attachments: JENA-83-r1148711.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JENA-83) Add a convenient method to create a
typed literal without lang tag
Posted by "Laurent Pellegrino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laurent Pellegrino updated JENA-83:
-----------------------------------
Attachment: JENA-83-r1148711.patch
Please find enclosed the patch. I have put an empty String for the default lang parameter because it seems that in the source file you use it but I don't know whether it is better to use "" or null.
> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
> Key: JENA-83
> URL: https://issues.apache.org/jira/browse/JENA-83
> Project: Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Laurent Pellegrino
> Priority: Trivial
> Labels: api, datatype, jena, literal
> Attachments: JENA-83-r1148711.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (JENA-83) Add a convenient method to create a
typed literal without lang tag
Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-83.
-------------------------------
Resolution: Fixed
Patch applied.
> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
> Key: JENA-83
> URL: https://issues.apache.org/jira/browse/JENA-83
> Project: Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Laurent Pellegrino
> Assignee: Andy Seaborne
> Priority: Trivial
> Labels: api, jena, literal
> Attachments: JENA-83-r1148711.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JENA-83) Add a convenient method to create a
typed literal without lang tag
Posted by "Laurent Pellegrino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laurent Pellegrino updated JENA-83:
-----------------------------------
Labels: api jena literal (was: api datatype jena literal)
> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
> Key: JENA-83
> URL: https://issues.apache.org/jira/browse/JENA-83
> Project: Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Laurent Pellegrino
> Priority: Trivial
> Labels: api, jena, literal
> Attachments: JENA-83-r1148711.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (JENA-83) Add a convenient method to create a
typed literal without lang tag
Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne reassigned JENA-83:
---------------------------------
Assignee: Andy Seaborne
> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
> Key: JENA-83
> URL: https://issues.apache.org/jira/browse/JENA-83
> Project: Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Laurent Pellegrino
> Assignee: Andy Seaborne
> Priority: Trivial
> Labels: api, jena, literal
> Attachments: JENA-83-r1148711.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira