Skip to content

Add SULO ontology to registry#105

Merged
cmungall merged 1 commit intomainfrom
add-sulo-registry
Feb 28, 2026
Merged

Add SULO ontology to registry#105
cmungall merged 1 commit intomainfrom
add-sulo-registry

Conversation

@cmungall
Copy link
Collaborator

@cmungall cmungall commented Feb 28, 2026

Summary

  • Add sulo to src/semsql/builder/registry/ontologies.yaml
    • url: https://w3id.org/sulo/sulo.ttl
    • format: turtle
    • prefixmap: sulo -> https://w3id.org/sulo/
  • Regenerate derived files updated by registry compilation:
    • ontologies.Makefile
    • src/semsql/builder/prefixes/prefixes_local.csv
    • src/semsql/builder/prefixes/prefixes.csv

Validation

  • uv run semsql generate-makefile -P src/semsql/builder/prefixes/prefixes_local.csv src/semsql/builder/registry/ontologies.yaml
  • uv run python check for get_postprocessing_steps('sulo', 'db/sulo.db')
  • Verified generated makefile includes download/sulo.owl and sulo in EXTRA_ONTOLOGIES

Copilot AI review requested due to automatic review settings February 28, 2026 00:42
@claude
Copy link

claude bot commented Feb 28, 2026

Claude finished @cmungall's task —— View job


PR Review: Add SULO ontology to registry

I've completed a thorough review of this PR. The changes look excellent and follow all expected patterns for adding a new ontology to the semantic-sql registry.

Todo List:

  • Read and analyze the changed files
  • Review the SULO ontology registry entry
  • Check regenerated files for consistency
  • Assess code quality and best practices
  • Evaluate potential bugs or issues
  • Consider performance implications
  • Check security concerns
  • Review test coverage
  • Provide comprehensive feedback

✅ Code Quality & Best Practices

Registry Entry (ontologies.yaml:767-772):

  • ✅ Follows established patterns for ontology entries
  • ✅ Proper YAML structure with required fields (url, format, prefixmap)
  • ✅ Uses descriptive comment explaining the ontology
  • ✅ Consistent indentation and formatting

Regenerated Files:

  • ontologies.Makefile correctly includes SULO download/build rules
  • prefixes_local.csv and prefixes.csv properly updated with sulo,https://w3id.org/sulo/
  • ✅ SULO appears in EXTRA_ONTOLOGIES list as expected

✅ Technical Correctness

URL & Format:

  • ✅ Uses official w3id.org URI (https://w3id.org/sulo/sulo.ttl)
  • ✅ Correct format specification (turtle)
  • ✅ Prefix mapping follows convention (sulo: https://w3id.org/sulo/)

Build Configuration:

  • ✅ Uses default robot merge build command (no complex preprocessing needed)
  • ✅ Generated Makefile entries follow expected patterns
  • ✅ No custom post-processing required

✅ Security & Performance

Security:

  • ✅ Uses official w3id.org domain (trusted source)
  • ✅ HTTPS URL ensures secure download
  • ✅ No custom build commands that could introduce vulnerabilities

Performance:

  • ✅ Turtle format is efficient for parsing
  • ✅ No compression specified, appropriate for file size
  • ✅ Standard build process without performance concerns

✅ Validation & Testing

The author performed proper validation:

  • ✅ Ran semsql generate-makefile to regenerate derived files
  • ✅ Verified makefile includes correct targets
  • ✅ Checked postprocessing steps function

Recommendations for further testing (not blocking):

# Test the actual build process
make db/sulo.db

# Verify with OAK
runoak -i db/sulo.db terms

📋 Minor Observations

  1. Consistent with Registry Patterns: The entry perfectly matches the structure of other entries (e.g., similar to brick, kgcl, comet)

  2. Proper Alphabetical Placement: Added at the end of the file, which is consistent with the project's approach

  3. Complete Prefix Coverage: All necessary prefixes are properly mapped

🎯 Summary

This is a well-executed PR that correctly adds SULO to the ontology registry. The changes are:

  • Complete: All required files updated
  • Consistent: Follows established patterns
  • Correct: Proper formatting and structure
  • Safe: No security or performance concerns

Recommendation: ✅ APPROVE - This PR is ready to merge.


Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the SULO (Simplified Upper Level Ontology) entry to the Semantic-SQL non-OBO ontology registry and regenerates the derived prefix mappings and ontology build makefile so SULO can be downloaded and built like existing registered ontologies.

Changes:

  • Register sulo in ontologies.yaml with Turtle format and a sulo prefix mapping.
  • Regenerate prefix mapping CSVs to include the sulo prefix.
  • Regenerate ontologies.Makefile to add SULO download/build rules and include it in EXTRA_ONTOLOGIES.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/semsql/builder/registry/ontologies.yaml Adds the sulo ontology definition (URL, format, prefixmap).
src/semsql/builder/prefixes/prefixes_local.csv Adds sulo to the locally-generated prefix list.
src/semsql/builder/prefixes/prefixes.csv Adds sulo to the generated global prefix list.
ontologies.Makefile Adds SULO download/build targets and appends sulo to EXTRA_ONTOLOGIES.

@cmungall cmungall merged commit b230b4a into main Feb 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants