Usuario:Rfornas/Taller/SPARQL LITERARI
Apariencia
< Usuario:Rfornas · Taller
Escriptors morts en un any[editar]
Escriptors morts o nascuts en un any - Fins Robert L Carneiro
SELECT ?autorLabel ?article (year(?date) as ?year) WHERE {
?autor wdt:P570 ?date .
?autor wdt:P106 wd:Q36180 .
?article schema:about ?autor ;
schema:isPartOf <https://es.wikipedia.org/> .
FILTER (datatype(?date) = xsd:dateTime)
FILTER (year(?date) = 2020)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC (?date)
Centenaris[editar]
- Guia centenaris Data de mort
SELECT ?autorLabel ?article (year(?date) as ?year) WHERE {
?autor wdt:P570 ?date .
?autor wdt:P106 wd:Q36180 .
?article schema:about ?autor ;
schema:isPartOf <https://es.wikipedia.org/> .
FILTER (datatype(?date) = xsd:dateTime)
FILTER (year(?date) = 1621)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC (?date)
- Guia centenaris Data de naixement
SELECT ?autorLabel ?article (year(?date) as ?year) WHERE {
?autor wdt:P569 ?date .
?autor wdt:P106 wd:Q36180 .
?article schema:about ?autor ;
schema:isPartOf <https://es.wikipedia.org/> .
FILTER (datatype(?date) = xsd:dateTime)
FILTER (year(?date) = 1621)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC (?date)
Listado de géneros literarios[editar]
Búsqueda de tipos y géneros literarios
SELECT ?s ?desc WHERE {
?s wdt:P279 wd:Q7725634 .
OPTIONAL {
?s rdfs:label ?desc
FILTER (LANG(?desc) = "en").
}
}
Escritores del mundo cuya fecha de nacimiento coincide con el de hoy[editar]
Todos los escritores por orden descendente y limitado a 300. Canviar 569 a 570
SELECT ?autorLabel ?article ?date
WHERE
{
?autor wdt:P106 wd:Q36180 . # autor
OPTIONAL {?autor wd:Q49757 ?poeta . }
OPTIONAL {?autor wd:Q487596 ?dramaturgo . }
OPTIONAL {?autor wd:Q6625963 ?novelista . }
?article schema:about ?autor ;
schema:isPartOf <https://es.wikipedia.org/> .
?autor p:P570/psv:P570 ?date_node . # node for date of birth
?date_node wikibase:timePrecision "11"^^xsd:integer . # date precision = day
?date_node wikibase:timeValue ?date .
FILTER (day(?date) = day(now())) . # day of birth date is day of current date
FILTER (month(?date) = month(now())) . # month of birth date is month of current date
SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }
}
ORDER BY ASC(?date)
LIMIT 100
Escritores nacidos tal dia[editar]
Escriptors nascuts dia assenyalat amb enllaç wiki en espanyol. Codi de mort 570
select ?autorLabel (YEAR(?date) as ?year) ?article (DAY(?date) as ?day) (MONTH(?date) as ?month)
where {
{?autor wdt:P31 wd:Q5;
wdt:P106 wd:Q36180;
wdt:P569 ?date .
?article schema:about ?autor ;
schema:isPartOf <https://es.wikipedia.org/> .
}
FILTER (MONTH(?date) = 6 && DAY(?date)=7)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "es" .
}
}
ORDER BY ?date
LIMIT 10000