WinFS:修订间差异

添加1,948字节 、​ 2025 年 4 月 24 日 (星期四)
第 41 行: 第 41 行:
* 更好的同步
* 更好的同步


===WinFS was supposed to be the solution===
=== WinFS 本应是解决方案 ===
WinFS was supposed to store all structured, semi-structured and unstructured data at the same time and they would relate in a central data store where users and apps can access and operate on it. This made the idea of duplication useless since the user can access the same file over different apps and places from the same data store.<blockquote>With WinFS you don’t need a separate file. Your data can be described as a WinFS schema and instances of that data stored in WinFS itself. You and other apps can operate on this data using the WinFS APIs. If you need to keep your separate file, you can write a metadata handler to promote and demote metadata between your file and the store.
WinFS 应该同时存储所有结构化、半结构化和非结构化数据,它们将在一个中央数据存储中关联,用户和应用程序可以在其中访问和作它。这使得复制的想法变得毫无用处,因为用户可以从同一数据存储通过不同的应用程序和位置访问同一文件。
{{quote|With WinFS you don’t need a separate file. Your data can be described as a WinFS schema and instances of that data stored in WinFS itself. You and other apps can operate on this data using the WinFS APIs. If you need to keep your separate file, you can write a metadata handler to promote and demote metadata between your file and the store.|Vijay Bangaru, WinFS Mailbox}}
{{quote|使用 WinFS,你不需要单独的文件。你的数据可以描述为 WinFS 架构和存储在 WinFS 本身中的此数据的实例。你和其他应用程序可以使用 WinFS API 对此数据进行操作。如果需要保留单独的文件,可以编写元数据处理程序来提升和降级文件和存储之间的元数据。|维杰·班加鲁,WinFS 邮箱<ref name=":2">Vijay Bangaru. [https://web.archive.org/web/20070522092310/http://blogs.msdn.com/winfs/archive/2005/09/13/465269.aspx 存储内容 - WinFS Mailbox], <i>Microsoft Developer Network</i>. 2005 年 9 月 13 日.</ref>}}
[[文件:MUXGWinFSSearch.png|thumb|使用 WinFS 的搜索概念。这里的各种功能都可以用于 [[Windows Vista]]。]]
WinFS 还有助于更快地查找数据,因为用户可以安全地查找内容,而无需了解任何技术知识。就像我们正在寻找的 Word 文档一样,你可以找到带有搜索过滤器的文档,此文档是你实际要查找的内容,例如“商业报告”或“我两周前写完的书”,而不是“上次修改于2004 年 3 月 19 日”或“由管理员拥有”。


– Vijay Bangaru, WinFS Mailbox<ref name=":2">Bangaru, Vijay. [https://web.archive.org/web/20070522092310/http://blogs.msdn.com/winfs/archive/2005/09/13/465269.aspx Whats in Store - WinFS Mailbox], <i>Microsoft Developer Network</i>. 13 September 2005.</ref></blockquote>[[File:MUXGWinFSSearch.png|thumb|Search concept that uses WinFS. Various features here would make it to [[Windows Vista]].]]WinFS also helps finding the data quicker as the user can safely find things without needing to know anything technical. Like the Word document we were looking for, you could find the document with a search filter about what you're actually looking for as "a business report" or "a book I finished writing two weeks ago" rather than "Last modified in 19 March 2004" or "Owned by Administrator".
WinFS 允许搜索更复杂,可以更好地处理交叉引用的非基于文件的数据,例如电子邮件。


WinFS allowed searches to be more complex, with better handling of cross-referenced non-file-based data such as emails.
WinFS 允许 ISV 定义自己的数据类型,并将其架构提供给数据框架。使用“信息代理”,用户可以为约会、生日等项目设置新属性。
{{quote|The item properties are stored in the WinFS store as part of the item itself. WinFS has a concept of "links" which are an entity type with a source item and a target item that relate items. There is also the concept of "common value" relationships which are based on item properties. Navigation of common value relationships is a value based join.|Vijay Bangaru, WinFS Mailbox}}
{{quote|项属性作为项本身的一部分存储在 WinFS 存储中。WinFS 有一个“链接”的概念,它是一个实体类型,其中包含一个源项和一个与项相关的目标项。还有基于项属性的“common value”关系的概念。公共值关系的导航是基于值的联接。|维杰·班加鲁,WinFS 邮箱<ref name=":2" />}}
{{quote|In traditional file systems, users create files and store them in folders. In "WinFS", an item can exist in multiple folders. When users create an item, they specify the folder item where the item resides. This creates a holding relationship between the folder item (source) and the newly created item (target). Users can also create additional holding relationships to the same target from some other folder. A folder can also contain multiple items. That is, a folder item contains a collection of holding relationships, each pointing to a different (target) item. For example, a user can include a certain song in several playlists. The music file is not copied or moved to any folder location; it stays where it is and the different playlists keep track of the actual file.


WinFS allowed ISV's to define their own data types and provide their schema to the data framework. With "Information Agent", the user can set new properties for items such as appointments, birthdays etc.<blockquote>The item properties are stored in the WinFS store as part of the item itself. WinFS has a concept of "links" which are an entity type with a source item and a target item that relate items. There is also the concept of "common value" relationships which are based on item properties. Navigation of common value relationships is a value based join.
If a user deletes a holding relationship from a folder, the target item in that relationship no longer exists in that folder, but the item may still remain in "WinFS" if it is a target of a holding relationship in some other folder. If you delete an item, however, all the holding relationships from different folders that have the item as their target are removed.|The Windows File System, Microsoft User Experience Group}}
{{quote|在传统文件系统中,用户创建文件并将其存储在文件夹中。在“WinFS”中,一个项目可以存在于多个文件夹中。当用户创建项目时,他们指定此项目所在的文件夹项目。这将在文件夹项(源)和新创建的项(目标)之间创建保留关系。用户还可以从其他文件夹创建与同一目标的其他保持关系。一个文件夹还可以包含多个项目。也就是说,文件夹项包含一组保持关系,每个关系都指向不同的(目标)项。例如,用户可以在多个播放列表中包含某首歌曲。音乐文件不会被复制或移动到任何文件夹位置;它保持在原处,不同的播放列表会跟踪实际文件。


– Vijay Bangaru, WinFS Mailbox<ref name=":2" />
如果用户从文件夹中删除了保持关系,则该关系中的目标项不再存在于该文件夹中,但如果此项目是其他文件夹中的保留关系的目标,则此项可能仍保留在“WinFS”中。但是,如果删除某个项,则除去将此项作为目标的不同文件夹中的所有保留关系。|Windows 文件系统,Microsoft 用户体验组<ref name=":3" />}}
WinFS 还将允许 2 个新的备份:“存储级备份”将允许人们在硬盘驱动器损坏时取回所有文件,而“项目级备份”将允许人们恢复项目的更改。
{{quote|Because non-file-based data like contacts and e-mail messages are cross-referenced with files, users can perform more complex searches. One example could be, "Look for information about Jim from 1987 to 1999.".|The Windows File System, Microsoft User Experience Group}}
{{quote|由于非基于文件的数据(如联系人和电子邮件)与文件交叉引用,因此用户可以执行更复杂的搜索。一个例子可能是,“查找有关 Jim 从 1987 年到 1999 年的信息。”。|Windows 文件系统,Microsoft 用户体验组<ref name=":3" />}}
WinFS 通知允许使用使用 .NET 事件模型的“ItemChangedEvent”更好地处理频繁更改的数据。


In traditional file systems, users create files and store them in folders. In "WinFS", an item can exist in multiple folders. When users create an item, they specify the folder item where the item resides. This creates a holding relationship between the folder item (source) and the newly created item (target). Users can also create additional holding relationships to the same target from some other folder. A folder can also contain multiple items. That is, a folder item contains a collection of holding relationships, each pointing to a different (target) item. For example, a user can include a certain song in several playlists. The music file is not copied or moved to any folder location; it stays where it is and the different playlists keep track of the actual file.
WinFS 还应该为应用程序提供服务,而无需担心专有数据以及在 WinFS 应用程序和非 WinFS 应用程序之间共享数据的能力。


If a user deletes a holding relationship from a folder, the target item in that relationship no longer exists in that folder, but the item may still remain in "WinFS" if it is a target of a holding relationship in some other folder. If you delete an item, however, all the holding relationships from different folders that have the item as their target are removed.
最后,WinFS 将停止对“我的文档”和“我的图片”等文件夹的需求,因为 WinFS 将显示与用户的特定需求相关的文件。<ref name=":0" />
 
– The Windows File System, Microsoft User Experience Group<ref name=":3" /></blockquote>WinFS would also allow 2 new backups: "store level backup" would allow people to get all their files back if a hard drive corruption happens and "item level backup" would allow people to revert changes of an item.<blockquote>Because non-file-based data like contacts and e-mail messages are cross-referenced with files, users can perform more complex searches. One example could be, "Look for information about Jim from 1987 to 1999.".
 
– The Windows File System, Microsoft User Experience Group<ref name=":3" /></blockquote>WinFS Notifications allowed frequently changing data to be handled better with "ItemChangedEvent" that uses the .NET Event model.
 
WinFS was also supposed to provide services for apps to use without worrying about proprietary data and the ability to share data between WinFS apps and non-WinFS apps.
 
Finally, WinFS would stop the need of folders such as "My Documents" and "My Pictures" as WinFS would display those files related to a particular demand of the user.<ref name=":0" />


== User interface ==
== User interface ==