Closed omishali closed 7 years ago
Before you start the implementation, send Oren a brief example of the two options:
Examples for the above requirement:
Json input that defines the ontology: see almost complete example at master/input/ontologies/jbsOntology/jbsOntology.json. the user can create an ontology ttl file in few simple steps:
FluentAPI: basically there are two options:
using the same triplet API but also create a namespace for the ontology. sample of code will look like that: Triplet.addNSprefix("jbo", "http://jbs.technion.ac.il/ontology/"); String classes[] = {"Sefer", "Perek", "Pasuk", "Perush", "Mishnaya", "Halacha", "Mitzva", "Seder", "DafGmara", "Masechet"}; for (String strVal : classes) { Triplet .triplet() .subject(strVal) .predicate(RDF_P_TYPE) .object(OWL_C_CLASS); Triplet .triplet() .subject(strVal) .predicate(RDFS_P_LABEL) .object(strVal); } currently we support that API too.
create a spacial API for ontology: a sample of code will look like this: String classes[] = {"Sefer", "Perek", "Pasuk", "Perush", "Mishnaya", "Halacha", "Mitzva", "Seder", "DafGmara", "Masechet"}; for (String strVal : classes) { OntAPI .ontology() .class(strVal) .label(strVal) .subClassOf(OWL_THING) }
Good job. We will discuss it during the meeting.