Fonctions à proposer par la librairie tenet
Prévoir les fonctions élémentaires fournies par la librairie tenet :
create_ontology_from_amrld_file(amrld_file_path, base_ontology_path=None, onto_prefix=None, out_file_path=None, technical_dir_path=None):
"""
INPUT:
amrld_file_path is a path to an AMR-LD Turtle File,
base_ontology_path is a path to a Base Ontology Turtle File if defined,
onto_prefix is the target ontology prefix if defined (if not defined a prefix based on the amrld filename is used)
out_file_path is a file path where the output ontology is written if defined (the function still outputs the string)
technical_dir_path is a dir path where some technical and log files are written if defined
OUTPUT: Ontology Turtle String
"""
create_ontology_from_amrld_dir(amrld_dir_path, base_ontology_path=None, onto_prefix=None, out_file_path=None, technical_dir_path=None):
"""
INPUT:
amrld_file_path is a path to a directory containing AMR-LD Turtle Files (possibly in sub-directories),
base_ontology_path is a path to a Base Ontology Turtle File if defined,
onto_prefix is the target ontology prefix if defined (if not defined a prefix based on the amrld filename is used)
out_file_path is a file path where the output ontology is written if defined (the function still outputs the string)
technical_dir_path is a dir path where some technical and log files are written if defined
OUTPUT:
dictionary [filename -> Ontology Turtle String]
Complete Ontology Turtle String (synthesis of all ontology)
"""
NB : create_ontology_from_amrld_dir fera appel à la précédente.
Edited by Aurélien Lamercerie