No, that information isn’t available as triples. We have a category graph in a separate endpoint, but that contains only category-subcategory relations, not individual pages. (Also, I just noticed it seems to be incomplete, see T243824.)
You can use the MWAPI service to get that kind of information from the API, though, with a query like this one:
ASK {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator";
wikibase:endpoint "en.wikipedia.org";
mwapi:generator "categorymembers";
mwapi:gcmtitle "Category:British Invasion
artists";
# optional optimization: make the API only
return results we’re interested in
mwapi:gcmstartsortkeyprefix "Kinks";
mwapi:gcmendsortkeyprefix "Kinkt";
# optional optimization: return as many
results as possible at once, less continuation
mwapi:gcmlimit "max".
?item wikibase:apiOutputItem mwapi:item.
}
FILTER(?item = wd:Q188713)
}
Cheers,
Lucas
In Wikidata, if
- wd:Q8313122 is the category "British Invasion artists"
- wd:Q188713 is the Kinks
- the Kinks are listed on https://en.wikipedia.org/wiki/Category:British_Invasion_artists
are there any Wikidata triples that connect wd:Q188713 to wd:Q8313122?
I have done several queries about these two entities and cannot figure out what triple or triples may connect them.
Thanks,
Bob
_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata