Skip to content

Auto-generate ontology view from OWL/RDFS triples #50

@paolino

Description

@paolino

Problem

When a knowledge map includes a domain ontology (e.g. cardano.ttl with owl:Class, owl:ObjectProperty, rdfs:subClassOf), there is no way to browse the ontology structure in the graph-browser UI. The class hierarchy and property relationships are invisible — only the instance-level graph is rendered.

Currently the only workaround is to manually duplicate ontology classes as gb:Node entries, which drifts from the ontology source of truth.

Proposed solution

When graph-browser detects ontology triples in the loaded RDF, auto-generate a browsable view:

  • owl:Class → node (styled by depth in hierarchy)
  • rdfs:subClassOf → edge
  • owl:ObjectProperty → edge between rdfs:domain and rdfs:range classes
  • owl:equivalentClass / owl:equivalentProperty → alignment edges

This should work generically for any OWL/RDFS ontology, not just Cardano-specific.

Context

  • cardano-knowledge-maps PR chore(main): release 1.0.0 #22 adds a full domain ontology (cardano.ttl) grounded in W3C vocabularies
  • The ontology defines ~40 classes, ~30 properties, alignment mappings to gb: vocabulary
  • None of this is visible in the browser — only the gb: instance graph renders

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions