AndrewTavis_WMDE added a comment.
@Manuel, looking into cases where Q13442814 (scholarly article) <https://www.wikidata.org/wiki/Q13442814> is either the subject or object of a triple, it looks like we can verify that the relationships are only being saved in one way as they should be: shared_predicates = [l for l in subject_is_sa_predicate_labels if l in object_is_sa_predicate_labels] shared_predicates # ['cites work', 'main subject'] I'd assume that `'main subject'` is shared because some papers are about the example paper itself, which is Q1895685 (Molecular Structure of Nucleic Acids: A Structure for Deoxyribose Nucleic Acid) <https://www.wikidata.org/wiki/Q1895685>. shared_entities = [l for l in subject_is_sa_object_labels if l in object_is_sa_subject_labels] shared_entities # ['scholarly article'] `'scholarly article'` being shared was a bit scary for a moment, but only because I coincidentally picked a scientific paper that's a P5869 (model item) <https://www.wikidata.org/wiki/Property:P5869> of Q13442814 (scholarly article) <https://www.wikidata.org/wiki/Q13442814>. I'll still check the aggregate triples where a paper is an object, but focusing on when they're subject only can also be included. TASK DETAIL https://phabricator.wikimedia.org/T342111 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: AndrewTavis_WMDE Cc: dr0ptp4kt, AndrewTavis_WMDE, Aklapper, Manuel, Danny_Benjafield_WMDE, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
