Difference between revisions of "Query-Beispiele"
Jump to navigation
Jump to search
imported>Gentilin |
imported>Sysop |
||
| Line 73: | Line 73: | ||
?item wdt:P10 ?date | ?item wdt:P10 ?date | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". } | ||
| + | } | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | Test KH | ||
| + | <syntaxhighlight lang=sparql> | ||
| + | PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/> | ||
| + | PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/> | ||
| + | SELECT ?item ?itemLabel ?itemDescription ?itemAltLabel ?status ?statusLabel ?a ?aLabel ?b ?bLabel | ||
| + | WHERE | ||
| + | { | ||
| + | wd:Q3 wdt:P11 ?item. | ||
| + | ?item wdt:P14 ?status. | ||
| + | ?status ?a ?b. | ||
| + | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 18:43, 25 February 2022
# Gattung Der Verwandlung - Wikidata
PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/>
PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/>
SELECT ?subject ?subjectLabel ?object ?objectLabel ?objectDescription
WHERE
{
?subject wdt:P5 ?object.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}
PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/>
PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/>
SELECT ?item ?itemLabel ?itemDescription ?itemAltLabel
WHERE
{
wd:Q5 wdt:P6 ?item.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
#Hauptfigur der Erzählung Die Verwandlung
PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/>
PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/>
SELECT ?item ?itemLabel ?itemDescription ?itemAltLabel
WHERE
{
{wd:Q7 wdt:P7 ?item.}
UNION
{wd:Q7 wdt:P8 ?item.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
#Herr Samsa ist verheiratet mit
PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/>
PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/>
SELECT ?item ?itemLabel ?itemDescription
WHERE
{
wd:Q9 wdt:P9 ?item.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
#Publikationsdatum der Verwandlung
PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/>
PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/>
SELECT ?item ?itemLabel ?date
WHERE
{
wd:Q3 wdt:P11 ?item.
?item wdt:P10 ?date
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}
#Gattung und Publikationsdatum der Verwandlung
PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/>
PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/>
SELECT ?item ?itemLabel ?date ?objectLabel ?objectDescription
WHERE
{
wd:Q3 wdt:P11 ?item.
?item wdt:P5 ?object.
?item wdt:P10 ?date
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}
Test KH
PREFIX wdt: <https://websites.fraunhofer.de/wikibase-oli/prop/direct/>
PREFIX wd: <https://websites.fraunhofer.de/wikibase-oli/entity/>
SELECT ?item ?itemLabel ?itemDescription ?itemAltLabel ?status ?statusLabel ?a ?aLabel ?b ?bLabel
WHERE
{
wd:Q3 wdt:P11 ?item.
?item wdt:P14 ?status.
?status ?a ?b.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}