Skip to content
6 changes: 6 additions & 0 deletions data/mappings/d4d_rocrate_structural_mapping.sssom.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,9 @@ d4d:DataSubset/id id DataSubset skos:closeMatch d4d:dataAnomalies d4d:dataAnomal
d4d:DataSubset/name name DataSubset skos:closeMatch d4d:dataAnomalies d4d:dataAnomalies semapv:StructuralMapping 0.7 d4d:data_sheets_schema rocrate:fairscape string False str True anomalies.name Composition path: anomalies.name
d4d:DataSubset/description description DataSubset skos:closeMatch d4d:dataAnomalies d4d:dataAnomalies semapv:StructuralMapping 0.7 d4d:data_sheets_schema rocrate:fairscape string False str True anomalies.description Composition path: anomalies.description
d4d:DataSubset/used_software used_software DataSubset skos:closeMatch d4d:dataAnomalies d4d:dataAnomalies semapv:StructuralMapping 0.7 d4d:data_sheets_schema rocrate:fairscape string False str True anomalies.used_software Composition path: anomalies.used_software
d4d:DatasetCollection/resources resources DatasetCollection skos:exactMatch schema:hasPart hasPart semapv:StructuralMapping 1.0 d4d:data_sheets_schema rocrate:fairscape Dataset True list True slot_uri mapping: schema:hasPart; resources contain nested Dataset entities
d4d:File/file_type file_type File skos:exactMatch d4d:fileType fileType semapv:StructuralMapping 1.0 d4d:data_sheets_schema rocrate:fairscape FileTypeEnum False str True slot_uri mapping: d4d:fileType
d4d:FileCollection/resources resources FileCollection skos:exactMatch schema:hasPart hasPart semapv:StructuralMapping 1.0 d4d:data_sheets_schema rocrate:fairscape File or FileCollection True list True Multivalued union; maps to hasPart of nested Dataset entities
d4d:FileCollection/collection_type collection_type FileCollection skos:exactMatch d4d:collectionType collectionType semapv:StructuralMapping 1.0 d4d:data_sheets_schema rocrate:fairscape FileCollectionTypeEnum True list True slot_uri mapping: d4d:collectionType
d4d:FileCollection/file_count file_count FileCollection skos:exactMatch d4d:fileCount fileCount semapv:StructuralMapping 1.0 d4d:data_sheets_schema rocrate:fairscape integer False int True slot_uri mapping: d4d:fileCount
d4d:FileCollection/total_bytes total_bytes FileCollection skos:exactMatch dcat:byteSize byteSize semapv:StructuralMapping 1.0 d4d:data_sheets_schema rocrate:fairscape integer False int True exact_mappings: dcat:byteSize
21 changes: 21 additions & 0 deletions src/data_sheets_schema/alignment/d4d_rocrate_skos_alignment.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@prefix schema: <https://schema.org/> .
@prefix rai: <http://mlcommons.org/croissant/RAI/> .
@prefix evi: <https://w3id.org/EVI#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand All @@ -27,6 +28,26 @@
# ==============================================================================
d4d:Dataset skos:exactMatch schema:Dataset .

# Added 2026-04-25 — RO-Crate root + supporting classes
# DatasetCollection: tree_root in d4d schema → projects to RO-Crate root
# (@type=["Dataset", "https://w3id.org/EVI#ROCrate"], @id="./")
d4d:DatasetCollection skos:exactMatch schema:Dataset .
d4d:DatasetCollection skos:closeMatch dcat:Catalog .
# File: matches schema:MediaObject in D4D_FileCollection.yaml class_uri
d4d:File skos:exactMatch schema:MediaObject .
d4d:File skos:closeMatch schema:DigitalDocument .
# FileCollection: nested Dataset in RO-Crate hasPart
d4d:FileCollection skos:exactMatch schema:Dataset .
d4d:FileCollection skos:closeMatch dcat:Distribution .

# Class-level slot mappings (added 2026-04-25)
d4d:DatasetCollection_resources skos:exactMatch schema:hasPart .
d4d:File_file_type skos:exactMatch d4d:fileType .
d4d:FileCollection_resources skos:exactMatch schema:hasPart .
d4d:FileCollection_collection_type skos:exactMatch d4d:collectionType .
d4d:FileCollection_file_count skos:exactMatch d4d:fileCount .
d4d:FileCollection_total_bytes skos:exactMatch dcat:byteSize .

# Direct/Exact Mappings (52 properties)
# ==============================================================================
# These properties map directly without transformation
Expand Down
Loading
Loading