PREFIX schema:
SELECT
?id
(MIN(?date) AS ?date)
(SAMPLE(?title_fr) AS ?title_fr)
(SAMPLE(?title_de) AS ?title_de)
(SAMPLE(?title_it) AS ?title_it)
(SAMPLE(?text_fr) AS ?text_fr)
(SAMPLE(?text_de) AS ?text_de)
(SAMPLE(?text_it) AS ?text_it)
(SAMPLE(?status_uri) AS ?status_uri)
(SAMPLE(?zustand_uri) AS ?zustand_uri)
(SAMPLE(?zurueckgezogen_uri) AS ?zurueckgezogen_uri)
(SAMPLE(?ungueltig_uri) AS ?ungueltig_uri)
(SAMPLE(?angenommen_uri) AS ?angenommen_uri)
WHERE {
?obsSet .
?obsSet ?source .
?source
?id ;
?date ;
?titleUri ;
?textUri ;
?status_uri .
OPTIONAL { ?source ?zustand_uri }
OPTIONAL { ?source ?zurueckgezogen_uri }
OPTIONAL { ?source ?ungueltig_uri }
OPTIONAL { ?source ?angenommen_uri }
OPTIONAL {
?titleUri schema:name ?title_fr .
FILTER(LANG(?title_fr)="fr")
}
OPTIONAL {
?titleUri schema:name ?title_de .
FILTER(LANG(?title_de)="de")
}
OPTIONAL {
?titleUri schema:name ?title_it .
FILTER(LANG(?title_it)="it")
}
OPTIONAL {
?textUri schema:name ?text_fr .
FILTER(LANG(?text_fr)="fr")
}
OPTIONAL {
?textUri schema:name ?text_de .
FILTER(LANG(?text_de)="de")
}
OPTIONAL {
?textUri schema:name ?text_it .
FILTER(LANG(?text_it)="it")
}
}
GROUP BY ?id
ORDER BY DESC(?date)
LIMIT 1000