diff --git a/features/hydra/docs.feature b/features/hydra/docs.feature index 6e3501d3bca..576c5169970 100644 --- a/features/hydra/docs.feature +++ b/features/hydra/docs.feature @@ -13,7 +13,7 @@ Feature: Documentation support And the response should be in JSON And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8" # Context - And the JSON node "@context[0]" should be equal to "http://www.w3.org/ns/hydra/context.jsonld" + And the JSON node "@context[0]" should be equal to "https://www.w3.org/ns/hydra/context.jsonld" And the JSON node "@context[1].@vocab" should be equal to "http://example.com/docs.jsonld#" And the JSON node "@context[1].hydra" should be equal to "http://www.w3.org/ns/hydra/core#" And the JSON node "@context[1].rdf" should be equal to "http://www.w3.org/1999/02/22-rdf-syntax-ns#" diff --git a/src/Hydra/Tests/Serializer/DocumentationNormalizerTest.php b/src/Hydra/Tests/Serializer/DocumentationNormalizerTest.php index f54c56a0bbe..8a3cbe42a22 100644 --- a/src/Hydra/Tests/Serializer/DocumentationNormalizerTest.php +++ b/src/Hydra/Tests/Serializer/DocumentationNormalizerTest.php @@ -106,7 +106,7 @@ private function doTestNormalize($resourceMetadataFactory = null): void $expected = [ '@context' => [ - 'http://www.w3.org/ns/hydra/context.jsonld', + 'https://www.w3.org/ns/hydra/context.jsonld', [ '@vocab' => '/doc#', 'hydra' => 'http://www.w3.org/ns/hydra/core#', @@ -406,7 +406,7 @@ public function testNormalizeInputOutputClass(): void $expected = [ '@context' => [ - 'http://www.w3.org/ns/hydra/context.jsonld', + 'https://www.w3.org/ns/hydra/context.jsonld', [ '@vocab' => '/doc#', 'hydra' => 'http://www.w3.org/ns/hydra/core#', @@ -766,7 +766,7 @@ public function testNormalizeWithoutPrefix(): void $expected = [ '@context' => [ - 'http://www.w3.org/ns/hydra/context.jsonld', + 'https://www.w3.org/ns/hydra/context.jsonld', [ '@vocab' => '/doc#', 'hydra' => 'http://www.w3.org/ns/hydra/core#', diff --git a/src/JsonLd/ContextBuilderInterface.php b/src/JsonLd/ContextBuilderInterface.php index c90152c1f83..63e3f769e5f 100644 --- a/src/JsonLd/ContextBuilderInterface.php +++ b/src/JsonLd/ContextBuilderInterface.php @@ -23,7 +23,7 @@ */ interface ContextBuilderInterface { - public const HYDRA_CONTEXT = 'http://www.w3.org/ns/hydra/context.jsonld'; + public const HYDRA_CONTEXT = 'https://www.w3.org/ns/hydra/context.jsonld'; public const HYDRA_NS = 'http://www.w3.org/ns/hydra/core#'; public const JSONLD_NS = 'http://www.w3.org/ns/json-ld#'; public const RDF_NS = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'; diff --git a/tests/JsonLd/ContextBuilderTest.php b/tests/JsonLd/ContextBuilderTest.php index 34fe89535f6..e37e6ef7543 100644 --- a/tests/JsonLd/ContextBuilderTest.php +++ b/tests/JsonLd/ContextBuilderTest.php @@ -291,7 +291,7 @@ public function testResourceContextWithoutHydraPrefix(): void $contextBuilder = new ContextBuilder($this->resourceNameCollectionFactoryProphecy->reveal(), $this->resourceMetadataCollectionFactoryProphecy->reveal(), $this->propertyNameCollectionFactoryProphecy->reveal(), $this->propertyMetadataFactoryProphecy->reveal(), $this->urlGeneratorProphecy->reveal(), null, null, [ContextBuilder::HYDRA_CONTEXT_HAS_PREFIX => false]); $expected = [ - 'http://www.w3.org/ns/hydra/context.jsonld', + 'https://www.w3.org/ns/hydra/context.jsonld', [ '@vocab' => '#', 'hydra' => 'http://www.w3.org/ns/hydra/core#',