Property Cardinality quirk #855
Replies: 3 comments 3 replies
-
The taxonomy for https://www.wikidata.org/wiki/Q52260246 seems to be quirky by itself.
so basically only academic conference and academic workshop are interesting at this time. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
You can add
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?item ?itemLabel (COUNT (DISTINCT ?value) AS ?count)
WHERE
{
# instance of scientific event
?item wdt:P31+/wdt:P279* wd:Q52260246.
?item rdfs:label ?itemLabel.
FILTER (LANG(?itemLabel) = "en").
# country
?item wdt:P17 ?value.
} GROUP BY ?item ?itemLabel
HAVING (?count > 1)
ORDER BY DESC(?count) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Based on the description in https://ceur-ws.org/Vol-3262/paper7.pdf i have checked the subclasses of "scientific event" with
the tool at http://wikidata.bitplan.com/
It seems to show that there are entries having multiple "country" properties as outlined by the query:
https://qlever.cs.uni-freiburg.de/wikidata/V84eip
When looking up the individual entries such as https://www.wikidata.org/wiki/Q57399115 the true reason for count being>1 seems to be the mulitple subclasses used not the multiple countries.
How would i have to change the query to counting the countries only?
I also think the wdt:P31+/wdt:P279* is slow and would love to find out the candidate subclasses in advanced to use a "values" clause for the subclass and instance classes instead or filtering out exotic ones such as https://www.wikidata.org/wiki/Q63980799 which seem to be irrelevant.
How could i do query and filter the subclasses in a separate step?
Beta Was this translation helpful? Give feedback.
All reactions