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

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

Other languages:
العربية • ‎Deutsch • ‎Ελληνικά • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎русский • ‎українська
Display button

This page helps you to understand the various possibilities to display results on Wikidata Query. 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)[edit]

Shows the result data as 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[edit]

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.

Variable Tipo de dato Mapping Descripción
* Commons Media Grid Item Image columns will create a grid item.

Las filas que no contengan ninguna imagen serán ignoradas.

Mapa[edit]

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

Variable Tipo de dato Mapping Descripción
* Coordenada 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.

Line, Bar, Scatter and Area Chart[edit]

Shows one of these chart types.

Variable Tipo de dato Mapping Descripción
* Número

Etiqueta

DateTime

Eje X

Eje Y

El primero será el eje X (abscisas), el segundo será el eje Y (ordenadas).
* Etiqueta Category / Legend Item (optional) Will only be used after the above are mapped
* Etiqueta Storyboard / Animation (optional) Will only be used after the above are mapped

Bubble Chart[edit]

Bubble Chart 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.

Variable Tipo de dato Mapping
* Etiqueta Bubble Label
* Número Bubble Size
* Elemento Bubble Link (optional)
?rgb Color Bubble Color (optional)

Tree Map[edit]

Tree Map Try Out

Shows a zoomable tree map.

Variable Tipo de dato Mapping Descripción
* Etiqueta Etiqueta 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..

* Elemento Enlace (opcional)

Tree[edit]

Shows a expandable tree.

Tree Try Out
Variable Data Type Mapping Description
* Item Node ID First item will be a root node the following items in the same row will be nested.
* Label Node Label (optional) Labels will be appended to current node.
* Number Node Label (optional)
* Commons Media Item image

Timeline[edit]

Timeline Try Out

Shows a explorable timeline.

Variable Tipo de dato Mapping Descripción
* 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

Dimensiones[edit]

Dimensiones Try Out

Shows dimension and their links.

It also allows filtering them by selecting an axis fraction.

Variable Tipo de dato Mapping Descripción
* Etiqueta Dimensión Every column in the result row is mapped to a dimension
* Número
* DateTime

Graph[edit]

Graph browsing Abraham Lincoln Try Out

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

Variable Tipo de dato Mapping Descripción
* Elemento Node ID First item in a row will have an arrow pointing to the items in the same row
* Etiqueta Node Label (optional)
* Commons Media Node Image (optional)
?rgb Color Node Color (optional)
* Número Node Size (optional)
?edgeLabel Label Edge Label (optional)
Graph Try Out

Additional Information[edit]

RDF Data Type Mapping[edit]

Tipo RDF Tipo de dato RDF Restricción Tipo de dato
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

Number
Literal Has no RDF Data Type Label
Literal Tiene propiedad
xml:lang
Label
Literal String matches
/^[0-9A-F]{6}$/
Color

Formatting[edit]

There is special formatting for the following data types:

Tipo de dato Formato
Entity Enlace a Wikidata.org

La etiqueta está acortada a wd:Qxx

Explore an item (magnify icon)

DateTime MM DD, YYYY

Tooltip shows raw ISO timestamp

Commons Media Enlace a Commons.Wikimedia.org

Displaying Gallery ( image icon )

Móvil / Responsivo[edit]

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

Embed Mode[edit]

Result views can be linked or embedded via iframes. You can get the regarding link or code by clicking Link in the above menu. See the difference: link to a query y link to a result or the embed code:

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


Download results[edit]

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[edit]

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

#defaultView:[NAME]

Por ejemplo:

#defaultView:ImageGrid