neosemantics
neosemantics copied to clipboard
How to allow several subCatRel in n10s.inference.nodesInCategory?
Hi,
I have imported a RDF as an ontology (https://github.com/Planteome/plant-ontology/raw/master/po.owl) with n10s. Most relationships are "SCO", but some come from a restriction and have their type as "SCO_RESTRICTION". While this is expected, I cannot find a way to use n10s.inference.nodesInCategory(po, {inCatRel: "ANNOTATED_BY", subCatRel: "SCO"}) with SCO AND SCO_RESTRICTION subCatRel.
I assumed it would be possible to give a list but if so I am not doing it properly. I do not comprehend most of the exact processes under the function, but would it possible to implement that? Is there a way around it (for now I renamed SCO_RESTRICTION to SCO types but that is not ideal)?
Thanks for your help! Baptiste