@@ -1951,7 +1951,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
1951
1951
} ) ;
1952
1952
} ) ;
1953
1953
1954
- it ( 'should emit for @graph with relative @id (1)' , async ( ) => {
1954
+ it ( 'should emit for @graph with only @id (1)' , async ( ) => {
1955
1955
const input =
1956
1956
{
1957
1957
"@context" : {
@@ -1962,7 +1962,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
1962
1962
}
1963
1963
} ,
1964
1964
"@id" : "urn:id" ,
1965
- "p" : [ "rel " ]
1965
+ "p" : [ "urn:id0 " ]
1966
1966
}
1967
1967
;
1968
1968
const expected = [ ] ;
@@ -1979,7 +1979,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
1979
1979
} ) ;
1980
1980
} ) ;
1981
1981
1982
- it ( 'should emit for @graph with relative @id (2)' , async ( ) => {
1982
+ it ( 'should emit for @graph with only @id (2)' , async ( ) => {
1983
1983
const input =
1984
1984
{
1985
1985
"@context" : {
@@ -1991,8 +1991,8 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
1991
1991
} ,
1992
1992
"@id" : "urn:id" ,
1993
1993
"p" : [
1994
- "rel0 " ,
1995
- "rel1 "
1994
+ "urn:id0 " ,
1995
+ "urn:id1 "
1996
1996
]
1997
1997
}
1998
1998
;
@@ -2011,7 +2011,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2011
2011
} ) ;
2012
2012
} ) ;
2013
2013
2014
- it ( 'should emit for @graph with relative @id (3)' , async ( ) => {
2014
+ it ( 'should emit for @graph with only @id (3)' , async ( ) => {
2015
2015
const input =
2016
2016
{
2017
2017
"@context" : {
@@ -2024,10 +2024,10 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2024
2024
"@id" : "urn:g0" ,
2025
2025
"p" : [
2026
2026
{
2027
- "@id" : "urn:g1 " ,
2028
- "urn:p1 " : "v1 "
2027
+ "@id" : "urn:id0 " ,
2028
+ "urn:p0 " : "v0 "
2029
2029
} ,
2030
- "rel "
2030
+ "urn:id1 "
2031
2031
]
2032
2032
}
2033
2033
;
@@ -2039,10 +2039,10 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2039
2039
{
2040
2040
"@graph" : [
2041
2041
{
2042
- "@id" : "urn:g1 " ,
2043
- "urn:p1 " : [
2042
+ "@id" : "urn:id0 " ,
2043
+ "urn:p0 " : [
2044
2044
{
2045
- "@value" : "v1 "
2045
+ "@value" : "v0 "
2046
2046
}
2047
2047
]
2048
2048
}
@@ -2064,7 +2064,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2064
2064
} ) ;
2065
2065
} ) ;
2066
2066
2067
- it ( 'should emit for @graph with relative @id (4)' , async ( ) => {
2067
+ it ( 'should emit for @graph with only @id (4)' , async ( ) => {
2068
2068
const input =
2069
2069
{
2070
2070
"@context" : {
@@ -2076,9 +2076,9 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2076
2076
} ,
2077
2077
"@id" : "urn:g0" ,
2078
2078
"p" : [
2079
- "rel " ,
2079
+ "urn:id0 " ,
2080
2080
{
2081
- "@id" : "urn:g1 " ,
2081
+ "@id" : "urn:id1 " ,
2082
2082
"urn:p1" : "v1"
2083
2083
}
2084
2084
]
@@ -2092,7 +2092,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2092
2092
{
2093
2093
"@graph" : [
2094
2094
{
2095
- "@id" : "urn:g1 " ,
2095
+ "@id" : "urn:id1 " ,
2096
2096
"urn:p1" : [
2097
2097
{
2098
2098
"@value" : "v1"
@@ -2117,7 +2117,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2117
2117
} ) ;
2118
2118
} ) ;
2119
2119
2120
- it ( 'should emit for @graph with relative @id (5)' , async ( ) => {
2120
+ it ( 'should emit for @graph with only @id (5)' , async ( ) => {
2121
2121
const input =
2122
2122
{
2123
2123
"@context" : {
@@ -2132,7 +2132,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2132
2132
} ,
2133
2133
"@id" : "urn:id" ,
2134
2134
"urn:t" : "urn:id" ,
2135
- "p" : [ "rel " ]
2135
+ "p" : [ "urn:id0 " ]
2136
2136
}
2137
2137
;
2138
2138
const expected =
@@ -2159,7 +2159,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2159
2159
} ) ;
2160
2160
} ) ;
2161
2161
2162
- it ( 'should emit for @graph with relative @id (6)' , async ( ) => {
2162
+ it ( 'should emit for @graph with only @id (6)' , async ( ) => {
2163
2163
const input =
2164
2164
{
2165
2165
"@context" : {
@@ -2174,7 +2174,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2174
2174
} ,
2175
2175
"@id" : "urn:id" ,
2176
2176
"urn:t" : "urn:id" ,
2177
- "p" : "rel "
2177
+ "p" : "urn:id0 "
2178
2178
}
2179
2179
;
2180
2180
const expected =
@@ -2218,7 +2218,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2218
2218
"urn:t" : "urn:id" ,
2219
2219
"p" : {
2220
2220
"@id" : "rel" ,
2221
- "urn:t" : "urn:id2 "
2221
+ "urn:t" : "urn:id0 "
2222
2222
}
2223
2223
}
2224
2224
;
@@ -2238,7 +2238,7 @@ _:b0 <ex:p> "[null]"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
2238
2238
"@id" : "rel" ,
2239
2239
"urn:t" : [
2240
2240
{
2241
- "@id" : "urn:id2 "
2241
+ "@id" : "urn:id0 "
2242
2242
}
2243
2243
]
2244
2244
}
0 commit comments