query-316c0d8fab5eb1aca6813f92d3025f1c

rq turtle/ttl

A constraint with 2 possible properties. 02:05, 31 December 2017 (UTC)) talk (Fralambert to have a multi-property result? Or create a new type of constraint?. --(Q21503247)item-requires-statement constraint (and sometime the two). It's possible to modifie (P276)location or (P131)located in the administrative territorial entity , will have (P1435)heritage designation . I have to revert it, event if I think this is a good idea, since most items who use Multichill of this interventionI create this subjet, since : sounds like a good plan, but this query times out for meFralambert@ 04:50, 20 January 2018 (UTC)) talk (Fralambert instead? At least we could turn back when the property constraint will permit to have multi properties. --Complex constraint: Should we replace it by a Multichill@ 19:24, 2 January 2018 (UTC)) talk (MultichillI'm fine either way. I have no clue how difficult this change would be. I don't think I ever looked at the code. 01:06, 2 January 2018 (UTC)) talk (Fralambert: Thanks for your anwser. I will revert myself. --Multichill@ 11:32, 31 December 2017 (UTC)) talk (Multichill. phab:T180875: the breaking was kind of intentional, we currently have over 269.137 constraint violations for that one so the other option was to remove it. See Fralambert@

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?value ?valueLabel
WHERE
{
    ?item wdt:P1435 ?value .
    FILTER NOT EXISTS { ?item wdt:P131 [] } .
    FILTER NOT EXISTS { ?item wdt:P276 [] } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?value"):::projected a2((" ")) a1((" ")) c5(["bd:serviceParam"]):::iri c7(["en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P276"--> e0a1 e0v1("?item"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 v1 --"wdt:P276"--> a1 f1[["not "]] subgraph f1e1["Exists Clause"] e1v1 --"wdt:P131"--> e1a1 e1v1("?item"):::projected e1a1((" ")):::projected end f1--EXISTS--> f1e1 f1 --> v1 f1 --> c2 f1 --> a2 v1 --"wdt:P131"--> a2 v1 --"wdt:P1435"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end