Rosetta Code talk:Add a Task: Difference between revisions

→‎Semantic annotations?: Other ways to think about it
(→‎Semantic annotations?: At a first pass, yes.)
(→‎Semantic annotations?: Other ways to think about it)
Line 19:
:: Ok, if I understand right: properties are like regular wikilinks but with an (invisible) prefix for consumption by computer programs. They are typically used in templates. --[[User:Rdm|Rdm]] 21:25, 9 November 2010 (UTC)
::: At a first pass, yes. Note that the prefix and suffix become related, as well as the page the link is created on. Additionally, it's possible (and desirable in a number of places on RC) to create the prefix/suffix/page association without a visisble component. Finally, the wiki software itself consumes those associations, allowing us to use [[smw:Help:Semantic search|semantic searches]] to do interesting things. (Such as dynamically creating task page and example listings based on task properties, or (eventually) replacing MultiCategorySearch as the mechanism we use for the 'unimplemented in X' pages, and, even farther, 'unimplemented using Y' pages where Y is some concept (language, paradigm, library or other tool) as desired.) --[[User:Short Circuit|Michael Mol]] 21:35, 9 November 2010 (UTC)
:::The way I've seen properties is sort of like ternary categories. With regular categories, you're in or you're out. With properties, not only are you in or out, but you also have a value within it. So a task is in the "Implemented in language" proerty once it has examples, but it's also "implemented in" different languages. So you can go to the [[Property:Implemented in language|Implemented in language property page]] and see all the pages on the left which are "implemented in" something (just like a category). On the right you see the values given for each of those pages, which are the languages that they are implemented in.
 
:::Just for another way to think about it, maybe we can say that Cateories are DB tables where the keys are the page names. Then Properties would be tables where the keys are the page name and an additional value. --[[User:Mwn3d|Mwn3d]] 22:27, 9 November 2010 (UTC)
Anonymous user