Main Page: Difference between revisions

From LHDB
Jump to navigation Jump to search
(Created page with "test andrzej <mapframe longitude="-110" latitude="52" zoom="3" width="400" height="300" text="Governors of US states with their party affiliation"> { "type": "ExternalData", "service": "geoshape", "query": "SELECT ?id ?head (SAMPLE(?img) as ?img_) (min(?partyId) as ?party) (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill) (concat('[[w:', substr(str(?link),31,400), '{{!}}', ?headLabel, ']]') as ?title) (concat(?stateLabel, '\\n', 'Fi...")
 
No edit summary
Line 1: Line 1:
test andrzej
<mapframe longitude="-110" latitude="52" zoom="3" width="400" height="300" text="Governors of US states with their party affiliation">
{
  "type": "ExternalData",
  "service": "geoshape",
  "query": "SELECT ?id ?head (SAMPLE(?img) as ?img_) (min(?partyId) as ?party) (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill) (concat('[[w:', substr(str(?link),31,400),  '{{!}}', ?headLabel, ']]') as ?title) (concat(?stateLabel, '\\n', '[[File:', substr(str(?img_), 52, 400), '{{!}}200px]]') as ?description) WHERE { ?id wdt:P31 wd:Q35657 . ?id wdt:P6 ?head . ?head wdt:P102 ?party . BIND(if(?party = wd:Q29468, '0', if(?party = wd:Q29552, '1', '2')) as ?partyId) SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' . ?head rdfs:label ?headLabel . ?id rdfs:label ?stateLabel . } OPTIONAL { ?head wdt:P18 ?img . } ?link schema:about ?head . ?link schema:isPartOf <https://en.wikipedia.org/> .} GROUP BY ?id ?head ?headLabel ?link ?stateLabel"
}
</mapframe>
test 2
<mapframe width="500" height="270" longitude="79.030" latitude="-24.794" zoom="8" align="center">
<mapframe width="500" height="270" longitude="79.030" latitude="-24.794" zoom="8" align="center">
{
{
"type": "FeatureCollection",
  "type": "FeatureCollection",
"features": [
  "features": [
{
    {
"type": "Feature",
      "type": "Feature",
"properties": {"fill": "#ff0000","fill-opacity": 0.7,"stroke-width": 0},
      "properties": {
"geometry": {
        "fill": "#ff0000",
"type": "Polygon",
        "fill-opacity": 0.7,
"coordinates": [
        "stroke-width": 0
[
      },
  [77.926025390625, -25.150257104114733],
      "geometry": {
  [80.14251708984374, -25.150257104114733],
        "type": "Polygon",
  [80.14251708984374, -24.43714786161562],
        "coordinates": [
  [77.926025390625, -24.43714786161562],
          [
  [77.926025390625, -25.150257104114733]
            [
]
              49.5919363139795,
]
              21.1187002929995
}
            ],
},
            [
{
              49.592,
"type": "Feature",
              21.119
"properties": {"stroke": "#fffa00","stroke-width": 5},
            ],
"geometry": {
            [
"type": "LineString",
              49.593,
"coordinates": [
              21.120
  [77.926025390625, -25.150257104114733],
            ]
  [80.14251708984374, -24.43714786161562]
          ]
]
        ]
}
      }
},
    },
{
    {
"type": "Feature",
      "type": "Feature",
"properties": {"stroke": "#000000","stroke-width": 5},
      "properties": {
"geometry": {
        "stroke": "#fffa00",
"type": "LineString",
        "stroke-width": 5
"coordinates": [
      },
  [77.926025390625, -24.43714786161562],
      "geometry": {
  [80.14251708984374, -25.150257104114733]
        "type": "Point",
]
        "coordinates": [
}
          [
}
            49.5919363139795,
]
            21.1187002929995
          ]
        ]
      }
    }
  ]
}
}
</mapframe>
</mapframe>

Revision as of 16:40, 10 March 2024

<mapframe> problems:

  • The JSON content is not valid GeoJSON+simplestyle. The list below shows all attempts to interpret it. Not all are errors.
  • Possible mistake on element /0/query: The property query is required
  • Possible mistake on element /0/ids: The property ids is required
  • Possible mistake on element /0: Failed to match at least one schema
  • Possible mistake on element /0/title: The property title is required
  • Possible mistake on element /0/service: The property service is required
  • Possible mistake on element /0: Failed to match exactly one schema
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["ExternalData"]
  • Possible mistake on element /0/geometries: The property geometries is required
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["GeometryCollection"]
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["MultiPolygon"]
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["Point"]
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["MultiPoint"]
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["LineString"]
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["MultiLineString"]
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["Polygon"]
  • Possible mistake on element /0/coordinates: The property coordinates is required
  • Possible mistake on element /0/geometry: The property geometry is required
  • Possible mistake on element /0/type: Does not have a value in the enumeration ["Feature"]
  • Possible mistake on element /0/features/0/geometry/geometries: The property geometries is required
  • Possible mistake on element /0/features/0/geometry/type: Does not have a value in the enumeration ["GeometryCollection"]
  • Possible mistake on element /0/features/0/geometry/type: Does not have a value in the enumeration ["MultiPolygon"]
  • Possible mistake on element /0/features/0/geometry/coordinates/0/0/0: Double value found, but an array is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/0/1: Double value found, but an array is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/0: There must be a minimum of 4 items in the array
  • Possible mistake on element /0/features/0/geometry/coordinates/0/0: Failed to match all schemas
  • Possible mistake on element /0/features/0/geometry/coordinates/0/1/0: Double value found, but an array is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/1/1: Double value found, but an array is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/1: There must be a minimum of 4 items in the array
  • Possible mistake on element /0/features/0/geometry/coordinates/0/1: Failed to match all schemas
  • Possible mistake on element /0/features/0/geometry/coordinates/0/2/0: Double value found, but an array is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/2/1: Double value found, but an array is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/2: There must be a minimum of 4 items in the array
  • Possible mistake on element /0/features/0/geometry/coordinates/0/2: Failed to match all schemas
  • Possible mistake on element /0/features/0/geometry/type: Does not have a value in the enumeration ["Point"]
  • Possible mistake on element /0/features/0/geometry/coordinates: There must be a minimum of 2 items in the array
  • Possible mistake on element /0/features/0/geometry/coordinates/0: Array value found, but a number is required
  • Possible mistake on element /0/features/0/geometry/type: Does not have a value in the enumeration ["MultiPoint"]
  • Possible mistake on element /0/features/0/geometry/coordinates/0/0: Array value found, but a number is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/1: Array value found, but a number is required
  • Possible mistake on element /0/features/0/geometry/coordinates/0/2: Array value found, but a number is required
  • Possible mistake on element /0/features/0/geometry/type: Does not have a value in the enumeration ["LineString"]
  • Possible mistake on element /0/features/0/geometry/coordinates: Failed to match all schemas
  • Possible mistake on element /0/features/0/geometry/type: Does not have a value in the enumeration ["MultiLineString"]
  • Possible mistake on element /0/features/0/geometry/coordinates/0: There must be a minimum of 4 items in the array
  • Possible mistake on element /0/features/0/geometry/coordinates/0: Failed to match all schemas
  • Possible mistake on element /0/features/0/geometry: Failed to match exactly one schema
  • Possible mistake on element /0/features/0/geometry: Object value found, but a null is required
  • Possible mistake on element /0/features/1/geometry/geometries: The property geometries is required
  • Possible mistake on element /0/features/1/geometry/type: Does not have a value in the enumeration ["GeometryCollection"]
  • Possible mistake on element /0/features/1/geometry/type: Does not have a value in the enumeration ["MultiPolygon"]
  • Possible mistake on element /0/features/1/geometry/coordinates/0/0: Double value found, but an array is required
  • Possible mistake on element /0/features/1/geometry/coordinates/0/0: Failed to match all schemas
  • Possible mistake on element /0/features/1/geometry/coordinates/0/1: Double value found, but an array is required
  • Possible mistake on element /0/features/1/geometry/coordinates/0/1: Failed to match all schemas
  • Possible mistake on element /0/features/1/geometry/coordinates: There must be a minimum of 2 items in the array
  • Possible mistake on element /0/features/1/geometry/coordinates/0: Array value found, but a number is required
  • Possible mistake on element /0/features/1/geometry/type: Does not have a value in the enumeration ["MultiPoint"]
  • Possible mistake on element /0/features/1/geometry/type: Does not have a value in the enumeration ["LineString"]
  • Possible mistake on element /0/features/1/geometry/coordinates: Failed to match all schemas
  • Possible mistake on element /0/features/1/geometry/type: Does not have a value in the enumeration ["MultiLineString"]
  • Possible mistake on element /0/features/1/geometry/coordinates/0: Failed to match all schemas
  • Possible mistake on element /0/features/1/geometry/type: Does not have a value in the enumeration ["Polygon"]
  • Possible mistake on element /0/features/1/geometry/coordinates/0: There must be a minimum of 4 items in the array
  • Possible mistake on element /0/features/1/geometry: Failed to match exactly one schema
  • Possible mistake on element /0/features/1/geometry: Object value found, but a null is required