dprod icon indicating copy to clipboard operation
dprod copied to clipboard

DPROD artifacts fail to resolve at their OMG NS URLs. Return 404

Open adplincinst opened this issue 3 months ago • 8 comments

When processing json-ld document, the context object url returns 404

curl https://www.omg.org/spec/DPROD/dprod-context.jsonld {"timestamp":"2026-08-11T23:13:59.588+00:00","status":404,"error":"Not Found","path":"/spec/DPROD/dprod-context.jsonld"}(.venv)

adplincinst avatar Aug 11 '26 23:08 adplincinst

for additional context, the url https://www.omg.org/spec/DPROD/dprod-context.jsonld is referenced here in the @context

https://github.com/EKGF/dprod/blob/develop/examples/dprod-example.json

adplincinst avatar Aug 17 '26 20:08 adplincinst

@adplincinst — confirmed, and thank you for the follow-up pinpointing examples/dprod-example.json as the referrer.

This 404 is one of two independent defects standing between that example and a working expansion. Even once the URL resolves, the artifact it will serve is currently a bare prefix map: no id/type aliases, no term definitions for DataProduct, outputPort, title, conformsTo and the rest, and no "@type": "@id" coercions. Expanding the example against it would yield essentially the empty graph rather than an error, which is arguably a worse failure mode than the 404 you are seeing now.

That second defect is filed as #246. This issue remains the publication half and is a blocker for it — fixing the context contents without deploying it to the OMG URL leaves you exactly where you are.

For local work in the meantime, the context is generated into dist/dprod-context.jsonld by bash build.sh, though with the caveat above about its contents.

jgeluk avatar Aug 21 '26 10:08 jgeluk

Still reproducing, and it is broader than the context file. Three DPROD artifacts fail to resolve at their OMG URLs today:

https://www.omg.org/spec/DPROD/dprod-context.jsonld   404
https://www.omg.org/spec/DPROD/dprod/                 404   <- the vocabulary namespace IRI
https://www.omg.org/spec/DPROD/dprod.ttl              404

The second is the most serious: https://www.omg.org/spec/DPROD/dprod/ is the namespace IRI for every DPROD term. A namespace that does not dereference is a defect in a linked-data standard independent of any tooling, and it is what rdfs:isDefinedBy points at throughout the ontology.

Nothing merged recently closes this, and none of it could have. This is a hosting gap — the artifacts are not published at those URLs — while the recent work concerned what the artifacts contain and which URLs the specification links to:

  • #246 / PR #248 fixed the contents of the context. It had been a bare prefix map that defined no terms, so even once this 404 is resolved the old file would not have expanded the examples. That is now correct and is generated into dist/dprod-context.jsonld.
  • #255 / PR #256 stopped the specification linking to URLs that 404, including .../DPROD/dprod.ttl and the namespace IRI. It routes around the problem; it cannot fix it.

So the examples in this repository still carry "@context": "https://www.omg.org/spec/DPROD/dprod-context.jsonld" and still fail for any external consumer, exactly as reported. The content is ready; the publication is not.

What resolving this requires

The generated artifacts need to be published at their OMG URLs, ideally with content negotiation on the namespace IRI. They are produced by bash build.sh into dist/ and are already served from our own site, which is a useful check that the files themselves are fine:

https://ekgf.org/dprod/spec/develop/dprod-context.jsonld   200
https://ekgf.org/dprod/spec/develop/dprod.ttl              200

This is an OMG-side action rather than a code change, so it needs to be raised with OMG directly.

Retitling would be reasonable — the issue now covers three artifacts, not just the context.

jgeluk avatar Aug 21 '26 13:08 jgeluk

Thanks @jgeluk for following up. Looking forward to dereferenceable URLs referenced in examples/docs.

adplincinst avatar Aug 21 '26 15:08 adplincinst

Any updates on this? The namespace for DPROD vocab terms ( https://www.omg.org/spec/DPROD/dprod/ ) still returns 404. I would just like to know if the namespace is going to be dereferencable in the future with content-negotiable rdf representations or do users need to specify alternative URIs if they choose to dereference/import this vocabulary based on download links found in https://ekgf.org/dprod/spec/develop/ ?

adplincinst avatar Sep 11 '26 00:09 adplincinst

Decision (Sept 2026): until the OMG URLs serve the artifacts, the DPROD namespace IRI is the URL that actually resolves, https://ekgf.org/dprod/spec/develop/. The IRI and the URL need to match, and today only the ekgf.org develop deployment serves the spec, the ontology and shapes in Turtle/JSON-LD/RDF-XML, and dprod-context.jsonld (as application/ld+json with open CORS; verified by expanding every example against the live context).

What moved, in tonyseale/dprod@36f2f4a on issue/258-spec-contracts (lands with the #258 PR):

  • the vocabulary namespace (this also reverses the .../DPROD/dprod/ move from #204/#205, in 6c43e87)
  • the .../shapes/, .../contracts/shapes/ and .../data/ namespaces
  • the ODRL profile IRI, which makes #210 moot for now
  • both owl:versionIRI values
  • every example @context, the spec document and the adopt page (f3e69ad)

Kept on OMG: the ReSpec latestVersion link to the catalogue entry, and the archived 1.0 snapshot.

Still open: term IRIs such as .../develop/DataProduct and the shapes/ and data/ sub-paths return 404 on ekgf.org, just as they did on OMG, so dereferencing terms needs routing on the site. And when OMG does host the artifacts, or develop is promoted to main, the namespace should move again in one commit via spec-generator/globals.py plus the @prefix lines.

tonyseale avatar Sep 24 '26 16:09 tonyseale

Status check, 2026-10-13 (curl, with Accept set to text/turtle, application/ld+json and text/html):

Still 404

  • The namespace IRIs used on main: https://www.omg.org/spec/DPROD/dprod/, …/dprod/DataProduct, …/shapes/
  • https://www.omg.org/spec/DPROD/dprod-context.jsonld (the original report)
  • The version IRIs https://www.omg.org/spec/DPROD/2026-06-01/ and …/2026-06-01/shapes/
  • Bare-namespace terms such as https://www.omg.org/spec/DPROD/DataProduct

No content negotiation: the only DPROD resources that answer are the HTML landing pages (/spec/DPROD/, /About-DPROD/).

Now published (1.0 Beta2), linked from https://www.omg.org/spec/DPROD/machine-readable:

  • https://www.omg.org/spec/DPROD/20260601/dprod-ontology.ttl
  • https://www.omg.org/spec/DPROD/20260601/dprod-shapes.ttl

Namespace mismatch. These Beta2 files declare @prefix dprod: <https://www.omg.org/spec/DPROD/> (the namespace from before #204), with owl:versionIRI <https://www.omg.org/spec/DPROD/2026-06-01/>. main uses https://www.omg.org/spec/DPROD/dprod/ (#204/#236). So OMG's published files and the accepted branch name the same terms with different IRIs, and neither form resolves to a term.

What we need from OMG before the namespace move (step 10 of #275):

  1. Agreement on the canonical namespace: https://www.omg.org/spec/DPROD/ or https://www.omg.org/spec/DPROD/dprod/.
  2. Hosting that resolves the namespace, term, shapes and version IRIs, ideally with content negotiation (Turtle and JSON-LD), plus dprod-context.jsonld and dprod-simple.jsonld for use as a remote @context.

Until then, develop stays on https://ekgf.org/dprod/spec/develop/, and the move remains the last step of #275.

matthiasautrata avatar Oct 13 '26 20:10 matthiasautrata

I dug into this and as far as I can see the only artifact we've created in git, and submitted to OMG is the TTL. We need to actually generate the JSNO-LD and RDF-XML! Can we include this as part of the build @jgeluk ?

rivettp avatar Oct 30 '26 13:10 rivettp