Taxonomy of animals and plants
type: Configuration
description: Classification of all organisms, plants and animals, into taxa.
has visual style sheet: style-sheet
starting node: Q7377
starting node: Q192154
resource iri pattern: ^http://www\.wikidata\.org/entity/Q[1-9][0-9]*$
has view set: Views of taxons

Views of taxons
type: ViewSet
has view: Parent taxons
has view: Child taxons
has default view: Parent taxons
has condition: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK { ?node wdt:P31 ?type . FILTER(?type IN (wd:Q16521, wd:Q713623)) }
has dataset: Wikidata SPARQL endpoint

Parent taxons
type: View
has expansion: Parent taxons
has preview: Taxon basic overview
has detail: Taxon basic detail

Child taxons
type: View
has expansion: Child taxons
has preview: Taxon basic overview
has detail: Taxon basic detail

Parent taxons
type: ExpansionQuery
has dataset: Wikidata SPARQL endpoint
query: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX wdab: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/wikidata/animals/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?parentTaxon a wdab:taxon ; rdfs:label ?parentTaxonLabel ; browser:class "taxon", ?parentTaxonClass . ?node wdab:broader ?parentTaxon . wdab:broader browser:class "broader" . } WHERE { ?node wdt:P171 ?parentTaxon . OPTIONAL { ?parentTaxon wdt:P105 ?parentTaxonRank . ?parentTaxonRank rdfs:label ?parentTaxonRankLabel . FILTER(lang(?parentTaxonRankLabel) = "en") BIND(IF(?parentTaxonRank IN (wd:Q7432, wd:Q34740, wd:Q35409, wd:Q36602, wd:Q37517, wd:Q38348, wd:Q36732, wd:Q146481), ?parentTaxonRankLabel, "unsupportedTaxon") AS ?parentTaxonClass) } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }

Child taxons
type: ExpansionQuery
has dataset: Wikidata SPARQL endpoint
query: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX wdab: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/wikidata/animals/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?childTaxon a wdab:taxon ; rdfs:label ?childTaxonLabel ; wdab:broader ?node ; browser:class "taxon", ?childTaxonClass . wdab:broader browser:class "broader" . } WHERE { ?childTaxon wdt:P171 ?node . OPTIONAL { ?childTaxon wdt:P105 ?childTaxonRank . ?childTaxonRank rdfs:label ?childTaxonRankLabel . FILTER(lang(?childTaxonRankLabel) = "en") BIND(IF(?childTaxonRank IN (wd:Q7432, wd:Q34740, wd:Q35409, wd:Q36602, wd:Q37517, wd:Q38348, wd:Q36732, wd:Q146481), ?childTaxonRankLabel, "unsupportedTaxon") AS ?childTaxonClass) } #FILTER(?childTaxonRank IN (wd:Q7432, wd:Q34740, wd:Q35409, wd:Q36602, wd:Q37517, wd:Q38348, wd:Q36732, wd:Q146481)) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }

Taxon basic overview
type: PreviewQuery
has dataset: Wikidata SPARQL endpoint
query: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX wdab: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/wikidata/animals/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?node a wdab:taxon ; rdfs:label ?nodeLabel ; browser:class "taxon", ?taxonClass . } WHERE { ?node wdt:P105 ?taxonRank . ?taxonRank rdfs:label ?taxonRankLabel . FILTER(lang(?taxonRankLabel) = "en") BIND(IF(?taxonRank IN (wd:Q7432, wd:Q34740, wd:Q35409, wd:Q36602, wd:Q37517, wd:Q38348, wd:Q36732, wd:Q146481), ?taxonRankLabel, "unsupportedTaxon") AS ?taxonClass) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }

Taxon basic detail
type: DetailQuery
has dataset: Wikidata SPARQL endpoint
query: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX wdab: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/wikidata/animals/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?node rdfs:label ?nodeLabel ; wdt:P225 ?p225 ; wdt:P181 ?p181 ; wdt:P18 ?p18 . } WHERE { ?node wdt:P31 wd:Q16521 . { ?node wdt:P225 ?p225 . } UNION { ?node wdt:P181 ?p181 . } UNION { ?node wdt:P18 ?p18 . } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }

Wikidata SPARQL endpoint
type: Dataset
sparql endpoint: sparql
accept: application/sparql-results+json

taxon
type: Class

parent taxon
type: ObjectProperty
domain: taxon
range: taxon

taxon
type: VisualStyle
border-width: 2px
shape: octagon
label: data(label)
width: 20px
height: 20px
padding: 2px
text-halign: center
text-valign: bottom
text-margin-y: 2px
has selector: .taxon

species
type: VisualStyle
background-color: #ff8000
has selector: .species

genus
type: VisualStyle
background-color: #ffbf00
has selector: .genus

family
type: VisualStyle
background-color: #bfff00
has selector: .family

order
type: VisualStyle
background-color: #00ff40
has selector: .order

class
type: VisualStyle
background-color: #00ffbf
has selector: .class

phylum
type: VisualStyle
background-color: #00bfff
has selector: .phylum

kingdom
type: VisualStyle
background-color: #8000ff
has selector: .kingdom

domain
type: VisualStyle
background-color: #ff00bf
has selector: .domain

unsupported-taxon
type: VisualStyle
background-color: #444444
has selector: .unsupportedTaxon

broader
type: VisualStyle
width: 1
curve-style: straight
line-color: #7dd181
line-style: solid
label: data(label)
font-size: 6px
target-arrow-shape: triangle
has selector: .broader

node
type: VisualStyle
background-color: #A9A5A7
border-color: #544B50
border-width: 2px
color: black
shape: rectangle
label: data(label)
text-valign: center
text-halign: left
width: 16
height: 16
has selector: node

edge
type: VisualStyle
width: 1
line-color: red
has selector: edge