As here entity is a page on mediawiki view but this page (or you can call it entity) can be an item or property

Best


On Wed, Mar 6, 2013 at 6:16 PM, Yuri Astrakhan <yuriastrakhan@gmail.com> wrote:
Sk!d, of course if you ask for multiple items, you get multiple items. My question is the difference between MediaWiki concept of a "page", and the wikidata concept of an entity, specifically relating to items and properties (not queries). Are these concepts interchangeable? Is one MediaWiki page the same as one wikidata item, and have one-to-one mapping?


On Wed, Mar 6, 2013 at 9:41 AM, swuensch <swuensch@gmail.com> wrote:
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

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



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




--
Amir