Commit 375a2ed4 authored by Wickramasinghe R.J.P's avatar Wickramasinghe R.J.P

ontology generation with doctor approval functionalities

parent 51366e7c
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group id="Folder Repository, directory=, recursive=true, Auto-Update=true, version=2" prefer="public" xml:base="">
<uri id="Automatically generated entry, Timestamp=1666519732863" name="http://triplr.org/rdf/bloody-byte.net/rdf/dc_owl2dl/dc.ttl" uri="venv/Lib/site-packages/owlready2/ontos/dc.owl"/>
<uri id="Automatically generated entry, Timestamp=1666519732863" name="http://triplr.org/rdf/bloody-byte.net/rdf/dc_owl2dl/dcam.ttl" uri="venv/Lib/site-packages/owlready2/ontos/dcam.owl"/>
<uri id="Automatically generated entry, Timestamp=1666519732863" name="http://triplr.org/rdf/bloody-byte.net/rdf/dc_owl2dl/dcmitype.ttl" uri="venv/Lib/site-packages/owlready2/ontos/dcmitype.owl"/>
<uri id="Automatically generated entry, Timestamp=1666519732863" name="http://triplr.org/rdf/bloody-byte.net/rdf/dc_owl2dl/dcterms.ttl" uri="venv/Lib/site-packages/owlready2/ontos/dcterms.owl"/>
<uri id="Automatically generated entry, Timestamp=1666519732863" name="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogDisease.owl" uri="dogDisease.owl"/>
<uri id="Automatically generated entry, Timestamp=1666519732863" name="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease" uri="dogSkinDisease.owl"/>
<uri id="Automatically generated entry, Timestamp=1666519732863" name="http://www.w3.org/2002/07/owl" uri="venv/Lib/site-packages/owlready2/ontos/owlready_ontology.owl"/>
</group>
</catalog>
...@@ -283,6 +283,60 @@ ...@@ -283,6 +283,60 @@
<!-- http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedCause -->
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedCause">
<rdfs:domain rdf:resource="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#DiseaseCause"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
</owl:DatatypeProperty>
<!-- http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedDiagnose -->
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedDiagnose">
<rdfs:domain rdf:resource="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#DiseaseDiagnose"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
</owl:DatatypeProperty>
<!-- http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedDisease -->
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedDisease">
<rdfs:domain rdf:resource="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#Disease"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
</owl:DatatypeProperty>
<!-- http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedPrevention -->
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedPrevention">
<rdfs:domain rdf:resource="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#DiseasePrevention"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
</owl:DatatypeProperty>
<!-- http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedSymptom -->
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedSymptom">
<rdfs:domain rdf:resource="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#DiseaseSymptom"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
</owl:DatatypeProperty>
<!-- http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedTreatment -->
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#isApprovedTreatment">
<rdfs:domain rdf:resource="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease#DiseaseTreatment"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
</owl:DatatypeProperty>
<!-- <!--
/////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////
// //
......
...@@ -16,10 +16,11 @@ if __name__ == '__main__': ...@@ -16,10 +16,11 @@ if __name__ == '__main__':
for row in reader: for row in reader:
Disease, DiseaseDescription, DiseaseCauseDescription, DiseaseDiagnoseDescription, DiseasePreventionDescription, DiseaseSymptomDescription, DiseaseTreatmentDescription, DiseaseInfection, DiseaseLink = row Disease, DiseaseDescription, DiseaseCauseDescription, DiseaseDiagnoseDescription, DiseasePreventionDescription, DiseaseSymptomDescription, DiseaseTreatmentDescription, DiseaseInfection, DiseaseLink = row
individual = onto.NamedDisease(str(Disease)) individual = onto.NamedDisease(str(Disease))
individual.isApprovedDisease.append(False)
if DiseaseDescription: if DiseaseDescription:
individual.hasDescription.append(DiseaseDescription) individual.hasDescription.append(DiseaseDescription)
if DiseaseLink: if DiseaseLink:
individual.seeAlso.append(DiseaseLink) individual.seeAlso.append(DiseaseLink)
...@@ -28,6 +29,7 @@ if __name__ == '__main__': ...@@ -28,6 +29,7 @@ if __name__ == '__main__':
ClassCause = types.new_class(Sub_Class_name_cause, (onto.DiseaseCause,)) ClassCause = types.new_class(Sub_Class_name_cause, (onto.DiseaseCause,))
individualCause = ClassCause() individualCause = ClassCause()
individualCause.hasCasueDescription.append(DiseaseCauseDescription) individualCause.hasCasueDescription.append(DiseaseCauseDescription)
individualCause.isApprovedCause.append(False)
individual.hasCause.append(individualCause) individual.hasCause.append(individualCause)
if DiseaseDiagnoseDescription: if DiseaseDiagnoseDescription:
...@@ -35,6 +37,7 @@ if __name__ == '__main__': ...@@ -35,6 +37,7 @@ if __name__ == '__main__':
ClassDiagnose = types.new_class(Sub_Class_name_diagnose, (onto.DiseaseDiagnose,)) ClassDiagnose = types.new_class(Sub_Class_name_diagnose, (onto.DiseaseDiagnose,))
individualDiagnose = ClassDiagnose() individualDiagnose = ClassDiagnose()
individualDiagnose.hasDiagnoseDescription.append(DiseaseDiagnoseDescription) individualDiagnose.hasDiagnoseDescription.append(DiseaseDiagnoseDescription)
individualDiagnose.isApprovedDiagnose.append(False)
individual.hasDiagnose.append(individualDiagnose) individual.hasDiagnose.append(individualDiagnose)
if DiseasePreventionDescription: if DiseasePreventionDescription:
...@@ -42,6 +45,7 @@ if __name__ == '__main__': ...@@ -42,6 +45,7 @@ if __name__ == '__main__':
ClassPrevention = types.new_class(Sub_Class_name_prevention, (onto.DiseasePrevention,)) ClassPrevention = types.new_class(Sub_Class_name_prevention, (onto.DiseasePrevention,))
individualPrevention = ClassPrevention() individualPrevention = ClassPrevention()
individualPrevention.hasPreventionDescription.append(DiseasePreventionDescription) individualPrevention.hasPreventionDescription.append(DiseasePreventionDescription)
individualPrevention.isApprovedPrevention.append(False)
individual.hasPrevention.append(individualPrevention) individual.hasPrevention.append(individualPrevention)
if DiseaseSymptomDescription: if DiseaseSymptomDescription:
...@@ -49,6 +53,7 @@ if __name__ == '__main__': ...@@ -49,6 +53,7 @@ if __name__ == '__main__':
ClassSymptom = types.new_class(Sub_Class_name_symptom, (onto.DiseaseSymptom,)) ClassSymptom = types.new_class(Sub_Class_name_symptom, (onto.DiseaseSymptom,))
individualSymptom = ClassSymptom() individualSymptom = ClassSymptom()
individualSymptom.hasSymptomDescription.append(DiseaseSymptomDescription) individualSymptom.hasSymptomDescription.append(DiseaseSymptomDescription)
individualSymptom.isApprovedSymptom.append(False)
individual.hasSymptom.append(individualSymptom) individual.hasSymptom.append(individualSymptom)
if DiseaseTreatmentDescription: if DiseaseTreatmentDescription:
...@@ -56,6 +61,7 @@ if __name__ == '__main__': ...@@ -56,6 +61,7 @@ if __name__ == '__main__':
ClassTreatment = types.new_class(Sub_Class_name_treatment, (onto.DiseaseTreatment,)) ClassTreatment = types.new_class(Sub_Class_name_treatment, (onto.DiseaseTreatment,))
individualTreatment = ClassTreatment() individualTreatment = ClassTreatment()
individualTreatment.hasTreatmentDescription.append(DiseaseTreatmentDescription) individualTreatment.hasTreatmentDescription.append(DiseaseTreatmentDescription)
individualTreatment.isApprovedTreatment.append(False)
individual.hasTreatment.append(individualTreatment) individual.hasTreatment.append(individualTreatment)
if DiseaseInfection: if DiseaseInfection:
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group id="Folder Repository, directory=, recursive=true, Auto-Update=true, version=2" prefer="public" xml:base="">
<uri id="Automatically generated entry, Timestamp=1665432340207" name="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogDisease.owl" uri="dogDisease.owl"/>
<uri id="Automatically generated entry, Timestamp=1665432340207" name="http://www.semanticweb.org/dogdisease/ontologies/2022/4/dogSkinDisease" uri="dogSkinDisease.owl"/>
</group>
</catalog>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment