Wikidata:Property proposal/Wolfram Language entity code
Wolfram Language entity code edit
Originally proposed at Wikidata:Property proposal/Generic
Description | input form for an entity in Wolfram Language |
---|---|
Data type | String |
Domain | entity (Q35120) |
Example |
|
Motivation edit
There is the Wolfram Knowledgebase with a huge number of entities. In many cases, the input form can be obtained through and typed into Wolfram|Alpha, e.g., Entity["Person", "GottfriedLeibniz::s2hc2"] or Entity["ProgrammingLanguage", "JavaScript::g3427"], though Entity["Character", 33] does not work (one may use the Wolfram Open Cloud instead), so I do not propose any formatter URL. What do you think? -- IvanP (talk) 20:37, 13 January 2018 (UTC)
Discussion edit
- Support by analogy with something like BabelNet ID (P2581). Mahir256 (talk) 00:44, 15 January 2018 (UTC)
- Support I think you should add the WolframAlpha link as formatter URL, even if it doesn't work in some cases, as it seems useful for many. ArthurPSmith (talk) 16:14, 16 January 2018 (UTC)
- Comment somehow I'm not really convinced by the suggest format. Why is "entity" included?
--- Jura 20:07, 16 January 2018 (UTC)- You mean why it is in the name? To make clear that the code is for an entity in Wolfram Language (not everything is an entity there!). Consider the sign function. There is
Sign
, e.g., one could writeSign[Tan[10^9]]
, but the entity representing the function is written asEntity["MathematicalFunction", "Sign"]
. The latter is suitable for the property as I suggest it, but not the former. (There also isEntity["WolframLanguageSymbol", "Sign"]
, but I would not use it for sign function (Q236813) since this is about the sign function, not the Wolfram Language symbol for it.) Or considerGraph[{1 <-> 2, 2 <-> 3, 3 <-> 1}]
versusEntity["Graph", "TriangleGraph"]
,\[Sqrt]
versus"\[Sqrt]"
versusEntity["Character", 8730]
. Hope this clears it up a bit. -- IvanP (talk) 21:13, 16 January 2018 (UTC)- I mean in the format for the values. Currently the first sample reads
Entity["Planet", "Earth"]
but it could be"Planet", "Earth"
or evenPlanet
withEarth
in a qualifier.
--- Jura 21:19, 16 January 2018 (UTC)- I do not see a difference between
Entity["Planet", "Earth"]
andEntity["Planet", "Earth"]
, can you clarify? -- IvanP (talk) 21:27, 16 January 2018 (UTC)- Fixed above. Sorry about that.
--- Jura 21:28, 16 January 2018 (UTC)- Ah. Well,
Entity["Planet", "Earth"]
is how it is actually typed in. Another possibility would be to call the property “Wolfram Language canonical entity name” (canonical name as opposed to common name) and use"Earth"
(with quotation marks, else what to do aboutEntity["Character", 8730]
?) with"Planet"
in a qualifier for the type. -- IvanP (talk) 21:49, 16 January 2018 (UTC)- So it could be CanonicalName or value with a qualifier for entities like 8730 ?
--- Jura 17:04, 20 January 2018 (UTC)- For information: The full entity name is in the format of Entity["Type", "Name"] and the Name itself means nothing in Mathematica.--GZWDer (talk) 03:41, 14 February 2018 (UTC)
- So it could be CanonicalName or value with a qualifier for entities like 8730 ?
- Ah. Well,
- Fixed above. Sorry about that.
- I do not see a difference between
- I mean in the format for the values. Currently the first sample reads
- You mean why it is in the name? To make clear that the code is for an entity in Wolfram Language (not everything is an entity there!). Consider the sign function. There is
- Support This is just a list of IDs, why oppose IDs? --Liuxinyu970226 (talk) 11:43, 18 January 2018 (UTC)
- @IvanP, Mahir256, ArthurPSmith, Jura1, Liuxinyu970226: Done--GZWDer (talk) 03:36, 14 February 2018 (UTC)