Skip to content

Instantly share code, notes, and snippets.

@yannickpulver
Created August 4, 2022 07:13
Show Gist options
  • Save yannickpulver/4252a05582c61ba75940f42cb92c737b to your computer and use it in GitHub Desktop.
Save yannickpulver/4252a05582c61ba75940f42cb92c737b to your computer and use it in GitHub Desktop.
PREFIX schema: <http://schema.org/>
PREFIX admin: <https://schema.ld.admin.ch/>
SELECT ?name ?company_uri ?company_type ?municipality
WHERE {
?company_uri a admin:ZefixOrganisation ;
schema:name ?name ;
admin:municipality ?muni_id .
?muni_id schema:name ?municipality .
?company_uri schema:additionalType ?type_id .
?type_id schema:name ?company_type .
?company_uri schema:address ?adr.
FILTER(?municipality = "Zürich")
FILTER(LANG(?company_type) = "de")
# Je nach dem Filter auskommentieren
# FILTER(contains(?company_type, "Aktiengesellschaft") || contains(?company_type, "Aktiengesellschaft"))
}
# Limitiert auf 100 Resultate
LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment