You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Created) (JIRA)" <ji...@apache.org> on 2011/10/30 13:07:32 UTC
[jira] [Created] (JENA-148) xsd:anyURI is sameValueAs an xsd:string
or simple literal
xsd:anyURI is sameValueAs an xsd:string or simple literal
---------------------------------------------------------
Key: JENA-148
URL: https://issues.apache.org/jira/browse/JENA-148
Project: Jena
Issue Type: Bug
Components: Jena
Reporter: Andy Seaborne
Priority: Minor
Attachments: Jena_AnyURI_r1190400.patch
In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
"http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an
xsd:string or simple literal
Posted by "Andy Seaborne (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-148.
--------------------------------
Resolution: Fixed
Patch applied to SVN.
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an
xsd:string or simple literal
Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13142010#comment-13142010 ]
Andy Seaborne commented on JENA-148:
------------------------------------
Done, thanks.
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch, jena-148_regression.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] [Closed] (JENA-148) xsd:anyURI is sameValueAs an xsd:string
or simple literal
Posted by "Andy Seaborne (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne closed JENA-148.
------------------------------
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch, jena-148_regression.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an xsd:string
or simple literal
Posted by "Thorsten Möller (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thorsten Möller updated JENA-148:
---------------------------------
Attachment: jena-148_regression.patch
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch, jena-148_regression.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an xsd:string
or simple literal
Posted by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne updated JENA-148:
-------------------------------
Attachment: Jena_AnyURI_r1190400.patch
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an
xsd:string or simple literal
Posted by "Andy Seaborne (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne reassigned JENA-148:
----------------------------------
Assignee: Andy Seaborne
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an
xsd:string or simple literal
Posted by "Thorsten Möller (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141998#comment-13141998 ]
Thorsten Möller commented on JENA-148:
--------------------------------------
The proposed solution introduces a regression elsewhere in one of our projects. The Java-to-XSD mapping got lost for xsd:anyURI. Attached patch fixes it (patch root = project root).
Again, sorry for the accompanying whitespace cleanup noise (I find this setting useful).
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch, jena-148_regression.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an xsd:string
or simple literal
Posted by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne updated JENA-148:
-------------------------------
Attachment: Jena_AnyURI_r1190400-v2.patch
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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] (JENA-148) xsd:anyURI is sameValueAs an
xsd:string or simple literal
Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139649#comment-13139649 ]
Andy Seaborne commented on JENA-148:
------------------------------------
Revised patch (Jena_AnyURI_r1190400-v2.patch) which includes test case.
> xsd:anyURI is sameValueAs an xsd:string or simple literal
> ---------------------------------------------------------
>
> Key: JENA-148
> URL: https://issues.apache.org/jira/browse/JENA-148
> Project: Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Priority: Minor
> Labels: datatypes
> Attachments: Jena_AnyURI_r1190400-v2.patch, Jena_AnyURI_r1190400.patch
>
>
> In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.
> "http://example/"^^xsd:anyURI matches "http://example/"^^xsd:string and "http://example/"
> This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.
> The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".
> Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION
--
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