Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

property qualifiers #166

Open
lvaudor opened this issue Sep 5, 2023 · 1 comment
Open

property qualifiers #166

lvaudor opened this issue Sep 5, 2023 · 1 comment
Assignees

Comments

@lvaudor
Copy link
Owner

lvaudor commented Sep 5, 2023

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?

@lvaudor lvaudor self-assigned this Dec 7, 2023
@lvaudor
Copy link
Owner Author

lvaudor commented Dec 7, 2023

This is not a priority so I'll assign myself to this ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant