Movie Awards Ontology (MAO)
Name | Student ID | GitHub |
---|---|---|
Nutthanich Narphromar | 6110545490 | NutthanichN |
Tetach Rattanavikran | 6110545554 | theethaj |
Mai Norapong | 6110545619 | MaiMee1 |
Wijantra Cojamnong | 6110545627 | Wijantra |
Tharathorn Bunrattanasathian | 6110546011 | th-bunratta |
Natthaphon Rakprakobkij | 6110546402 | mark47546 |
MAO's CQs: the competency questions of Movie Awards Ontology (MAO)
Documentation: the documentation about MAO ontology
Running: Python 3.6+
Testing: Python 3.8+
-
sa-autowrite
for
sqlalchemy
model autogeneration from raw CSV files -
for converting
.yaml
specs to RDF.owl
Install requirements
pip install -U setuptools wheel
pip install -r requirements.txt
Generate .owl from .yaml specs.
from dirs import ROOT_DIR
from ontogen import Ontology
from ontogen.converter import OntogenConverter
# Load ontology from YAML specs
converter = OntogenConverter.load_from_spec(ROOT_DIR / "mao.yaml")
# Save the results to an in-memory Ontology
onto: Ontology = converter.sync_with_ontology()
# Save the results to an RDF/XML file Ontology. Can be 'xml' or 'ttl'
onto.save_to_file(ROOT_DIR / "mao.owl")
Make Django migrations
python mao_dj/manage.py makemnigrations
Migrate Django models
python mao_dj/manage.py migrate