Skip to content

Commit

Permalink
Add precomputed phenotype_of_part_of.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff committed Apr 3, 2020
1 parent 8bab2aa commit 50fea5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/scala/org/phenoscape/owl/Vocab.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ object Vocab {
val has_absence_of = ObjectProperty("http://purl.org/phenoscape/vocab.owl#has_absence_of")
val has_phenotypic_profile = IRI.create("http://purl.org/phenoscape/vocab.owl#has_phenotypic_profile")
val phenotype_of = ObjectProperty("http://purl.org/phenoscape/vocab.owl#phenotype_of")
val phenotype_of_part_of = ObjectProperty("http://purl.org/phenoscape/vocab.owl#phenotype_of_reflexive_part_of")
val has_part_inhering_in = ObjectProperty("http://purl.org/phenoscape/vocab.owl#has_part_inhering_in")
val in_taxon = ObjectProperty("http://purl.obolibrary.org/obo/RO_0002162")

Expand Down
3 changes: 2 additions & 1 deletion src/main/scala/org/phenoscape/owl/build/PhenoscapeKB.scala
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ object PhenoscapeKB extends KnowledgeBaseBuilder {
val hasPartsInheringIns = anatomicalEntities.flatMap(NamedRestrictionGenerator.createRestriction(has_part_inhering_in, _))
addTriples(hasPartsInheringIns, bigdata, graphURI)
val phenotypeOfs = anatomicalEntities.flatMap(NamedRestrictionGenerator.createRestriction(phenotype_of, _))
val phenotypeOfPartOfs = anatomicalEntities.flatMap(NamedRestrictionGenerator.createRestriction(phenotype_of_part_of, _))
val absences = anatomicalEntities.flatMap(AbsenceClassGenerator.createAbsenceClass)
addTriples(absences, bigdata, graphURI)
val namedHasPartClasses = anatomicalEntities.map(_.getIRI).map(NamedRestrictionGenerator.getRestrictionIRI(has_part.getIRI, _)).map(Class(_))
Expand All @@ -252,7 +253,7 @@ object PhenoscapeKB extends KnowledgeBaseBuilder {

val allTBox = ro.axioms ++ uberon.axioms ++ homology.axioms ++ pato.axioms ++ bspo.axioms ++ vto.axioms ++ vtoToNCBI.axioms ++ zfa.axioms ++ xao.axioms ++ hp.axioms ++ mp.axioms ++
caroToUberon.axioms ++ zfaToUberon.axioms ++ xaoToUberon.axioms ++ mgiToEMAPA.axioms ++ emapaToUberon.axioms ++ eco.axioms ++
parts ++ hasParts ++ hasPartsInheringIns ++ phenotypeOfs ++ presences ++ absences ++ absenceNegationEquivalences ++ developsFromRulesForAbsence ++ subsumers ++ tboxFromData ++ phenoscapeVocab.axioms
parts ++ hasParts ++ hasPartsInheringIns ++ phenotypeOfs ++ phenotypeOfPartOfs ++ presences ++ absences ++ absenceNegationEquivalences ++ developsFromRulesForAbsence ++ subsumers ++ tboxFromData ++ phenoscapeVocab.axioms

val coreTBox = ro.axioms ++ uberon.axioms ++ homology.axioms ++ pato.axioms ++ bspo.axioms ++ vto.axioms ++ vtoToNCBI.axioms ++ zfa.axioms ++ xao.axioms ++ hp.axioms ++ mp.axioms ++
caroToUberon.axioms ++ zfaToUberon.axioms ++ xaoToUberon.axioms ++ mgiToEMAPA.axioms ++ emapaToUberon.axioms ++ eco.axioms ++
Expand Down

0 comments on commit 50fea5d

Please sign in to comment.