The following is an extensive list of property path queries we managed to find in the previously published literature:
!!!REMARK: WE ONLY CONSIDER PROPERTY PATH QUERIES WHICH MAKE USE OF THE STAR OPERATOR *!!!
!!!DISCLAIMER: WE DO NOT CLAIM THESE ARE ALL THE PROPERTY PATH QUERIES THAT EVER APPEARED IN THE LITERATURE, NOR THAT THEY ARE ALL PROPERTY PATH QUERIES WHICH MAKE SENSE OVER THE STUDIED DATASETS!!!
##################################################################################################################################################################
The following queries come from the paper: Gubichev, A., Bedathur, S.J., Seufert, S.: Sparqling kleene: fast property paths in RDF-3X. In: GRADES (2013)
##################################################################################################################################################################
Please note that we test only property paths with a starting point (justification is in the paper), so some of the original queries have been modified in order
to mold them into a single property path.
-----------------------------------------------------------------------------------------------------------
Original queries are over YAGO:
Q1 (Berlin)
select * where {yago:Berlin yago:isLocatedIn*/yago:dealsWith ?z}
Q2 (NATO)
select * where { ?x yago:isLocatedIn*/yago:dealsWith/rdf:type yago:wikicat_Member_states_of_NATO}
Q3 (European capitals)
select * where { yago:wikicat_Capitals_in_Europe ^rdf:type/yago:isLocatedIn*/yago:dealsWith ?area }
Q4 (Spouses)
select * where { ?person yago:isMarriedTo*/yago:owns/yago:isLocatedIn* yago:United_States }
Q5 (Airports)
select * where { yago:wikicat_Airports_in_the_Netherlands ^a/yago:isConnectedTo* ?x }
-----------------------------------------------------------------------------------------------------------
Their "equivalent" versions over DBpedia (when avaialble):
Q1' (Berlin)
select * where {dbr:Berlin (^dbo:locatedInArea/dbo:locatedInArea)*/dct:subject ?z}
Q2' (Nato)
select * where { ?x (^dbo:locatedInArea/dbo:locatedInArea)*/dct:subject dbc:Member_states_of_NATO}
variant:
select * where {dbr:Berlin (^dbo:locatedInArea/dbo:locatedInArea)*/dct:subject ?y}
-----------------------------------------------------------------------------------------------------------
Their "equivalent" versions over Wikidata (when avaialble):
Q1'' (Berlin)
select * where {wd:Q64 wdt:P131*/wdt:P463 ?z}
Q2'' (NATO) territories dealing with NATO
SELECT * WHERE {?territory wdt:P131*/wdt:P463 wd:Q7184}
Q3'' (What organisations do capitals of the EU deal with?)
select * where {wd:Q458 ^wdt:P463/^wdt:P1376/wdt:P131*/wdt:P463 ?x}
Q4'' (spouse born in a pace in the US)
select * where {?person wdt:P26/wdt:P19/wdt:P131* wd:Q30}
Q5'' (Airports) (Where can I get to if I start in the Netherlands (using Plane or train))
select * where {wd:Q55 (^wdt:P131)*/wdt:P81* ?z}
-----------------------------------------------------------------------------------------------------------
##################################################################################################################################################################
The following queries come from the paper: Nikolay Yakovets, Parke Godfrey, Jarek Gryz: WAVEGUIDE: Evaluating SPARQL Property Path Queries. EDBT 2015
##################################################################################################################################################################
As before, some queries have been modified to fit into a single property path.
The original queries are over YAGO:
Q6:
select * where { yago:Gundam (owl:sameAs*/yago:linksTo)+/owl:sameAs* ?p }
Q7:
select * where { ?p yago:isMarriedTo/yago:diedIn/yago:isLocatedIn+/yago:dealsWith+ yago:United_States }
##################################################################################################################################################################
The following queries come from the author's previous work
##################################################################################################################################################################
Q8 Bacon number
Over DBPEDIA:
PREFIX dbo:
PREFIX dbr:
PREFIX dbc:
PREFIX dct:
select * where {?x (^dbo:starring/dbo:starring)* dbr:Kevin_Bacon}
or equivalently:
select * where {dbr:Kevin_Bacon (^dbo:starring/dbo:starring)* ?x}
------------------------------------------------------------------
Bacon number over YAGO
PREFIX yago:
select * where {?x (yago:actedIn/^yago:actedIn)* yago:Kevin_Bacon}
------------------------------------------------------------------
Bacon number crossing between YAGO and DBPEDIA:
PREFIX dbo:
PREFIX dbr:
PREFIX dbc:
PREFIX dct:
PREFIX yago:
PREFIX owl:
select * where {dbr:Kevin_Bacon owl:sameAs*/((^dbo:starring/dbo:starring) | owl:sameAs | (yago:actedIn/^yago:actedIn))* ?x}
------------------------------------------------------------------
Bacon Number wikidata:
SELECT * WHERE {wd:Q3454165 (^wdt:P161/wdt:P161)* ?act }
Q9 Co-authors in DBLP
PREFIX dblpAuthors:
select * where { dblpAuthors:Jorge_A._Baier ((^dc:creator)/(dc:creator))* / (rdfs:label | foaf:name) ?coAuthorName }