Wikidata:SPARQL query service/Wikidata Query Help/Result Views/pl

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Wikidata:SPARQL query service/Wikidata Query Help/Result Views and the translation is 35% complete.

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Esperanto • ‎català • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎svenska • ‎Ελληνικά • ‎русский • ‎српски / srpski • ‎українська • ‎العربية • ‎日本語
Display button

This page helps you to understand the various possibilities to display results on SPARQL query service. The query example page contains many good examples you can try!

After running a query, you can choose with the "Display" button which result view you want to display. Depending on your query and the data type, some of the views will be available.

Table (default)

Shows the result data as a table. It is the default view for results and can display every data type.

Will map every variable from the SPARQL select clause to a formatted table column.

Image Grid

Image Grid Try Out

Shows the result data as a grid with images.

Every grid item has a big picture and opens the gallery when clicking on it.

Contents an item is the formatted row data.

Zmienna Typ danych Mapowanie Opis
* Commons Media Grid Item Image columns will create a grid item.

Rows containing no image will be ignored.

Opcje

Nazwa opcji Typ Opis
hide One or more variable names (strings, starting with ?), single value or array Don’t show these variables in the result.

Mapa

Shows the result data as map with Open Street Map data.

Zmienna Typ danych Mapowanie Opis
* Współrzędna Map Marker Columns will create a marker on the map.

Content of that marker is the formatted row data.

?layer Map Marker Layer Creates a colored map layer that allows filtering.
?rgb Color Color Map Marker Example 000000 for black color.


Opcje

Nazwa opcji Typ Opis
hide One or more variable names (strings, starting with ?), single value or array Don’t show these variables in the result.
layer One or more variable names (strings, starting with ?), single value or array Use these variables for the map layer, instead of the default ?layerLabel, ?layer.
markercluster boolean or object
  • If the value is an object, pass these options to Leaflet.markercluster, a map plugin for clustering nearby map markers. (If the value is the empty object {}, Leaflet.markercluster is enabled with its default options.)
  • If the value is true (default for queries without map layers), Leaflet.markercluster is enabled with a special set of options that doesn’t cluster any nearby map markers (it only “spiderfies” markers with exactly identical coordinates) and attempts to replicate the default map look as much as possible.
  • If the value is false (default for queries with map layers), Leaflet.markercluster is not enabled.

Line, Bar, Scatter and Area Chart

Shows one of these chart types.

Zmienna Typ danych Mapowanie Opis
* Number

Etykieta

DateTime

Oś x

Oś y

First will be X-axis, second Y-axis
* Etykieta Category / Legend Item (optional) Will only be used after the above are mapped
* Etykieta Storyboard / Animation (optional) Will only be used after the above are mapped

Wykres bąbelkowy

Wykres bąbelkowy Try Out

Shows a bubble chart where the size and the color of the bubble can configured.

When an item is provided a bubble is linked to Wikidata.org.

Zmienna Typ danych Mapowanie
* Etykieta Bubble Label
* Number Bubble Size
* Element Bubble Link (optional)
?rgb Color Bubble Color (optional)

Tree Map

Tree Map Try Out

Shows a zoomable tree map.

Zmienna Typ danych Mapowanie Opis
* Etykieta Etykieta 1st label in a row will be 1st level in tree map.

2nd label will be 2nd level.

3rd label will be 3rd level etc..

* Element Link (optional)

Drzewo

Shows a expandable tree.

Drzewo Try Out
Zmienna Typ danych Mapowanie Opis
* Element Node ID First item will be a root node the following items in the same row will be nested.
* Etykieta Node Label (optional) Labels will be appended to current node.
* Number Node Label (optional)
* Commons Media Item image

Timeline

Timeline Try Out

Shows a explorable timeline.

Zmienna Typ danych Mapowanie Opis
* DateTime Item Point in Time

Item End Point in Time

First date in a row sets the item position in the timeline.

If a second date is present a start and end date will be set.

* Commons Media Item image

Opcje

Nazwa opcji Typ Opis
hide One or more variable names (strings, starting with ?), single value or array Don’t show these variables in the result.

Dimensions

Dimensions Try Out

Shows dimension and their links.

It also allows filtering them by selecting an axis fraction.

Zmienna Typ danych Mapowanie Opis
* Etykieta Dimension Every column in the result row is mapped to a dimension
* Liczba
* DateTime

Wykres

Graph browsing Abraham Lincoln Try Out

Shows an interactive graph that allow hierarchically ordering and exploring items.

Zmienna Typ danych Mapowanie Opis
* Element Node ID First item in a row will have an arrow pointing to the items in the same row
* Etykieta Node Label (optional)
* Commons Media Node Image (optional)
?rgb Color Node Color (optional) Example 000000 for black color.
* Liczba Node Size (optional)
?edgeLabel Etykieta Edge Label (optional)
Wykres Try Out

Dodatkowe informacje

RDF Data Type Mapping

RDF Type RDF Data Type Constraint Data Type
URI String starts with
http://www.wikidata.org/entity/Q
Entity
URI String starts with
http://commons.wikimedia.org/wiki/Special:FilePath
Commons Media
Literal http://www.w3.org/2001/XMLSchema#dateTime DateTime
Literal http://www.opengis.net/ont/geosparql#wktLiteral Coordinate
Literal http://www.w3.org/2001/XMLSchema#double

http://www.w3.org/2001/XMLSchema#float

http://www.w3.org/2001/XMLSchema#decimal

http://www.w3.org/2001/XMLSchema#integer

http://www.w3.org/2001/XMLSchema#long

http://www.w3.org/2001/XMLSchema#int

http://www.w3.org/2001/XMLSchema#short

http://www.w3.org/2001/XMLSchema#nonNegativeInteger

http://www.w3.org/2001/XMLSchema#positiveInteger

http://www.w3.org/2001/XMLSchema#unsignedLong

http://www.w3.org/2001/XMLSchema#unsignedInt

http://www.w3.org/2001/XMLSchema#unsignedShort

http://www.w3.org/2001/XMLSchema#nonPositiveInteger

http://www.w3.org/2001/XMLSchema#negativeInteger

Liczba
Literal Has no RDF Data Type Etykieta
Literal Has property
xml:lang
Etykieta
Literal String matches
/^[0-9A-F]{6}$/
Color

Formatowanie

There is special formatting for the following data types:

Data Type Format
Entity Link to Wikidata.org

Label is shortened to wd:Qxx

Explore an item (magnify icon)

DateTime MM DD, YYYY

Tooltip shows raw ISO timestamp

Commons Media Link to Commons.Wikimedia.org

Displaying Gallery ( image icon )

Mobile / Responsive

Result views are made to work on different devices and resolutions. Their appearance may change depending on the space they can use.

Embed Mode

Result views can be linked or embedded via iframes. You can get the regarding link or code by clicking Link in the above menu. Zobacz różnicę: link to a query i link do wyniku or the embed code:

<iframe style="width:80vw; height:50vh;" scrolling="yes" frameborder="0" src="http://tinyurl.com/zwf4k2w">

Download results

Download results buttons

There are several ways to export the results of a query.

JSON, TSV and CSV are three different open-standard formats to download the data.

You can also download some of the graphic views as a SVG file: this feature works with all the views except table, image grid, timeline, graph builder, map, and graph.

Default View

The default view can be change for each SPARQL query by using a comment:

#defaultView:[NAME]

Na przykład:

#defaultView:ImageGrid

Result view options

Result views can be configured with various options, which are specified in JavaScript Object Notation (Q2063) format, either following the defaultView comment (see previous section) or following a separate view comment.

#defaultView:Map{"layer": "?typeLabel"}
#view:ImageGrid{"hide": "?coords"}

Auto language

When using the magic keyword [AUTO_LANGUAGE] it is replaced by the users language when submitting the query. This allows writing a query with where the result is display in the users language.

Przykład:

#Use language of the user for display labels and fallback to english as default
SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
}

Auto coordinates

When using the magic keyword [AUTO_COORDINATES] it is replaced by the users location when submitting the query. This allows writing a query with the users' location.

Przykład:

  SERVICE wikibase:around {
    ?place wdt:P625 ?coordinate_location.
    bd:serviceParam wikibase:center "[AUTO_COORDINATES]".
    bd:serviceParam wikibase:radius "1".
    bd:serviceParam wikibase:distance ?dist.
  }