What does the slash in the SPARQL property path mean?

In one of the samples for the Wikidata query , I found the following query that includes p: P6 / v: P6 in the line after SELECT . What does it mean?

PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX p: <http://www.wikidata.org/prop/> PREFIX v: <http://www.wikidata.org/prop/statement/> SELECT ?p ?w ?l ?wl WHERE { wd:Q30 p:P6/v:P6 ?p . #-- This line ?p wdt:P26 ?w . OPTIONAL { ?p rdfs:label ?l filter (lang(?l) = "en") . } OPTIONAL { ?w rdfs:label ?wl filter (lang(?wl) = "en"). } } 
+5
source share
1 answer

This is the flavor of SequencePath Path SPARQL 1.1 .

 wd:Q30 p:P6/v:P6 ?p . 

means that there is a triple (wd:Q30, p:P6, ?x) , and the other triple (?x, v:P6, ?p) , without the explicit need to write (or call) an intermediate node ?x . In other words, he says: " ?p can be found starting with wd:Q30 , after the property p:P6 , and then the property v:P6 .

+13
source

All Articles