@prefix ev:     <https://evidence.so/ns#> .
@prefix schema: <https://schema.org/> .
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:    <http://www.w3.org/2002/07/owl#> .
@prefix skos:   <http://www.w3.org/2004/02/skos/core#> .
@prefix dcat:   <http://www.w3.org/ns/dcat#> .
@prefix dct:    <http://purl.org/dc/terms/> .
@prefix csvw:   <http://www.w3.org/ns/csvw#> .
@prefix prov:   <http://www.w3.org/ns/prov#> .
@prefix adms:   <http://www.w3.org/ns/adms#> .
@prefix qudt:   <http://qudt.org/schema/qudt/> .
@prefix qb:     <http://purl.org/linked-data/cube#> .
@prefix sdmxa:  <http://purl.org/linked-data/sdmx/2009/attribute#> .
@prefix cdi:    <http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/> .
@prefix dqv:    <http://www.w3.org/ns/dqv#> .
@prefix cc:     <http://creativecommons.org/ns#> .

# Alignments: how the native vocabulary (schema.org + ev:) maps onto other standards.
# Nothing in the graph is written with these terms. They are used only to export
# (DCAT for open-data portals, PROV for audits, QUDT for unit conversion, Data Cube for statistics tools).
# Exact matches use owl:equivalent*; approximate ones use skos:closeMatch.

# ---- catalog (DCAT, Dublin Core) ----
schema:Dataset          owl:equivalentClass    dcat:Dataset .
schema:DataCatalog      owl:equivalentClass    dcat:Catalog .
schema:DataDownload     skos:closeMatch        dcat:Distribution .
schema:Service          skos:closeMatch        dcat:DataService .
schema:distribution     owl:equivalentProperty dcat:distribution .
ev:accessService        owl:equivalentProperty dcat:accessService .
schema:contentUrl       owl:equivalentProperty dcat:downloadURL .
schema:url              skos:closeMatch        dcat:endpointURL .
schema:name             skos:closeMatch        dct:title .
schema:description      owl:equivalentProperty dct:description .
schema:publisher        owl:equivalentProperty dct:publisher .
schema:license          owl:equivalentProperty dct:license .
ev:permits              skos:closeMatch        cc:permits .
ev:requires             skos:closeMatch        cc:requires .
ev:prohibits            skos:closeMatch        cc:prohibits .
schema:temporalCoverage skos:closeMatch        dct:temporal .   # a literal, not a dct:PeriodOfTime
schema:spatialCoverage  owl:equivalentProperty dct:spatial .
schema:dateModified     owl:equivalentProperty dct:modified .
schema:isBasedOn        skos:closeMatch        prov:wasDerivedFrom .

# ---- columns (CSVW) ----
ev:Column    skos:closeMatch        csvw:Column .   # a logical column; csvw's belongs to one file
ev:hasColumn skos:closeMatch        csvw:column .   # CSVW goes through csvw:tableSchema
ev:tableName skos:closeMatch        csvw:url .

# ---- statistics (RDF Data Cube, SDMX, DDI-CDI) ----
<https://evidence.so/ns#role/dimension> skos:closeMatch qb:DimensionProperty, cdi:DimensionComponent .
<https://evidence.so/ns#role/measure>   skos:closeMatch qb:MeasureProperty, cdi:MeasureComponent .
<https://evidence.so/ns#role/attribute> skos:closeMatch qb:AttributeProperty, cdi:AttributeComponent .
schema:StatisticalVariable skos:closeMatch qb:MeasureProperty .
ev:unitMultiplier   skos:closeMatch sdmxa:unitMult .   # SDMX codes the multiplier
ev:measureDimension skos:closeMatch qb:measureType .

# ---- code lists and identifiers (SKOS, ADMS) ----
ev:Scheme                skos:closeMatch        skos:ConceptScheme, adms:Identifier .
schema:DefinedTermSet    skos:closeMatch        skos:ConceptScheme .
schema:DefinedTerm       skos:closeMatch        skos:Concept .
schema:inDefinedTermSet  owl:equivalentProperty skos:inScheme .
schema:termCode          owl:equivalentProperty skos:notation .
schema:PropertyValue     skos:closeMatch        adms:Identifier .
schema:comment           skos:closeMatch        skos:historyNote .
ev:broader               owl:equivalentProperty skos:broader .

# ---- units (QUDT) ----
ev:QuantityKind owl:equivalentClass    qudt:QuantityKind .
ev:Unit         owl:equivalentClass    qudt:Unit .
ev:toBase       skos:closeMatch        qudt:conversionMultiplier .   # to the kind's base unit, not the SI one
ev:quantityKind owl:equivalentProperty qudt:hasQuantityKind .

# ---- provenance (PROV) ----
schema:Action          rdfs:subClassOf        prov:Activity .
schema:SoftwareApplication skos:closeMatch    prov:SoftwareAgent .
schema:agent           skos:closeMatch        prov:wasAssociatedWith .
schema:startTime       skos:closeMatch        prov:startedAtTime .

# ---- quality (DQV) ----
ev:maturity    skos:closeMatch dqv:hasQualityMeasurement .   # a measurement of the maturity metric, its dqv:value the level
