def test_predicate(self): pc = cmb.PredicateCombinator(ilxtr.predicate) objects1 = ilxtr.object1, ilxtr.object2 gen = pc(ilxtr.subject, *objects1) self._doit(gen) Restriction = cmb.Restriction(None) objects2 = (cmb.unionOf(Restriction(ilxtr.property, ilxtr.value1)), cmb.intersectionOf( Restriction(ilxtr.property, ilxtr.value2))) gen = pc(ilxtr.subject, *objects2) self._doit(gen) gen = pc(ilxtr.subject, *objects1, *objects2) self._doit(gen)
oc(BFO['0000015']), olit(BFO['0000015'], rdfs.label, 'process'), oc(ilxtr.technique, BFO['0000015']), # FIXME technique/ olit(ilxtr.technique, rdfs.label, 'technique'), olit(ilxtr.technique, NIFRID.synonym, 'method'), olit( ilxtr.technique, definition, 'A repeatable process that is constrained by some prior information.'), (ilxtr.technique, ilxtr.hasTempId, OntId('HBP_MEM:0000000')), # NOTE: not all techniques have primary participants, especially in the case of composite techniques oc_(ilxtr.technique, restriction(ilxtr.hasExecutor, ilxtr.executor)), oc_( rdflib.BNode(), oECN( intersectionOf( BFO['0000015'], restN(hasParticipant, restN(ilxtr.hasAspect, asp.nonLocal))), # vs hasExpAspect intersectionOf( BFO['0000015'], restN(ilxtr.processHasAspect, restN(ilxtr.hasContext, BFO['0000002'])))), # FIXME still doesn't get the binding right intersectionOf( BFO['0000015'], # FIXME nonLocal in time requires some time keeping device # id some periodic phenomenon restN(ilxtr.processHasContext, BFO['0000002'])), ), #oc_(rdflib.BNode(), #restN(ilxtr.hasAspect, asp.nonLocal),
#oec(ilxtr.physiologicalSystem) #), #(ilxtr.physiologicalSystemDisjointWithOrganism, owl.disjointWith, OntTerm('NCBITaxon:1')), oc(ilxtr.viralParticle, ilxtr.physiologicalSystem), oc(ilxtr.AAVretro, ilxtr.viralParticle), oc(OntTerm('UBERON:0000465'), ilxtr.materialEntity), oc(OntTerm('UBERON:0000955'), OntTerm('UBERON:0000465')), oc(OntTerm('UBERON:0007798'), OntTerm('UBERON:0000465')), oc(OntTerm('UBERON:0001049', label='neural tube'), OntTerm('UBERON:0000465')), oc(OntTerm('UBERON:0000479', label='tissue'), OntTerm('UBERON:0000465')), oc_( ilxtr.partOfSomePrimaryInput, oECN( intersectionOf( ilxtr.materialEntity, restN(partOf, restN(ilxtr.primaryInputIn, ilxtr.technique)))) ), # it would be nice to say the technique in question... oc(ilxtr.section, ilxtr.materialEntity), oc_( ilxtr.section, intersectionOf( ilxtr.partOfSomePrimaryInput, restN(partOf, ilxtr.primaryInputOfThisInstanceOfTechnique), # FIXME restN(ilxtr.hasAspect, asp.flatness), # FIXME has aspect needs more love )), oc(ilxtr.thinSection, ilxtr.section), oc_( ilxtr.thinSection,
def combinator(self): return cmb.intersectionOf(*self)