User:Acebarry/sandbox/NJ County Maps

Atlantic
 {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q497928. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Bergen
 {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q112915. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Burlington
 {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q138141. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Camden
{ "type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q497810. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Cape May
 {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q497795. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Cumberland
 {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q497845. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Essex
 {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q128077. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Gloucester
 {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502463. ?link schema:about ?id; schema:isPartOf . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Hudson
<mapframe latitude="40.7367" longitude="-74.0660" zoom="11" width="300" height="400" text="Interactive map of municipalities in Hudson County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q490505. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Hunterdon
<mapframe latitude="40.5751" longitude="-74.8890" zoom="9" width="300" height="400" text="Interactive map of municipalities in Hunterdon County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502451. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Mercer
<mapframe latitude="40.2773" longitude="-74.6974" zoom="9" width="300" height="400" text="Interactive map of municipalities in Mercer County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q496886. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Middlesex
<mapframe latitude="40.4594" longitude="-74.3709" zoom="9" width="300" height="400" text="Interactive map of municipalities in Middlesex County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q496862. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Monmouth
<mapframe latitude="40.2838" longitude="-74.2240" zoom="9" width="300" height="400" text="Interactive map of municipalities in Monmouth County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502424. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Morris
<mapframe latitude="40.8765" longitude="-74.5323" zoom="9" width="300" height="400" text="Interactive map of municipalities in Morris County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q498163. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Ocean
<mapframe latitude="39.8723" longitude="-74.2813" zoom="9" width="300" height="400" text="Interactive map of municipalities in Ocean County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502564. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Passaic
<mapframe latitude="41.00" longitude="-74.30" zoom="10" width="300" height="400" text="Interactive map of municipalities in Passaic County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q495974. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Salem
<mapframe latitude="39.6044" longitude="-75.2763" zoom="9" width="300" height="400" text="Interactive map of municipalities in Salem County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502587. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Somerset
<mapframe latitude="40.5751" longitude="-74.6061" zoom="9" width="300" height="400" text="Interactive map of municipalities in Somerset County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502414. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Sussex
<mapframe latitude="41.1589" longitude="-74.6957" zoom="9" width="300" height="400" text="Interactive map of municipalities in Sussex County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q495998. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Union
<mapframe latitude="40.6558" longitude="-74.3105" zoom="10" width="300" height="400" text="Interactive map of municipalities in Union County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502459. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

Warren
<mapframe latitude="40.8338" longitude="-75.00" zoom="9" width="300" height="400" text="Interactive map of municipalities in Warren County"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P131 wd:Q502468. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } OPTIONAL { ?id wdt:P402 ?OSM_relation_ID. } }"}

All Cities
<mapframe latitude="40.2387" longitude="-74.7455" zoom="8" width="300" height="600" text="Interactive map of municipalities in New Jersey"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT ?id ?idLabel (CONCAT(, ?idLabel, ) AS ?title) WHERE { ?id (wdt:P31/(wdt:P279*)) wd:Q54115138. ?link schema:about ?id; schema:isPartOf <https://en.wikipedia.org/>. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } FILTER(NOT EXISTS { ?id wdt:P576 ?dob. }) }"}

Enclaves
<mapframe latitude="39.8" longitude="-74.70" zoom="9" width="300" height="400" text="Interactive map of enclaves in New Jersey"> {"type": "ExternalData","service": "geoshape","properties": {"fill": "#07c63e"},"query": "SELECT (?border as ?id) WHERE {{ SELECT ?border (COUNT(?ida) AS ?count) WHERE { ?ida (wdt:P31/(wdt:P279*)) wd:Q54115138; wdt:P47 ?border. ?border (wdt:P31/(wdt:P279*)) wd:Q54115138. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. } FILTER(NOT EXISTS { ?ida wdt:P576 ?dob. }) } GROUP BY ?border } FILTER (?count = 1 ) . }"}