The DCAT writer (commons 0019-mizan-integrationsFR-018): a catalog of the ontologies a repository publishes, each a dcat:Dataset with the files generated from it as dcat:Distributions (their title, media type and download URL, and the license), as DCAT 3 in canonical Turtle, so that a data portal or a harvester finds the ontology and every form of it without reading the repository.
Written with the kernel's Turtle writer, so the same catalog gives the same bytes. The IRIs of the catalog's entries are made from the catalog's IRI: a dataset <catalog>#dataset-<id> and a distribution <catalog>#distribution-<id>-<file name>. A media type is written as its IANA URI (https://www.iana.org/assignments/media-types/text/turtle) for dcat:mediaType and dcterms:format, as DCAT 3 recommends, and the media type's text is not repeated. The ontology's own IRI and version are the dataset's dcterms:identifier and dcat:version. There is no date, as a date would make the same catalog different by the day.
type DcatCatalogInput = {
readonly iri: string;
readonly title: string;
readonly description?: string;
/** The I…(485 characters)
typeDcatCatalogInput= {
readonlyiri:string;
readonlytitle:string;
readonlydescription?:string;
/** The IRI of the license of the catalog and of what it lists. */readonlylicense:string;
readonlypublisher: { readonlyiri:string; readonlyname:string };
/** The URL a file's path is added to, for its download URL; it ends in `/`. */readonlydownloadBase:string;
readonlydatasets:readonlyDcatDatasetInput[];
readonlycomments?:readonlystring[];
};
A catalog of the ontologies a repository publishes.
typeDcatDatasetInput= {
/** What makes the dataset's IRI (`mizan`). */readonlyid:string;
/** The ontology's IRI. */readonlyontologyIri:string;
readonlyversionInfo?:string;
readonlytitle:string;
readonlydescription?:string;
readonlydistributions:readonlyDcatDistributionInput[];
};
One published ontology and the files generated from it.
type DcatDistributionInput = {
/** The file's path below the download base (`generated/mizan.auto.ttl`). */
readonly…(406 characters)
typeDcatDistributionInput= {
/** The file's path below the download base (`generated/mizan.auto.ttl`). */readonlyfile:string;
readonlytitle:string;
readonlydescription?:string;
/** The IANA media type, `text/turtle`. */readonlymediaType:string;
/** The IRI of a specification the file conforms to (the SHACL recommendation for a shapes file). */readonlyconformsTo?:string;
};
type DcatCatalogInput = {
readonly iri: string;
readonly title: string;
readonly description?: string;
/** The I…(485 characters)
typeDcatCatalogInput= {
readonlyiri:string;
readonlytitle:string;
readonlydescription?:string;
/** The IRI of the license of the catalog and of what it lists. */readonlylicense:string;
readonlypublisher: { readonlyiri:string; readonlyname:string };
/** The URL a file's path is added to, for its download URL; it ends in `/`. */readonlydownloadBase:string;
readonlydatasets:readonlyDcatDatasetInput[];
readonlycomments?:readonlystring[];
};
A catalog of the ontologies a repository publishes.
typeDcatDatasetInput= {
/** What makes the dataset's IRI (`mizan`). */readonlyid:string;
/** The ontology's IRI. */readonlyontologyIri:string;
readonlyversionInfo?:string;
readonlytitle:string;
readonlydescription?:string;
readonlydistributions:readonlyDcatDistributionInput[];
};
One published ontology and the files generated from it.
type DcatDistributionInput = {
/** The file's path below the download base (`generated/mizan.auto.ttl`). */
readonly…(406 characters)
typeDcatDistributionInput= {
/** The file's path below the download base (`generated/mizan.auto.ttl`). */readonlyfile:string;
readonlytitle:string;
readonlydescription?:string;
/** The IANA media type, `text/turtle`. */readonlymediaType:string;
/** The IRI of a specification the file conforms to (the SHACL recommendation for a shapes file). */readonlyconformsTo?:string;
};