DS Catalog:SPARQL Query Service/example queries: Difference between revisions

Line 492: Line 492:
   ?materialStatement ?materialAsRecorded ?materialString .
   ?materialStatement ?materialAsRecorded ?materialString .
# statement: material statement has qualifier for structured/authority value
# statement: material statement has qualifier for structured/authority value
# statement: authority value is represented by URI in external controlled vocabulary
  OPTIONAL {
   ?materialStatement ?hasMaterial ?material .
   ?materialStatement ?hasMaterial ?material .
# statement: authority value is represented by URI in external controlled vocabulary
   ?material ?hasExternalURI ?externalID .
   ?material ?hasExternalURI ?externalID .
    }


# return English language labels
# return English language labels
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
     ?record rdfs:label ?recordLabel .
     ?record rdfs:label ?recordLabel .
     ?material rdfs:label ?materialLabel .
     ?material rdfs:label ?materialLabel .
Bots, Bureaucrats, emailconfirmed, Administrators
30,537

edits