Skip to content
Discussion options

You must be logged in to vote

Complex Query with all the fields identified.

PREFIX yq: <https://data.jain.wiki/entity/>
PREFIX yp: <https://data.jain.wiki/prop/direct/>

SELECT DISTINCT ?item ?itemLabel ?itemDescription
       (IF(BOUND(?loc), "No", "Yes") AS ?missingLocation)
       (IF(BOUND(?address), "No", "Yes") AS ?missingAddress)
       (IF(BOUND(?gmapPlaceId), "No", "Yes") AS ?missingPlaceId)
       (IF(BOUND(?gmapLink), "No", "Yes") AS ?missingMapURL)
WHERE {
  ?item yp:P1 ?p1Value .
  ?p1Value yp:P1 yq:Q8238 .

  OPTIONAL { ?item yp:P2 ?loc . }       # Location
  OPTIONAL { ?item yp:P14 ?address . }  # Address
  OPTIONAL { ?item yp:P25 ?gmapPlaceId . }  # Google Maps Place ID
  OPTIONAL { ?item yp:P5 ?gmapLink

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by adarshmadrecha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant