glam/QUICK_STATUS_MAIN_SCHEMA_RDF_20251124.md
2025-11-25 12:48:07 +01:00

2.2 KiB

Quick Status: Main Schema RDF Generation - COMPLETE

Date: 2025-11-24 00:21:22
Achievement: Main LinkML schema now generates complete RDF in 8 formats


What Was Fixed

Problem: Missing slot definitions in class modules caused RDF generation to fail

Solution: Added top-level slots: sections to 4 class modules:

  1. CustodianCollection.yaml - 3 slots (access_rights, digital_surrogates, custody_history)
  2. CustodianType.yaml - 11 slots (type_id, primary_type, wikidata_entity, etc.)
  3. FeaturePlace.yaml - 11 slots (feature_type, feature_name, etc.)
  4. CustodianPlace.yaml - 14 slots (place_name, has_feature_type, etc.)

RDF Files Generated

Timestamp: 20251124_002122
Location: schemas/20251121/rdf/

Format Size Lines
OWL/Turtle 837 KB 13,747
N-Triples 2.0 MB 13,416
JSON-LD 1.7 MB 61,615
RDF/XML 1.4 MB 20,252
N3 837 KB 13,746
TriG 1.0 MB 17,771
TriX 3.0 MB 68,962
N-Quads 2.5 MB 13,415
TOTAL 14 MB 222,924

Verification

EncompassingBody classes present in generated RDF:

  • UmbrellaOrganisation
  • NetworkOrganisation
  • Consortium

All 8 RDF formats valid and loadable


Command to Regenerate

TIMESTAMP=$(date +%Y%m%d_%H%M%S)

# Generate OWL/Turtle
gen-owl -f ttl schemas/20251121/linkml/01_custodian_name_modular.yaml 2>/dev/null \
  > schemas/20251121/rdf/01_custodian_name_modular_${TIMESTAMP}.owl.ttl

# Convert to other formats
for format in nt json-ld xml n3 trig trix nquads; do
  ext=$(echo $format | sed 's/json-ld/jsonld/' | sed 's/xml/rdf/')
  rdfpipe schemas/20251121/rdf/01_custodian_name_modular_${TIMESTAMP}.owl.ttl \
    -o $format > schemas/20251121/rdf/01_custodian_name_modular_${TIMESTAMP}.$ext
done

Session Summary

EncompassingBody Integration: DONE (previous session)
Main Schema RDF Generation: DONE (this session)

Total Achievement:

  • 10 new files (EncompassingBody module + 9 examples)
  • 4 class modules fixed (slot definitions)
  • 8 RDF formats generated (14 MB)
  • 2 subregion/settlement slot files fixed

All tasks complete! 🎉