Property talk:P1881
Documentation
Wikimedia page with the list of characters for this work
List of violations of this constraint: Database reports/Constraint violations/P1881#Type Q386724, Q108764372, Q17489659, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1881#Value type Q13406463, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1881#Target required claim P360, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1881#Conflicts with P31, search, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1881#Entity types
fix label or adjust regex for language at Property:P1881#P1552: complex constraint value label (Q100884525) (Help)
Violations query:
SELECT ?item ?lang ?l ?value ?v ?t WHERE { hint:Query hint:optimizer "None". wd:P1881 p:P1552 [ ps:P1552 wd:Q100884525 ; pq:P8770 ?t ] BIND( lang(?t) as ?lang) ?item wdt:P1881 ?value. ?item rdfs:label ?l . FILTER(lang(?l) = ?lang) ?value rdfs:label ?v . FILTER(lang(?v) = ?lang) FILTER ( !REGEX(str(?v), str(?t) ) ) } # ORDER BY ?lang ?v
List of this constraint violations: Database reports/Complex constraint violations/P1881#value label (1: should match regex)
determine a regex and add it at Property:P1881#P1552: complex constraint value label (Q100884525) (Help)
Violations query:
SELECT ?item ?lang (COUNT(*) as ?count) (SAMPLE(?l) as ?sample) WHERE { hint:Query hint:optimizer "None". [] wdt:P1881 ?v . ?v rdfs:label ?l . BIND(lang(?l) as ?lang) OPTIONAL { wd:P1881 p:P1552 [ ps:P1552 wd:Q100884525 ; pq:P8770 ?t ] FILTER( lang(?t) = ?lang) } FILTER( !BOUND(?t) ) ?item wdt:P424 ?lang ; wdt:P305 [] . } GROUP BY ?item ?lang HAVING ( ?count > 9) ORDER BY DESC ( ?count)
List of this constraint violations: Database reports/Complex constraint violations/P1881#value label (1: languages lacking a regex)
|
Constraint on Wikimedia list of fictional characters (Q63032896)
editHi,
I just realised the constraint forcing the target to be Wikimedia list of fictional characters (Q63032896). I’m not too convinced by this item − surely this is equivalent to list of Star Fox characters (Q2663905)instance of (P31)Wikimedia list article (Q13406463) + list of Star Fox characters (Q2663905)is a list of (P360)fictional character (Q95074)?
Fictional collective entity
editAfter finding a constraint violation on list of characters (P1881) of Revelation Space universe (Q2146771) I concluded that such a list may contain characters from a fictional universe or place appearing in several works (not necessarily even by the same author) just as well as those from a specific work, and considered defining fictional entity (Q14897293) as a "work" in its own right. Eventually, however, I decided to make a change with more limited consequences and just added fictional collective entity (Q108764372) to the subject type constraint (Q21503250) of list of characters (P1881) instead (it could be disputed whether such a fictional entity would necessarily constitute a creative work, and I didn't want the constraint to depend on that philosophical issue). --SM5POR (talk) 21:18, 29 January 2023 (UTC)