Skip to content

Commit 43b0eb9

Browse files
BorderCloudgkellogg
authored andcommitted
The type "typed-literal" is wrong in SPARQL result (https://www.w3.org/TR/sparql11-results-json/)
Replace the type "typed-literal" with "literal"
1 parent 634dadc commit 43b0eb9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sparql11/data-sparql11/json-res/jsonres01.srj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
{
1818
"s": { "type": "uri" , "value": "http://example.org/s3" } ,
1919
"p": { "type": "uri" , "value": "http://example.org/p2" } ,
20-
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#string" , "type": "typed-literal" , "value": "bar" }
20+
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#string" , "type": "literal" , "value": "bar" }
2121
} ,
2222
{
2323
"s": { "type": "uri" , "value": "http://example.org/s4" } ,
2424
"p": { "type": "uri" , "value": "http://example.org/p4" } ,
25-
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "type": "typed-literal" , "value": "4" }
25+
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "type": "literal" , "value": "4" }
2626
} ,
2727
{
2828
"s": { "type": "uri" , "value": "http://example.org/s5" } ,
2929
"p": { "type": "uri" , "value": "http://example.org/p5" } ,
30-
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#decimal" , "type": "typed-literal" , "value": "5" }
30+
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#decimal" , "type": "literal" , "value": "5" }
3131
} ,
3232
{
3333
"s": { "type": "uri" , "value": "http://example.org/s6" } ,

sparql11/data-sparql11/json-res/jsonres02.srj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
{
2020
"s": { "type": "uri" , "value": "http://example.org/s3" } ,
2121
"p": { "type": "uri" , "value": "http://example.org/p2" } ,
22-
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#string" , "type": "typed-literal" , "value": "bar" }
22+
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#string" , "type": "literal" , "value": "bar" }
2323
} ,
2424
{
2525
"s": { "type": "uri" , "value": "http://example.org/s4" } ,
2626
"p": { "type": "uri" , "value": "http://example.org/p4" } ,
27-
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "type": "typed-literal" , "value": "4" }
27+
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "type": "literal" , "value": "4" }
2828
} ,
2929
{
3030
"s": { "type": "uri" , "value": "http://example.org/s5" } ,
3131
"p": { "type": "uri" , "value": "http://example.org/p5" } ,
32-
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#decimal" , "type": "typed-literal" , "value": "5" }
32+
"o": { "datatype": "http://www.w3.org/2001/XMLSchema#decimal" , "type": "literal" , "value": "5" }
3333
} ,
3434
{
3535
"s": { "type": "uri" , "value": "http://example.org/s6" } ,

0 commit comments

Comments
 (0)