You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hbeck@COF-L-W010:~$ curl https://w3id.org/edc/v0.0.1/ns/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>303 See Other</title>
</head><body>
<h1>See Other</h1>
<p>The answer to your request is located <a href="https://eclipse-edc.github.io/docs">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at w3id.org Port 443</address>
</body></html>
hbeck@COF-L-W010:~$
See this html-page which is not a json holding the edc namespace definition
Context Information
Some of this EDC namespace is posssibly loaded into the edc already at compile time. However, edc vocabulary should be accessibly to the end user when writing, e.g., edc policies.
When writing, e.g., incorrect contract definitions, an end user is often confronted with error messages (good). However, when trying to follow up on error messages such as
either i) this error points directly to a broken redirect or ii) the end user can not (effectively) assess their mistake because they are confused by the broken redirect.
Detailed Description
Good w3id.org redirect
hbeck@COF-L-W010:~$ curl https://w3id.org/catenax/ontology/common
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://raw.githubusercontent.com/big-data-spaces/ontology/v24.12/ontology/common_ontology.ttl">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at w3id.org Port 443</address>
</body></html>
hbeck@COF-L-W010:~$
hbeck@COF-L-W010:~$ curl -Ls https://w3id.org/catenax/ontology/common | head -n30
# Copyright (c) 2024 T-Systems International GmbH
# Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2024 ZF Friedrichshafen AG
# Copyright (c) 2024 Mercedes-Benz AG
# Copyright (c) 2024 Contributors to the Catena-X Association
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
@prefix : <https://w3id.org/catenax/ontology/common#>.
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix cx-common: <https://w3id.org/catenax/ontology/common#> .
@prefix cx-core: <https://w3id.org/catenax/ontology/core#> .
hbeck@COF-L-W010:~$
Possible Implementation
Work with w3id.org to have a proper redirect.
The text was updated successfully, but these errors were encountered:
I think you are mixing up concepts between "namespace iri" and "referenced context url".
I'd suggest looking into the Json-ld specification for more details https://www.w3.org/TR/json-ld11/#the-context
Bug Report
Describe the Bug
We commonly include edc namespace via w3id.org
Unfortunately, the w3id.org redirect is broken and leads to an html page (instead of some json ld).
Expected Behavior
https://w3id.org/edc/v0.0.1/ns/ redirects to a proper json defining the edc vocabulary
Observed Behavior
https://w3id.org/edc/v0.0.1/ns/ redirects to https://eclipse-edc.github.io/docs, a human-readable html page
Steps to Reproduce
Context Information
Some of this EDC namespace is posssibly loaded into the edc already at compile time. However, edc vocabulary should be accessibly to the end user when writing, e.g., edc policies.
There's a list of shorthands allegedly loaded at compile time for tractus-x edc here: https://github.com/eclipse-tractusx/tractusx-edc/tree/main/core/json-ld-core/src/main/resources/document . However they do not define edc namespace vocab, they simply provide a shorthand
"contractPolicyId": "edc:contractPolicyId"
to not have to prefix frequently used edc vocabulary withedc:
, it appears.When writing, e.g., incorrect contract definitions, an end user is often confronted with error messages (good). However, when trying to follow up on error messages such as
either i) this error points directly to a broken redirect or ii) the end user can not (effectively) assess their mistake because they are confused by the broken redirect.
Detailed Description
Good w3id.org redirect
Possible Implementation
Work with w3id.org to have a proper redirect.
The text was updated successfully, but these errors were encountered: