@@ -106,32 +106,35 @@ private function doTestNormalize($resourceMetadataFactory = null): void
106106
107107 $ expected = [
108108 '@context ' => [
109- '@vocab ' => '/doc# ' ,
110- 'hydra ' => 'http://www.w3.org/ns/hydra/core# ' ,
111- 'rdf ' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns# ' ,
112- 'rdfs ' => 'http://www.w3.org/2000/01/rdf-schema# ' ,
113- 'xmls ' => 'http://www.w3.org/2001/XMLSchema# ' ,
114- 'owl ' => 'http://www.w3.org/2002/07/owl# ' ,
115- 'schema ' => 'https://schema.org/ ' ,
116- 'domain ' => [
117- '@id ' => 'rdfs:domain ' ,
118- '@type ' => '@id ' ,
119- ],
120- 'range ' => [
121- '@id ' => 'rdfs:range ' ,
122- '@type ' => '@id ' ,
123- ],
124- 'subClassOf ' => [
125- '@id ' => 'rdfs:subClassOf ' ,
126- '@type ' => '@id ' ,
127- ],
128- 'expects ' => [
129- '@id ' => 'hydra:expects ' ,
130- '@type ' => '@id ' ,
131- ],
132- 'returns ' => [
133- '@id ' => 'hydra:returns ' ,
134- '@type ' => '@id ' ,
109+ 'http://www.w3.org/ns/hydra/context.jsonld ' ,
110+ [
111+ '@vocab ' => '/doc# ' ,
112+ 'hydra ' => 'http://www.w3.org/ns/hydra/core# ' ,
113+ 'rdf ' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns# ' ,
114+ 'rdfs ' => 'http://www.w3.org/2000/01/rdf-schema# ' ,
115+ 'xmls ' => 'http://www.w3.org/2001/XMLSchema# ' ,
116+ 'owl ' => 'http://www.w3.org/2002/07/owl# ' ,
117+ 'schema ' => 'https://schema.org/ ' ,
118+ 'domain ' => [
119+ '@id ' => 'rdfs:domain ' ,
120+ '@type ' => '@id ' ,
121+ ],
122+ 'range ' => [
123+ '@id ' => 'rdfs:range ' ,
124+ '@type ' => '@id ' ,
125+ ],
126+ 'subClassOf ' => [
127+ '@id ' => 'rdfs:subClassOf ' ,
128+ '@type ' => '@id ' ,
129+ ],
130+ 'expects ' => [
131+ '@id ' => 'hydra:expects ' ,
132+ '@type ' => '@id ' ,
133+ ],
134+ 'returns ' => [
135+ '@id ' => 'hydra:returns ' ,
136+ '@type ' => '@id ' ,
137+ ],
135138 ],
136139 ],
137140 '@id ' => '/doc ' ,
@@ -411,32 +414,35 @@ public function testNormalizeInputOutputClass(): void
411414
412415 $ expected = [
413416 '@context ' => [
414- '@vocab ' => '/doc# ' ,
415- 'hydra ' => 'http://www.w3.org/ns/hydra/core# ' ,
416- 'rdf ' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns# ' ,
417- 'rdfs ' => 'http://www.w3.org/2000/01/rdf-schema# ' ,
418- 'xmls ' => 'http://www.w3.org/2001/XMLSchema# ' ,
419- 'owl ' => 'http://www.w3.org/2002/07/owl# ' ,
420- 'schema ' => 'https://schema.org/ ' ,
421- 'domain ' => [
422- '@id ' => 'rdfs:domain ' ,
423- '@type ' => '@id ' ,
424- ],
425- 'range ' => [
426- '@id ' => 'rdfs:range ' ,
427- '@type ' => '@id ' ,
428- ],
429- 'subClassOf ' => [
430- '@id ' => 'rdfs:subClassOf ' ,
431- '@type ' => '@id ' ,
432- ],
433- 'expects ' => [
434- '@id ' => 'hydra:expects ' ,
435- '@type ' => '@id ' ,
436- ],
437- 'returns ' => [
438- '@id ' => 'hydra:returns ' ,
439- '@type ' => '@id ' ,
417+ 'http://www.w3.org/ns/hydra/context.jsonld ' ,
418+ [
419+ '@vocab ' => '/doc# ' ,
420+ 'hydra ' => 'http://www.w3.org/ns/hydra/core# ' ,
421+ 'rdf ' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns# ' ,
422+ 'rdfs ' => 'http://www.w3.org/2000/01/rdf-schema# ' ,
423+ 'xmls ' => 'http://www.w3.org/2001/XMLSchema# ' ,
424+ 'owl ' => 'http://www.w3.org/2002/07/owl# ' ,
425+ 'schema ' => 'https://schema.org/ ' ,
426+ 'domain ' => [
427+ '@id ' => 'rdfs:domain ' ,
428+ '@type ' => '@id ' ,
429+ ],
430+ 'range ' => [
431+ '@id ' => 'rdfs:range ' ,
432+ '@type ' => '@id ' ,
433+ ],
434+ 'subClassOf ' => [
435+ '@id ' => 'rdfs:subClassOf ' ,
436+ '@type ' => '@id ' ,
437+ ],
438+ 'expects ' => [
439+ '@id ' => 'hydra:expects ' ,
440+ '@type ' => '@id ' ,
441+ ],
442+ 'returns ' => [
443+ '@id ' => 'hydra:returns ' ,
444+ '@type ' => '@id ' ,
445+ ],
440446 ],
441447 ],
442448 '@id ' => '/doc ' ,
@@ -776,32 +782,35 @@ public function testNormalizeWithoutPrefix(): void
776782
777783 $ expected = [
778784 '@context ' => [
779- '@vocab ' => '/doc# ' ,
780- 'hydra ' => 'http://www.w3.org/ns/hydra/core# ' ,
781- 'rdf ' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns# ' ,
782- 'rdfs ' => 'http://www.w3.org/2000/01/rdf-schema# ' ,
783- 'xmls ' => 'http://www.w3.org/2001/XMLSchema# ' ,
784- 'owl ' => 'http://www.w3.org/2002/07/owl# ' ,
785- 'schema ' => 'https://schema.org/ ' ,
786- 'domain ' => [
787- '@id ' => 'rdfs:domain ' ,
788- '@type ' => '@id ' ,
789- ],
790- 'range ' => [
791- '@id ' => 'rdfs:range ' ,
792- '@type ' => '@id ' ,
793- ],
794- 'subClassOf ' => [
795- '@id ' => 'rdfs:subClassOf ' ,
796- '@type ' => '@id ' ,
797- ],
798- 'expects ' => [
799- '@id ' => 'expects ' ,
800- '@type ' => '@id ' ,
801- ],
802- 'returns ' => [
803- '@id ' => 'returns ' ,
804- '@type ' => '@id ' ,
785+ 'http://www.w3.org/ns/hydra/context.jsonld ' ,
786+ [
787+ '@vocab ' => '/doc# ' ,
788+ 'hydra ' => 'http://www.w3.org/ns/hydra/core# ' ,
789+ 'rdf ' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns# ' ,
790+ 'rdfs ' => 'http://www.w3.org/2000/01/rdf-schema# ' ,
791+ 'xmls ' => 'http://www.w3.org/2001/XMLSchema# ' ,
792+ 'owl ' => 'http://www.w3.org/2002/07/owl# ' ,
793+ 'schema ' => 'https://schema.org/ ' ,
794+ 'domain ' => [
795+ '@id ' => 'rdfs:domain ' ,
796+ '@type ' => '@id ' ,
797+ ],
798+ 'range ' => [
799+ '@id ' => 'rdfs:range ' ,
800+ '@type ' => '@id ' ,
801+ ],
802+ 'subClassOf ' => [
803+ '@id ' => 'rdfs:subClassOf ' ,
804+ '@type ' => '@id ' ,
805+ ],
806+ 'expects ' => [
807+ '@id ' => 'expects ' ,
808+ '@type ' => '@id ' ,
809+ ],
810+ 'returns ' => [
811+ '@id ' => 'returns ' ,
812+ '@type ' => '@id ' ,
813+ ],
805814 ],
806815 ],
807816 '@id ' => '/doc ' ,
0 commit comments