Get OWL someValuesFrom restrictions for a term
get_restrictions(x, term_id, ...)data.frame with columns restriction_id, property,
property_label, filler, filler_label.
goref <- semsql_connect(ontology = "go")
#> Connected to SemanticSQL database: /home/runner/.cache/R/BiocFileCache/51aa7efd341e_go.db
#> Primary ontology prefix: GO
# mitochondrion (GO:0005739) has part-of restrictions to cell
get_restrictions(goref, "GO:0005739")
#> restriction_id property property_label filler filler_label
#> 1 _:riog00106255 BFO:0000050 part of GO:0005737 cytoplasm
#> 2 _:riog00106255 BFO:0000050 part of GO:0005737 cytoplasm
#> 3 _:riog00106256 RO:0002162 in taxon NCBITaxon:2759 Eukaryota
disconnect(goref)
#> Disconnected from '51aa7efd341e_go.db'