Vladimir Alexiev
Vladimir Alexiev
Guess you mean AgroBio ontologies, eg those in the OBO Foundry.. A similar case is CIDOC CRM, it has classes like `crm:E4_Period` and props like `crm:P7_took_place_at`
`shuf` has feature `-n` to output only N rows, very important for taking a sample out of a big file.
Hmm, there are only 266? See https://w.wiki/4eyu
There's also P1875 represented by, so a combination of inverse and disjunction will also be useful: `^P1037|^P1875` or `^(P1037|P1875)`
@thadguidry that would mean we need `^(P1037|P1875|P169)`
by `wdt:P31|wdt:P279` I mean "used either as type or as superclass", which is the way WD defines which items are "classes".
Maybe WD doesn't have such API since it doesn't need it - there is search "property:SOMETHING" but no "class:SOMETHING" - the set if classes and hierarchy is completely open. So...
(It's substring not prefix). Will post to phabricator. https://www.wikidata.org/w/index.php?search=Property%3Aiso+mic&ns0=1&ns120=1 returns what I need, can you use that?
posted https://phabricator.wikimedia.org/T266212
https://github.com/VladimirAlexiev/LODE/pull/1 does that for LODE