Querying: Difference between revisions

cleaning query
(map of sancak seats)
(cleaning query)
Line 157: Line 157:
     ?sancak rdfs:label ?sancakLabel. # finds label in Ottgaz
     ?sancak rdfs:label ?sancakLabel. # finds label in Ottgaz
   }
   }
}
== Cleanup queries ==
These queries are useful to find information gaps to be filled when tidying the dataset.
=== Missing labels ===
Returns labels in English, Ottoman, and Arabic. Sort results to find blanks. [https://tinyurl.com/2at3o9p6 run]
SELECT ?seat ?seat_en ?seat_ota ?seat_ar
WHERE
{
  ?seat ogt:P6 og:Q6421.
 
  OPTIONAL {?seat rdfs:label ?seat_en filter (lang(?seat_en) = "en")}.
  OPTIONAL {?seat rdfs:label ?seat_ota filter (lang(?seat_ota) = "ota")}. 
  OPTIONAL {?seat rdfs:label ?seat_ar filter (lang(?seat_ar) = "ar")}. 
 
  }
  }