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

Andy Seaborne updated JENA-1077:
--------------------------------
    Description: 
Data:
{noformat}
PREFIX : <http://example/>
PREFIX xsd:     <http://www.w3.org/2001/XMLSchema#>

:s1 :p "langtag"@en .
:s2 :p "simple string" .
:s3 :p "datatype string"^^xsd:string .
:s4 :p "not a string"^^xsd:anything .
{noformat}

Output RDF.1.1 :
{noformat}
 <literal datatype="http://www.w3.org/2001/XMLSchema#string";>simple 
string</literal>
 <literal xml:lang="en" 
datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString";>langtag</literal>
 <literal datatype="http://www.w3.org/2001/XMLSchema#anything";>not a 
string</literal>
 <literal datatype="http://www.w3.org/2001/XMLSchema#string";>datatype 
string</literal>
{noformat}


Output Jena 3.0.0, abbreviated:
{noformat}
 <literal datatype="http://www.w3.org/2001/XMLSchema#string";>simple 
string</literal>
 <literal xml:lang="en" 
datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString";>langtag</literal>
 <literal datatype="http://www.w3.org/2001/XMLSchema#anything";>not a 
string</literal>
 <literal datatype="http://www.w3.org/2001/XMLSchema#string";>datatype 
string</literal>
{noformat}

Output Jena 2.13.0 (RDF 1.0), abbreviated:
{noformat}
  <literal>simple string</literal>
  <literal xml:lang="en">langtag</literal>
  <literal datatype="http://www.w3.org/2001/XMLSchema#anything";>not a 
string</literal>
  <literal datatype="http://www.w3.org/2001/XMLSchema#string";>datatype 
string</literal>
{noformat}

  was:
Data:
{noformat}
PREFIX : <http://example/>
PREFIX xsd:     <http://www.w3.org/2001/XMLSchema#>

:s1 :p "langtag"@en .
:s2 :p "simple string" .
:s3 :p "datatype string"^^xsd:string .
:s4 :p "not a string"^^xsd:anything .
{noformat}

Output Jena 3.0.0, abbreviated:
{noformat}
 <literal datatype="http://www.w3.org/2001/XMLSchema#string";>simple 
string</literal>
 <literal xml:lang="en" 
datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString";>langtag</literal>
 <literal datatype="http://www.w3.org/2001/XMLSchema#anything";>not a 
string</literal>
 <literal datatype="http://www.w3.org/2001/XMLSchema#string";>datatype 
string</literal>
{noformat}
Output Jena 2.13.0 (RDF 1.0), abbreviated:
{noformat}

{noformat}


> sparql-results+xml : (RDF 1.1) wrongly output includes datatypes for 
> rdf:langString and xsd:string.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: JENA-1077
>                 URL: https://issues.apache.org/jira/browse/JENA-1077
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 3.0.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>
> Data:
> {noformat}
> PREFIX : <http://example/>
> PREFIX xsd:     <http://www.w3.org/2001/XMLSchema#>
> :s1 :p "langtag"@en .
> :s2 :p "simple string" .
> :s3 :p "datatype string"^^xsd:string .
> :s4 :p "not a string"^^xsd:anything .
> {noformat}
> Output RDF.1.1 :
> {noformat}
>  <literal datatype="http://www.w3.org/2001/XMLSchema#string";>simple 
> string</literal>
>  <literal xml:lang="en" 
> datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString";>langtag</literal>
>  <literal datatype="http://www.w3.org/2001/XMLSchema#anything";>not a 
> string</literal>
>  <literal datatype="http://www.w3.org/2001/XMLSchema#string";>datatype 
> string</literal>
> {noformat}
> Output Jena 3.0.0, abbreviated:
> {noformat}
>  <literal datatype="http://www.w3.org/2001/XMLSchema#string";>simple 
> string</literal>
>  <literal xml:lang="en" 
> datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString";>langtag</literal>
>  <literal datatype="http://www.w3.org/2001/XMLSchema#anything";>not a 
> string</literal>
>  <literal datatype="http://www.w3.org/2001/XMLSchema#string";>datatype 
> string</literal>
> {noformat}
> Output Jena 2.13.0 (RDF 1.0), abbreviated:
> {noformat}
>   <literal>simple string</literal>
>   <literal xml:lang="en">langtag</literal>
>   <literal datatype="http://www.w3.org/2001/XMLSchema#anything";>not a 
> string</literal>
>   <literal datatype="http://www.w3.org/2001/XMLSchema#string";>datatype 
> string</literal>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to