axone-protocol / ontology

📙 The Axone Ontology
https://docs.axone.xyz/technical-documentation/ontology/the-power-of-ontologies
Creative Commons Attribution Share Alike 4.0 International
12 stars 0 forks source link

Build failures for examples during release #291

Closed ccamel closed 2 months ago

ccamel commented 2 months ago

Issue

The build process for examples fails during the release. This issue is caused by the resolution of Axone URIs that have not yet been published and are therefore unavailable.

🔨 building example target/ontology/v4/example/zone/collab-ai-zone-description.jsonld
🔨 building example target/ontology/v4/example/dataset/crime-dataset-description.nq
FATAL Failed to parse input document: loading remote context failed: https://w3id.org/axone/ontology/v4/schema/credential/dataset/description/: loading document failed: <https://ontology.axone.xyz/v4/schema/dataset/credential-dataset-description.jsonld>: Not Found(404): Called from /usr/local/bundle/gems/json-ld-3.3.0/lib/json/ld/reader.rb:107
/usr/local/bundle/gems/rdf-3.3.1/lib/rdf/util/logger.rb:66:in `log_fatal': Failed to parse input document: loading remote context failed: https://w3id.org/axone/ontology/v4/schema/credential/dataset/description/: loading document failed: <https://ontology.axone.xyz/v4/schema/dataset/credential-dataset-description.jsonld>: Not Found(404) (RDF::ReaderError)

Suggestion

Improve the JSON-LD to N-Quads conversion mechanism by relying on a document loader that resolves Axone URIs locally while fetching other URIs remotely.