OBA Core 0.1

OrionBelt Analytics Ontology

OBA is an RDF-based annotation vocabulary for physical database schema metadata. It annotates OWL ontologies generated from database introspection with SQL-level information needed for Text-to-SQL generation, quality validation, and graph-based schema discovery.

OBA describes the physical layer (tables, columns, foreign keys). For business-level concepts (dimensions, measures, metrics), see OBSL.

Namespace

@prefix oba: <https://ralforion.com/ns/oba#> .

Downloads

FileDescription
oba.ttlOWL ontology (Turtle)
oba-shacl.ttlSHACL validation shapes
oba-example.ttlExample: E-commerce schema
spec.mdSpecification document

Properties

Table annotations (on owl:Class)

PropertyRangeDescription
oba:tableNamexsd:stringSQL table name
oba:schemaNamexsd:stringDatabase schema
oba:databasexsd:stringDatabase/catalog name
oba:primaryKeyxsd:stringPK column name (repeating)
oba:rowCountxsd:integerApproximate row count

Column annotations (on owl:DatatypeProperty)

PropertyRangeDescription
oba:columnNamexsd:stringSQL column name
oba:tableNamexsd:stringOwning table name
oba:sqlDataTypexsd:stringRaw SQL type
oba:sqlReferencexsd:stringtable.column reference
oba:isPrimaryKeyxsd:booleanPrimary key member
oba:isForeignKeyxsd:booleanForeign key
oba:isNullablexsd:booleanAllows NULL

Relationship annotations (on owl:ObjectProperty)

PropertyRangeDescription
oba:foreignKeyColumnxsd:stringFK column in source table
oba:referencedTablexsd:stringTarget table
oba:referencedColumnxsd:stringTarget column
oba:sqlJoinConditionxsd:stringSQL JOIN ON clause
oba:relationshipTypexsd:stringmany_to_one / one_to_many

Inference annotations (inferred relationships only)

PropertyRangeDescription
oba:isInferredRelationshipxsd:booleanInferred from naming patterns
oba:inferenceConfidencexsd:stringhigh / medium / low
oba:inferencePatternxsd:stringPattern that triggered inference

Semantic enrichment (LLM-applied)

PropertyRangeDescription
oba:semanticNamexsd:stringBusiness-friendly name
oba:tableTypexsd:stringfact / dimension / lookup
oba:usageNotesxsd:stringUsage guidance
oba:dataCharacteristicsxsd:stringValue patterns
oba:businessRulesxsd:stringBusiness rules (column)
oba:relationshipDescriptionxsd:stringRelationship description
oba:cardinalityxsd:stringLLM-assigned cardinality
oba:businessRulexsd:stringBusiness rule (relationship)

Companion Vocabularies

OBSL — OrionBelt Semantic Layer vocabulary (business-level: dimensions, measures, metrics)

Links

GitHub


© RALFORION d.o.o. · OBA-Core 0.1