{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://zenith-research.ca/ontology/zenith/library/v1/graph.schema.json","title":"Zenith hosted ontology library graph v1","type":"object","additionalProperties":false,"properties":{"@context":{"const":"https://zenith-research.ca/ontology/zenith/library/v1/context.jsonld"},"@id":{"type":"string","maxLength":4096},"@type":{"const":"https://zenith-research.ca/ontology/zenith/library/v1/terms/LibrarySelection"},"schemaVersion":{"const":"zenith.ontology-library-graph.v1"},"hostingState":{"const":"published"},"semanticAcceptance":{"const":"not-asserted"},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","maxLength":4096},"label":{"type":"string","maxLength":4096},"owner":{"type":"string","maxLength":4096},"ontologyId":{"type":"string","maxLength":4096},"version":{"type":"string","maxLength":4096},"maturity":{"type":"string","maxLength":4096},"hostingState":{"const":"hosted"},"selectionRole":{"enum":["package-selection","retained-context","library-profile"]},"href":{"type":"string","maxLength":4096},"artifactHref":{"type":"string","maxLength":4096},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"dependencies":{"type":"array","items":{"type":"string","maxLength":4096},"maxItems":128},"artifacts":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["url","sha256","bytes","mediaType"],"properties":{"url":{"type":"string","pattern":"^https://zenith-research\\.ca/"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"bytes":{"type":"integer","minimum":0,"maximum":16777216},"mediaType":{"enum":["application/json","application/ld+json","text/markdown","text/plain"]}}},"maxItems":512}},"required":["id","label","owner","ontologyId","version","maturity","hostingState","selectionRole","href","artifactHref","sha256","dependencies","artifacts"]},"maxItems":128},"@graph":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"@id":{"type":"string","maxLength":4096},"@type":{"type":"string","maxLength":4096},"key":{"type":"string","maxLength":4096},"identity":{"type":"string","maxLength":4096},"label":{"type":"string","maxLength":4096},"kind":{"type":"string","maxLength":4096},"category":{"enum":["definition","organization","product","ontology","release","classification","library"]},"owner":{"type":"string","maxLength":4096},"domains":{"type":"array","items":{"type":"string","maxLength":4096},"maxItems":32},"status":{"type":"string","maxLength":4096},"hostingState":{"const":"hosted"},"sourceId":{"type":"string","maxLength":4096},"description":{"type":"string","maxLength":4096},"classificationBasis":{"type":"string","maxLength":4096},"fields":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":4096},"type":{"type":"string","maxLength":4096},"required":{"type":["boolean","null"]}},"required":["name","type","required"]},"maxItems":512},"artifact":{"type":"object","additionalProperties":false,"required":["url","sha256","bytes","mediaType"],"properties":{"url":{"type":"string","pattern":"^https://zenith-research\\.ca/"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"bytes":{"type":"integer","minimum":0,"maximum":16777216},"mediaType":{"enum":["application/json","application/ld+json","text/markdown","text/plain"]}}},"pointer":{"type":"string","maxLength":4096},"detailHref":{"type":"string","maxLength":4096},"evidenceOnly":{"type":"boolean"},"revisionId":{"type":"string","maxLength":4096},"profileId":{"type":"string","maxLength":4096},"schemaBindings":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"artifact":{"type":"object","additionalProperties":false,"required":["url","sha256","bytes","mediaType"],"properties":{"url":{"type":"string","pattern":"^https://zenith-research\\.ca/"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"bytes":{"type":"integer","minimum":0,"maximum":16777216},"mediaType":{"enum":["application/json","application/ld+json","text/markdown","text/plain"]}}},"pointer":{"type":"string","maxLength":4096},"dialect":{"type":"string","maxLength":4096},"qualification":{"enum":["inspection-only","review-wrapper"]}},"required":["artifact","pointer","dialect","qualification"]},"maxItems":32}},"required":["@id","@type","key","identity","label","kind","category","owner","domains","status","hostingState","sourceId","description","classificationBasis","fields","artifact","pointer","detailHref","evidenceOnly","schemaBindings"]},"maxItems":10000},"assertions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"@id":{"type":"string","maxLength":4096},"@type":{"const":"https://zenith-research.ca/ontology/zenith/library/v1/terms/GraphAssertion"},"subject":{"type":"string","maxLength":4096},"predicate":{"enum":["https://zenith-research.ca/ontology/zenith/library/v1/terms/includes","https://zenith-research.ca/ontology/zenith/library/v1/terms/hasOntology","https://zenith-research.ca/ontology/zenith/library/v1/terms/selectsRelease","https://zenith-research.ca/ontology/zenith/library/v1/terms/hasRelease","https://zenith-research.ca/ontology/zenith/library/v1/terms/defines","https://zenith-research.ca/ontology/zenith/library/v1/terms/imports","https://zenith-research.ca/ontology/zenith/library/v1/terms/classifiedAs","https://zenith-research.ca/ontology/zenith/library/v1/terms/hasClassification","https://zenith-research.ca/ontology/zenith/library/v1/terms/declaredParent","https://zenith-research.ca/ontology/zenith/library/v1/terms/references","https://zenith-research.ca/ontology/zenith/library/v1/terms/candidateReference"]},"object":{"type":"string","maxLength":4096},"label":{"type":"string","maxLength":4096},"kind":{"enum":["membership","ontology association","release membership","definition membership","imports","classification","inheritance","reference","candidate reference"]},"assertionStatus":{"enum":["library-selection","source-declared","proposed","candidate"]},"evidence":{"type":"object","additionalProperties":false,"properties":{"artifact":{"type":"object","additionalProperties":false,"required":["url","sha256","bytes","mediaType"],"properties":{"url":{"type":"string","pattern":"^https://zenith-research\\.ca/"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"bytes":{"type":"integer","minimum":0,"maximum":16777216},"mediaType":{"enum":["application/json","application/ld+json","text/markdown","text/plain"]}}},"pointer":{"type":"string","maxLength":4096}},"required":["artifact","pointer"]},"associationRole":{"enum":["product-specific-vocabulary","dependency","reference"]}},"required":["@id","@type","subject","predicate","object","label","kind","assertionStatus","evidence"]},"maxItems":20000},"unresolved":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"source":{"type":"string","maxLength":4096},"target":{"type":"string","maxLength":4096},"label":{"type":"string","maxLength":4096},"reason":{"type":"string","maxLength":4096},"evidence":{"type":"object","additionalProperties":false,"properties":{"artifact":{"type":"object","additionalProperties":false,"required":["url","sha256","bytes","mediaType"],"properties":{"url":{"type":"string","pattern":"^https://zenith-research\\.ca/"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"bytes":{"type":"integer","minimum":0,"maximum":16777216},"mediaType":{"enum":["application/json","application/ld+json","text/markdown","text/plain"]}}},"pointer":{"type":"string","maxLength":4096}},"required":["artifact","pointer"]}},"required":["source","target","label","reason","evidence"]},"maxItems":10000}},"required":["@context","@id","@type","schemaVersion","hostingState","semanticAcceptance","sources","@graph","assertions","unresolved"]}
