It is wbgetentities requests like: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q219937|Q42&format=jsonfm give you two entities Q219937 and Q42.

Sk!d

On Wed, Mar 6, 2013 at 3:35 PM, Yuri Astrakhan <yuriastrakhan@gmail.com> wrote:
During an IRC discussion, I was told that a page in namespace 0 like Q219937 does not necessarily have a one-to-one relationship with an entity like "Bonnie and Clyde".

wbgetentities API call gives this:

"entities": {
    "q219937": {
        "pageid": 214789,
        "ns": 0,
        "title": "Q219937",
        "lastrevid": 7969610,
        "modified": "2013-02-27T09:17:25Z",
        "id": "q219937",
        "type": "item",
        "aliases": {
               ......

How is it possible to have more than one entity in one wiki page titled Q219937, if the entity id is the same as page title? In what cases would it be used? Is that a needed extra complexity?

In the case of Bonnie and Clyde (one wikipage in language A vs two wikipages in B), wikidata can have three entities with links to static redirects, apparently solving the need of one-to-many.

I am only considering item entities (ns:0), since query pages will obviously have more than one entity associated with them.

Thanks!

_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l




--
Severin Wünsch