Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Mooothssi/MovieAwardOntologyMAO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAO Project

Movie Awards Ontology (MAO)

Team Members

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

Submission

MAO's CQs: the competency questions of Movie Awards Ontology (MAO)

Documentation: the documentation about MAO ontology

Requirements

Running: Python 3.6+
Testing: Python 3.8+

Modules

  • sa-autowrite

    for sqlalchemy model autogeneration from raw CSV files

  • ontogen

    for converting .yaml specs to RDF .owl

Getting Started

Install requirements

pip install -U setuptools wheel
pip install -r requirements.txt

Basic Generation

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")

Populate Data

Make Django migrations

python mao_dj/manage.py makemnigrations

Migrate Django models

python mao_dj/manage.py migrate

Releases

No releases published

Packages

No packages published

Languages