glitter
glitter copied to clipboard
property qualifiers
I think the way we're supposed to add property qualifiers is not intuitive. Indeed, we're supposed to put it that way:
stations_metro_Lyon=spq_init() %>%
spq_add("?station wdt:P16 wd:Q1552") %>% # ?station is part of the Lyon metro network
spq_add("?station p:P197 ?statement") %>%
spq_add("?statement ps:P197 ?adjacent") %>% # ?station is connected to ?adjacent station
spq_add("?statement pq:P81 ?line") %>% # this connection is through line ?line
spq_add("?statement pq:P5051 ?direction") %>% # this connection is in direction ?direction
spq_label("station", "adjacent", "line", "direction") %>%
spq_perform()
For me, I'd assume that the "statement" IS a triple pattern, so that I'd like to put it that way:
stations_metro_Lyon=spq_init() %>%
spq_add("?station wdt:P16 wd:Q1552") %>% # ?station is part of the Lyon metro network
spq_add(statement="?station wdt:P197 ?adjacent") %>% # ?station is connected to ?adjacent
spq_add("?statement pq:P81 ?line") %>% # this connection is through line ?line
spq_add("?statement pq:P5051 ?direction") %>% # this connection is in direction ?direction
spq_label("station", "adjacent", "line", "direction") %>%
spq_perform()
@maelle do you feel the way I do? Would that be possible without being too much of a hassle?
This is not a priority so I'll assign myself to this ;-)