Skip to content

Workaround for *P31/*P279 #828

Answered by hannahbast
WolfgangFahl asked this question in Q&A
Discussion options

You must be logged in to vote

That is not really a limit. If you specify a predicate path like wdt:P279*/wdt:P31*, with a * after both predicates, then according to the standard, the subject (?academic_conferenceItem in this case) should also match the object (wd:Q2020153 in this case), which is almost never what you want (wd:Q2020153 itself is not an academic conference).

The right pattern for such extended type queries is wdt:P31/wdt:P279*, and QLever's autocompletion even suggests this when you construct a query incrementally. The corresponding variant of your query is https://qlever.cs.uni-freiburg.de/wikidata/0O82PS and it works without problems.

The query does not make too much sense, however. I guess what you w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WolfgangFahl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants