User:Naveenpf/sandbox

{{User sandbox}}

/CAB

/Wikidata8

{{tracked|T112948}}

{{tracked|T175102}}

==Map Line==

{

"type": "FeatureCollection",

"features": [

{

"type": "Feature",

"properties": {},

"geometry": {

"type": "Point",

"coordinates": [

73.318889,

34.463333

]

}

}

]

}

{

"type": "ExternalData",

"service": "geoline",

"ids": "Q2634049"

},

{

"type": "ExternalData",

"service": "geoshape",

"ids": "Q2634049"

}

{

"type": "ExternalData",

"service": "geoline",

"ids": "Q5089",

"properties": {

"title": "National Highway 1 (India)",

"description": "200px",

"stroke": "#ffb100",

"stroke-width": 8

}

}

{

"type": "ExternalData",

"service": "geoline",

"ids": "Q16134195",

"properties": {

"title": "മഞ്ചേശ്വരം ഗ്രാമപഞ്ചായത്ത് ഭൂപടം",

"stroke": "#ffb100",

"stroke-width": 8

}

}

==Map Shape==

{ "type": "ExternalData", "service": "geoshape", "ids": "Q2429655,Q16133577"}

{

"type": "ExternalData",

"service": "geoshape",

"ids": "Q2429655"

}

{

"type": "ExternalData",

"service": "geoshape",

"ids": "Q5974696"

}

{

"type": "ExternalData",

"service": "page",

"title": "India outline.map"

}

{

"type": "ExternalData",

"service": "geoshape",

"ids": "Q1650798"

}

Langauages in India

{

"type": "ExternalData",

"service": "geoshape",

"query": "

SELECT ?id ?head ?stateLabel ?headLabel

WHERE {

?id wdt:P31 wd:Q13390680 .

?id wdt:P37 ?head .

(concat('', substr(str(?link),31,500), '{{!}}', ?headLabel, '') as ?title)

(concat(?stateLabel, '\\n', 'File:', substr(str(?img), 52, 500), '{{!}}200px') as ?description)

SERVICE wikibase:label {

bd:serviceParam wikibase:language 'en' .

?head rdfs:label ?headLabel .

?id rdfs:label ?stateLabel .

}

?link schema:about ?head .

?link schema:isPartOf .

}

"}

== Railway stations in India==

{

"type": "ExternalData",

"query": "

SELECT ?id ?idLabel (?idLabel AS ?title) WHERE {

?id wdt:P31 wd:Q55488.

?id wdt:P17 wd:Q668.

SERVICE wikibase:label {

bd:serviceParam wikibase:language 'en'.

}

}

"}

== Lok Sabha Constituency in India==

{

"type": "ExternalData",

"service": "geoshape",

"query": "

SELECT ?id ?idLabel (?idLabel AS ?title) WHERE {

?id wdt:P31 wd:Q3429959.

?id wdt:P17 wd:Q668.

SERVICE wikibase:label {

bd:serviceParam wikibase:language 'en'.

}

}

"}

[No data in OSM]

State Assembly Constituency in India

{

"type": "ExternalData",

"service": "geoshape",

"query": "

SELECT ?id ?idLabel (?idLabel AS ?title) WHERE {

?id wdt:P31 wd:Q11774263.

?id wdt:P17 wd:Q668.

SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'. }

}

"}

[No data in OSM]

NWs in India

{

"type": "ExternalData",

"service": "geoline",

"properties": {

"stroke": "#ff0000",

"stroke-width": 4

},

"query": "

SELECT ?id ?idLabel ?wikilink

(?idLabel as ?title)

  1. concat('[', str(?wikilink) , '|' , str(?idLabel), ']') as ?title_new

WHERE

{

?id wdt:P31 wd:Q1267889 . # is a road

?id wdt:P17 wd:Q668 . # in India

?wikilink schema:about ?id; schema:isPartOf .

SERVICE wikibase:label { bd:serviceParam wikibase:language 'en','ml','hi' }

}

"}

ASI Monuments

{{Graph:Street map with marks | lat=21 | lon=78| zoom=4 | colorScaleField=type | wdqs=

  1. Each location should show only once. This query may output all the same values as in the other examples, such as "text", "img", and others.

SELECT (SAMPLE(?coord) as ?coord) (SAMPLE(?type) as ?type)

WHERE {

?item wdt:P1371 ?heritageId .

?item wdt:P625 ?coord .

?item wdt:P31 ?type .

}

GROUP BY ?item

}}

OSM Location map

On the right for Thrissur.

{{OSM Location map

|lat=10.52

|lon=76.21

|zoom=12

|float=center

}}

Federal Bank Test (Matroc)

{"type": "FeatureCollection",

"features": [

{

"type": "Feature",

"geometry": {"type":"MultiPoint",

"coordinates":

72.86592,19.07251],[73.84741,18.52328],[77.24573,28.52788],[79.01038,21.15285],[77.43357,23.23064,

"type":"MultiPoint"},

"properties":{

"description": "Federal Bank",

"marker-color": "#000000",

"marker-size": "medium",

"marker-symbol": "bank",

}

},

{

"type": "Feature",

"geometry": {"type":"MultiPoint",

"coordinates":

79.01038,21.15285],[78.45271,17.42383],[85.32579,23.36073],[80.21765,13.08748,

"type":"MultiPoint"},

"properties":{

"description": "Federal Bank",

"marker-color": "#ff0000",

"marker-size": "medium",

"marker-symbol": "bank",

}

},

{

"type": "Feature",

"geometry": {"type":"Point",

"coordinates":

[78.046,21.534],

"type":"Point"},

"properties":{

"description": "India",

"marker-color": "#ffccff",

"marker-size": "medium",

"marker-symbol": "star",

}

}

]}

  • http://overpass-turbo.eu/s/rFt