WinFS: Difference between revisions

From BetaArchive Wiki
enwikipedia>Soumyasch
m (→‎Overview: desc)
enwikipedia>Soumyasch
Line 31: Line 31:
But the concept was not scrapped.<ref Name="PaulT"/> It just morphed into WinFS. WinFS was initially planned for inclusion in [[Windows Vista]],<ref>{{cite web | url = http://news.zdnet.co.uk/software/0,1000000121,39191853,00.htm | title = Will Longhorn be worth the pain? | publisher = ZDNet | author = Cath Everett | accessdate = 2007-06-30}}</ref> and build 4051 of Windows Vista, then called by its codename "Longhorn", given to developers at the Microsoft [[Professional Developers Conference]] in 2003, included WinFS, but it suffered from significant performance issues.<ref Name="PaulT"/> In August 2004, Microsoft announced that WinFS would not ship with Windows Vista; it would instead be available as a downloadable update after Vista's release.<ref Name="PaulT"/>
But the concept was not scrapped.<ref Name="PaulT"/> It just morphed into WinFS. WinFS was initially planned for inclusion in [[Windows Vista]],<ref>{{cite web | url = http://news.zdnet.co.uk/software/0,1000000121,39191853,00.htm | title = Will Longhorn be worth the pain? | publisher = ZDNet | author = Cath Everett | accessdate = 2007-06-30}}</ref> and build 4051 of Windows Vista, then called by its codename "Longhorn", given to developers at the Microsoft [[Professional Developers Conference]] in 2003, included WinFS, but it suffered from significant performance issues.<ref Name="PaulT"/> In August 2004, Microsoft announced that WinFS would not ship with Windows Vista; it would instead be available as a downloadable update after Vista's release.<ref Name="PaulT"/>


On [[August 29]] [[2005]],<ref Name="PaulT"/> Microsoft quietly made Beta 1 of WinFS available to MSDN subscribers. It worked on [[Windows XP]], and required the [[.NET Framework]] to run. The WinFS API was included in the ''System.Data'' namespace.<ref Name="PaulT"/> The beta was refreshed on [[December 1]] [[2005]] to be compatible with version 2.0 of the .NET Framework.<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2005/12/01/499042.aspx | title = WinFS Beta 1 Refresh now available | author = Vijay Bangaru | publisher = WinFS Team Blog | accessdate = 2007-06-30}}</ref> WinFS Beta 2 was planned for some time later in 2006,<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2006/05/22/604075.aspx | title = Showing off the next release of WinFS at Tech Ed 2006, in Boston! Join us! | author = Shan Sinha | publisher = WinFS Team Blog | accesdate = 2007-06-30}}</ref> and was supposed to include integration with [[Windows Desktop Search]], so that search results include results from both regular files and WinFS stores, as well as allow access of WinFS data using [[ADO.NET]].<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2006/02/24/538925.aspx | title = My tryst with Destiny, err… Integrated Storage | publisher = WinFS Team Blog | author = Sanjay Anand | accessdate = 2007-06-30}}</ref>  
On [[August 29]] [[2005]],<ref Name="PaulT"/> Microsoft quietly made Beta 1 of WinFS available to MSDN subscribers. It worked on [[Windows XP]], and required the [[.NET Framework]] to run. The WinFS API was included in the ''System.Storage'' namespace.<ref Name="ForDev">{{cite web | url = http://www.ntfs.com/winfs_developers.htm | title = WinFS for Developers | publisher = NTFS.com | accessdate = 2007-07-04}}</ref> The beta was refreshed on [[December 1]] [[2005]] to be compatible with version 2.0 of the .NET Framework.<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2005/12/01/499042.aspx | title = WinFS Beta 1 Refresh now available | author = Vijay Bangaru | publisher = WinFS Team Blog | accessdate = 2007-06-30}}</ref> WinFS Beta 2 was planned for some time later in 2006,<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2006/05/22/604075.aspx | title = Showing off the next release of WinFS at Tech Ed 2006, in Boston! Join us! | author = Shan Sinha | publisher = WinFS Team Blog | accesdate = 2007-06-30}}</ref> and was supposed to include integration with [[Windows Desktop Search]], so that search results include results from both regular files and WinFS stores, as well as allow access of WinFS data using [[ADO.NET]].<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2006/02/24/538925.aspx | title = My tryst with Destiny, err… Integrated Storage | publisher = WinFS Team Blog | author = Sanjay Anand | accessdate = 2007-06-30}}</ref>  


However, on [[June 23]] [[2006]], the WinFS team at Microsoft announced that WinFS would no longer be delivered as a separate product,<ref name="canned" /> and some components would be brought under the umbrella of other technologies - like the [[ADO.NET#Entity Framework|ADO.NET Entity Framework]] as well as support for unstructured data and adminless mode of operation of into [[Microsoft SQL Server#SQL Server 2008|SQL Server 2008]], then codenamed ''Katmai''.<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2006/06/26/648075.aspx | title = Update to the Update | author = Quentin Clark | publisher = WinFS Team Blog | accessdate = 2007-06-30}}</ref>
However, on [[June 23]] [[2006]], the WinFS team at Microsoft announced that WinFS would no longer be delivered as a separate product,<ref name="canned" /> and some components would be brought under the umbrella of other technologies - like the [[ADO.NET#Entity Framework|ADO.NET Entity Framework]] as well as support for unstructured data and adminless mode of operation of into [[Microsoft SQL Server#SQL Server 2008|SQL Server 2008]], then codenamed ''Katmai''.<ref>{{cite web | url = http://blogs.msdn.com/winfs/archive/2006/06/26/648075.aspx | title = Update to the Update | author = Quentin Clark | publisher = WinFS Team Blog | accessdate = 2007-06-30}}</ref>

Revision as of 11:19, 4 July 2007

Template:Distinguish

WinFS (short for Windows Future Storage)[1] is the code name for a data storage and management system based on relational databases, developed by Microsoft and first demonstrated in 2003 as an advanced storage subsystem for the Microsoft Windows operating system, being designed for persistence and management of structured, semi-structured as well as unstructured data. WinFS includes a relational database for storage of information, and allows any type of information to be stored in it, provided there is a well defined schema for the type. Individual data items could then related together by Relationships, which are either inferred by the system, based on certain attributes, or explicitly stated by the user. As the data has a well defined schema, any application can reuse the data; and using the relationships, related data can be effectively organized as well as retrieved. Because the system knows the structure and intent of the information, it can be used to make complex queries that enable advanced searching through the data and aggregating various data items by exploiting the relationships between them.

When introduced at the 2003 Professional Developers Conference, WinFS was billed as one of the pillars of the "Longhorn" wave of technologies, and would ship as part of the next version of Windows. It was subsequently decided that WinFS would ship after the release of Windows Vista, but those plans were shelved in June 2006, with some of its component technologies being integrated into upcoming releases of ADO.NET and Microsoft SQL Server.[2] While it was then assumed by observers that WinFS was done as a project, in November 2006 Steve Ballmer announced that WinFS was still in development, though it was not clear if the technology was planned for Vista's successor, Windows "Vienna", or if it would be made available as a separate product.[3]

Motivation

Many filesystems found on common operating systems, including the NTFS filesystem which is used in modern versions of Microsoft Windows, store files and other objects only as a stream of bytes, and have little or no information about the data stored in the files. Such file systems also provide only a single way of organizing the files, namely via directories and file names.[4][5]

Because a file system has no knowledge about the data it stores,[4] applications tend to use their own, often proprietary, file formats. This hampers sharing of data between multiple applications. It becomes difficult to create an application which processes information from multiple file types, because the programmers have to understand the structure and semantics of all the files.[6] Using common file formats is a workaround to this problem but not a universal solution; there is no guarantee that all applications will use the format. Data with standardized schema, such as XML documents and relational data fare better as they have a standardized structure and runtime requirements.[7]

Also, a traditional file system can retrieve and search data based only on the filename, because the only knowledge it has about the data is the name of the files that store the data.[6] A better solution is to tag files with attributes that describe them. Attributes are metadata about the files such as the type of file (such as document, picture, music, creator, etc).[4] This allows files to be searched for by their attributes, in ways not possible using a folder hierarchy, such as finding "pictures which have person X". The attributes can be recognizable by either the file system natively, or via some extension.[4] Desktop search applications take this concept a step further. They extract data, including attributes, from files and index it. To extract the data, they use a filter for each file format. This allows for searching based on both the file's attributes and the data in it.[4]

However, this still does not help in managing related data, as disparate items do not have any relationships defined. For example, it is impossible to search for "the phone numbers of all persons who live in Acapulco and each have more than 100 appearances in my photo collection and with whom I have had e-mail within last month". Such a search encompasses needs to have a data model which has the both the semantics as well as relationships of data defined.[4][5] WinFS aims to provide such a data model and the runtime infrastructure that can be used to store the data as well as the relationships between data items according to the data model, doing so at a satisfactory level of performance.

Overview

WinFS natively recognizes different type of data, such as picture, e-mail, document, audio, video, calendar, contact, among others; rather than just bytestreams as with file systems. Data stored and managed by the system are instances of the data type recognozed by the WinFS runtime. The data is structured by means of properties. For example, an instance of a resumé type will surface the data by exposing certain properties like Name, Educational Qualification, Experience, among others. Each of the properties may be of simple types like strings, integers, or dates or complex types like contacts.[6][8] Different data types expose different properties. Besides that, WinFS also allows different data instances to be related together, such as a document and a contact can be related by a authored by relationship.[8][5] Relationships are also exposed as properties; for example if a document is related with a contact with an Created By relationship, then the document will have a Created By property. When it is accessed, the relationship is traversed and the related data returned.[8] By following the relations, all related data can be reached.[5]

File:WinFSemail.png
An e-mail application can use the relationships to create dynamic filters to create different views of emails, as in the mockup screenshot

WinFS promotes sharing of data between applications by making the data types accessible to all applications, along with their schemas.[6] So any application, when it wants to use a WinFS type, by using the schema can find out the structure of the data and utilize the information. So, an application has access to all data on the system, even though the developer did not have to write parsers to recognize the different data format. It can also use the relationships and related data to create dynamic filters to present the information the application deals with, in different ways. The WinFS API further abstracts the task of accessing data. All WinFS types are exposed as .NET objects with the properties of the object directly mapping to the properties of the data type.[4] Also, by letting different applications which deal with the same data share the same WinFS data instance rather than storing the same data in different files, the hassles of synchronizing the different stores when the data changes is removed.[9] Thus WinFS help reduce redundancies.[7] [4]

Access to all the data in the system allows complex searches for data to be performed across all the data items managed by WinFS. In the example used above ("the phone numbers of all persons who live in Acapulco and each have more than 100 appearances in my photo collection and with whom I have had e-mail within last month"), WinFS can traverse the subject relationship of all the photos to find the contact items. Similarly, it can find filter all emails in last month and access the communicated with relation to reach the contacts. The common contacts can then be figured out from the two sets of results and their phone number retrieved by accessing the suitable property of the contact items.

WinFS, in addition to fully schematized data (like XML and relational data), supports semi-structured (like images, which has an unstructured bitstream plus structured metadata) as well as unstructured (like files) as well. It stores the unstructured components directly as files while storing the structured metadata in the structured store.[8] WinFS internally uses a relational database to manage the data. But, it does not limit the data to belong to belong to any particular data model, like relational or hierarchical, but can be of any well-defined schema. The WinFS runtime masp the schema to a the relational modality,[4] by defining the tables it will store the types in and the primary keys and foreign keys that would be required to represent the relationships. WinFS includes mappings for object and XML schemas by default; mappings for other schemas needs to be specified. All relationship traversals are performed as joins on these tables. WinFS also automatically creates indexes on these tables, to facilitate fast access to the information.[8] Indexes significantly speed up joins, and thus traversing relationships to retrieve related data is performed very fast. Indexes are also used during searching of information; searching and querying use the indexes so that the operations complete quickly, much like desktop search systems.

Development

The development of WinFS is an extension to a feature which was initially planned in the early 1990s. Dubbed Object File System, it was supposed to be included as part of Cairo. OFS was supposed to have powerful data aggregation features.[10] But the Cairo project was shelved, and with it OFS. However, later during the development of COM, a storage system, called Storage+, based on then-upcoming SQL Server 8.0, was planned, which was slated to offer similar aggregation features.[10] This, too, never materialized, and a similar technology, Relational File System (RFS), was conceived to be launched with SQL Server 2000. [10]However, SQL Server 2000 ended up being a minor upgrade to SQL Server 7.0 and RFS was not implemented.

But the concept was not scrapped.[10] It just morphed into WinFS. WinFS was initially planned for inclusion in Windows Vista,[11] and build 4051 of Windows Vista, then called by its codename "Longhorn", given to developers at the Microsoft Professional Developers Conference in 2003, included WinFS, but it suffered from significant performance issues.[10] In August 2004, Microsoft announced that WinFS would not ship with Windows Vista; it would instead be available as a downloadable update after Vista's release.[10]

On August 29 2005,[10] Microsoft quietly made Beta 1 of WinFS available to MSDN subscribers. It worked on Windows XP, and required the .NET Framework to run. The WinFS API was included in the System.Storage namespace.[12] The beta was refreshed on December 1 2005 to be compatible with version 2.0 of the .NET Framework.[13] WinFS Beta 2 was planned for some time later in 2006,[14] and was supposed to include integration with Windows Desktop Search, so that search results include results from both regular files and WinFS stores, as well as allow access of WinFS data using ADO.NET.[15]

However, on June 23 2006, the WinFS team at Microsoft announced that WinFS would no longer be delivered as a separate product,[2] and some components would be brought under the umbrella of other technologies - like the ADO.NET Entity Framework as well as support for unstructured data and adminless mode of operation of into SQL Server 2008, then codenamed Katmai.[16]

With that announcement, most analysts assumed that the WinFS project was being killed off. But in November 2006, Steve Ballmer said in an interview that WinFS is being actively developed but integration into the Windows codebase will come only after the technology has fully incubated.Cite error: Closing </ref> missing for <ref> tag

Data storage

Architecture

WinFS is not a physical file system; rather, it provides schematized data modeling capabilities on top of the NTFS file system. It still uses NTFS to store its data in physical files.[10] WinFS uses a relational engine, which is derived from SQL Server 2005,[17] to provide the data relations mechanism. WinFS stores are simply SQL Server database (.MDF) files with the FILESTREAM attribute set.[18] These files are stored in access-restricted folder named "System Volume Information" placed into the volume root, in folders under the folder "WinFS" with names of GUIDs of these stores.[18]

At the bottom of the WinFS stack lies WinFS Core which interacts with the filesystem and provides file access and addressing capabilities.[6] The relational engine leverages the WinFS core services to present a structured store and other services such as locking which the WinFS runtime uses to implement the functionality. The WinFS runtime expose Services such as Synchronization and Rules which can be used to synchronize WinFS stores or perform certain actions on the occurence of certain events.[6]

WinFS allows programmatic access to its features, via a set of .NET application programming interfaces, that enables applications to define custom made data types, define relationships among data, store and retrieve information, and allow advanced searches.[4][6] The applications can then aggregate the data and present the aggregated data to the user.

Data Store

WinFS stores data in relational sotres, which are exposed as virtual locations called stores.[10] A WinFS store is a common repository where any application can store data along with its metadata, relationships and schema. WinFS runtime can apply certain relationships itself; for example, if the values of the subject property of a picture and the name property of a contact are same, then WinFS can relate the contact with the picture.[19] Relations can also be specified by other applications or the user.[20]

WinFS provides a unified storage but stops short of defining the format that is to be stored in the data stores. Instead it supports data to be written in application specific formats. But applications must provide a schema that defines how the file format should be interpreted.[4] For example, a schema could be added to allow WinFS to understand how to read and thus be able to search and analyze, say, a PDF file. By using the schema, any application can read data from any other application, and also allows different applications to write in each other’s format by sharing the schema.[20]

Multiple WinFS stores can be created on a single machine.[20] This allows different classes of data to be kept segregated, for example, official documents and personal documents can be kept in different stores. WinFS, by default, provides only one store, named "DefaultStore".[10] WinFS stores are exposed as shell objects, akin to Virtual folders, which dynamically generates a list of all items present in the store and presents them in a folder view. The shell object also allows searching information in the datastore.[10]

A data unit that has to be stored in a WinFS store is called a WinFS Item.[20][4] A WinFS item, along with the core data item, also contains information on how the data item is related with other data. This Relationship is stored in terms of logical links. Links specify which other data items the current item is related with. Put in other words, links specify the relationship of the data with other data items. Links are physically stored using a link identifier, which specifies the name and intent of the relationship, such as type of or consists of.[4] The link identifier is stored as an attribute of the data item. All the objects which have the same link id are considered to be related.[4] An XML schema, defining the structure of the data items that will be stored in WinFS, must be supplied to the WinFS runtime beforehand.[4] In Beta 1 of WinFS, the schema assembly had to be added to the GAC before it could be used.

Data model

WinFS models data using the data items, along with its relationships, extensions and rules governing its usage.[6] WinFS needs to understand the type and structure of the data items, so that the information stored in the data item can be made available to any application that requests it. This is done by the use of schemas. For every type of data item that is to be stored in WinFS, a corresponding schema needs to be provided which will define the type, structure and associations of the data. These schemas are defined using XML.[4]

Predefined WinFS schemas include schemas for documents, e-mail, appointments, tasks, media, audio, video, and also includes system schemas that include configuration, programs, and other system-related data.[6] Custom schemas can be defined on a per-application basis, in situations where an application wants to store its data in WinFS, but not share the structure of that data with other applications, or they can be made available across the system.[6]

Type system

File:WinFS1.svg
WinFS Type Hierarchy

The most important difference between a file system and WinFS is that WinFS knows the type of each data item that it stores. And the type specifies the properties of the data item. The WinFS type system is closely associated with the .NET framework’s concept of classes and inheritance. A new type can be created by extending and nesting any predefined types.[4]

WinFS provides four predefined base types – Items, Relationships, ScalarTypes and NestedTypes.[4] An Item is the fundamental data object, which can be stored, and a Relationship is the relation or link between two data items. Since all WinFS items must have a type, the type of item stored defines its properties. The properties of an Item may be a ScalarType, which defines the smallest unit of information a property can have, or a NestedType, which is a collection of more than one ScalarTypes and/or NestedTypes. All WinFS types are made available as .NET CLR classes.[20]

Any object represented as a data unit, such as contact, image, video, document etc, can be stored in a WinFS store as a specialization of the Item type.[20] By default, WinFS provides Item types for Files, Contact, Documents, Pictures, Audio, Video, Calendar, and Messages. The File Item can store any generic data, which is stored in file systems as files. But unless an advanced schema is provided for the file, by defining it to be a specialized Item, WinFS will not be able to access its data. Such a file Item can only support being related to other Items.[4]

File:WinFS2.svg
Defining a new Type

A developer can extend any of these types, or the base type Item, to provide a type for his custom data. The data contained in an Item is defined in terms of properties, or fields which hold the actual data. For example, an Item Contact may have a field Name which is a ScalarType, and one field Address, a NestedType, which is further composed of two ScalarTypes. To define this type, the base class Item is extended and the necessary fields are added to the class.[4] A NestedType field can be defined as another class which contains the two ScalarType fields. Once the type is defined, a schema has to be defined, which denotes the primitive type of each field, for example, the Name field is a String, the Address field is a custom defined Address class, both the fields of which are Strings. Other primitive types that WinFS supports are Integer, Byte, Decimal, Float, Double, Boolean and DateTime, among others.[4] The schema will also define which fields are mandatory and which are optional.[21] The Contact Item defined in this way will be used to store information regarding the Contact, by populating the properties field and storing it. Only those fields marked as mandatory needs to be filled up during initial save.[20] Other fields may be populated later by the user, or not populated at all. If more properties fields, such as "last conversed date", needs to be added, this type can be simply extended to accommodate them. Item types for other data can be defined similarly.

File:WinFS3.svg
Relationships

WinFS creates tables for all defined Items.[21] All the fields defined for the Item form the columns of the table and all instances of the Item are stored as rows in the table for the respective Items. Whenever some field in the table refers to data in some other table, it is considered a relationship. The schema of the relationship specifies which tables are involved and what the kind and name of the relationshp is. The WinFS runtime manages the relationshp schemas.[20] All Items are exposed as .NET CLR objects, with uniform interface providing access to the data stored in the fields. Thus any application can retrieve object of any Item type and can use the data in the object, without being bothered about the physical structure the data was stored in.[4]

Relationships

A datum can be related to one more item, giving rise to a one-to-one relationship, or with more than one items, resulting in a one-to-many relationship. [22] The related items, in turn, may be related to other data items as well, resulting in a network of relationships, which is called a many-to-many relationship. Creating a relationship between two Items create another field in the data of the Items concerned which refer the row in the other Item’s table where the related object is stored.[20]

File:WinFS4.svg
WinFS Relationships

In WinFS, a Relationship is an instance of the base type Relationship, which is extended to signify a specialization of a relation. A Relationship is a mapping between two items, a Source and a Target. The source has an Outgoing Relationship, whereas the target gets an Incoming Relationship.[21] WinFS provides three types of primitive relationships – Holding Relationship, Reference Relationship and Embedding Relationship.[22] Any custom relationship between two data types are instances of these relationship types.

  • Holding Relationships specify the lifetime (which defines how long the relationship is valid) of the Target Item. For example, the Relationship between a folder and a file, and between an Employee and his Salary record, is a Holding Relationship – the latter is to be removed when the former is removed. A Target Item can be a part of more than one Holding Relationships. In such a case, it is to be removed when all the Source Items are removed.
  • Reference Relationships provide linkage between two Items, but do not have any lifetime associated, i.e., each Item will continue to be stored even without the other.
  • Embedding Relationships give order to the two Items which are linked by the Relationship, such as the Relationship between a Parent Item and a Child Item.

Relationships between two Items can either be set programmatically by the application creating the data, or the user can use the WinFS Item Browser to manually relate the Items.[21] A WinFS item browser can also graphically display the items and how they are related, to enable the user to know how their data are organized.[20]

Rules

WinFS includes Rules,[23] which are executed when certain condition is met. WinFS rules work on data and data relationships. For example, a rule can be created which states that whenever an Item is created which contains field "Name" and if the value of that field is some particular name, a relationship should be created which relates the Item with some other Item. WinFS rules can also access any external application. For example, a rule can be built which launches a Notify application whenever a mail is received from a particular contact.[23] WinFS rules can also be used to add new properties fields to existing data Items.[23]

WinFS rules are also exposed as .NET CLR objects. As such any rule can be used for any purpose. A rule can even be extended by inheriting from it to form a new rule which consists of the condition and action of the parent rule plus something more.[23]

Access control

Even though all data is shared, everything is not equally accessible. WinFS uses Windows authentication system to provide two data protection mechanisms.[20] First, there is share-level security that controls access to your WinFS share. Second, there is item level security that supports NT compatible security descriptors. The process accessing the item must have enough privileges to access it. Also in Vista there is the concept of "integrity level" for an application. A higher integrity data cannot be accessed by a lower integrity process.

Data retrieval

The primary mode of data retrieval from a WinFS store is searching for the required data and enumerating through the set of Items that has been returned.[6] WinFS also supports retrieval of the entire collection of Items that is stored in the WinFS store or returning a subset of it which matches the criteria that has been queried for.[21]

WinFS makes all data available as CLR objects.[24] So the data retrieved, which is encapsulated as an object, has intrinsic awareness of itself. By using the abstraction provided by use of objects, it presents a uniform interface to hide its physical layout and still allow applications to retrieve the data in an application-independent format, or to get information about the data such as its author, type, and relations.[21]

For each Item that has been returned, WinFS can also return a set of Relations which specify the Relations the Item is involved in. WinFS can return all the relations of the Item or can return Relations that conform to a queried criterion. For each pair of Item and Relation, WinFS can retrieve the Item which forms the other end of the Relation. Thus, by traversing the Relations of an Item, all the Items that are related with the Item can be retrieved. [21]

Search

The WinFS API provides a class called the ItemContext class, which is used to search and retrieve WinFS Items.[21] The criterion for the search is specified using an OPath query string,[25] which is derived from SQL and XPath, and optionally the type of Item, such as a Picture, being searched for. All matching WinFS entries can either be searched one by one, or a collection of all matches can be retrieved.[20] The advantage of using the former approach is that the search can be stopped when a required Item is found. The latter approach is useful when it is necessary to display all the matches, as in a Virtual folder or similar system.

Any WinFS Item has two properties, the IncomingRelationships and the OutgoingRelationships properties, which return a collection of the Incoming and Outgoing Relationships of the Item.[21] Through either Incoming Relationships or Outgoing, the other Item can be accessed. For example, when a Picture is retrieved, which has a PersonInPicture field and has Outgoing Relation to a Contact, the relationship can be used to retrieve the address of the contact:[21] <source lang="csharp">

picture.ContactRelation.Contact.address

</source> An OPath search query can specify a single search condition, such as "title = Something'", or a compound condition such as "title = 'Title 1' || title = 'Title 2' && author = 'Someone'". It even supports wildcard conditions, such as "title LIKE 'any*'". OPath queries can also be used with relations to find related data.[25] For example, for the query "find addresses of all people whose pictures I have and whose name starts with 'A'", contacts whose names start with A are selected and the resultd is joined with the data in the pictures table on the subject of the picture and name of a contact[21] The resulting set of contacts is what required. The query engine calculates the most efficient order of the operations. For each contact in that set, the address is retrieved, as in the query: <source lang="csharp">

Query = "PersonInPicture = 'A*' && Contact.Name = 'A*' && ContactRelation.Name = PersonInPicture"

</source> Different relations specify a different set of data. So when a search is made which encompasses multiple relations, the different sets of data are retrieved individually and a union of the different sets is computed. The resulting set will contain only those data items which correspond to all the relations.

Internally the data stored is structured according to the relationships, by using different techniques such as sorting, hashing and indexing.[21] The resulting structure optimizes searching and accessing the data items through the relationships. So searching of data is very fast, nearly instantaneous.

Notifications

WinFS also includes better support for handling data that changes frequently. Using WinFS Notifications, applications choose to be notified of changes to selected data Items. WinFS will raise an ItemChangedEvent, using the .NET Event model, when a subscribed-to Item changes, and the event will be published to the applications.[21]

Data sharing

WinFS allows easy sharing of data between applications, and among multiple WinFS stores, which may reside on different computers, by copying to and from them.[26] A WinFS item can also be copied to a non-WinFS file system, but unless that data item is put back into the WinFS store, it will not support the advanced services provided by WinFS.

The WinFS API also provides some support for sharing with non-WinFS applications. WinFS exposes a shell object to access WinFS stores. This object maps WinFS items to a virtual folder hierarchy, and can be accessed by any application.[10] WinFS data can also be manually shared using network shares, by sharing the legacy shell object.[26] Non-WinFS file formats can be stored in WinFS stores, using the File Item, provided by WinFS. Importers can be written, to convert specific file formats to WinFS Item types.[26]

In addition, WinFS provides services to automatically synchronize items in two or more WinFS stores, subject to some predefined condition, such as "share only photos" or "share photos which have an associated contact X".[26] The stores may be on different computers. Synchronization is done in a peer-to-peer fashion; there is no central authority. A synchronization can be either manual or automatic or scheduled. During synchronization, WinFS finds the new and modified Items, and updates accordingly. If two or more changes conflict, WinFS can either resort to automatic resolution based on predefined rules, or defer the synchronization for manual resolution. WinFS also updates the schemas, if required.[26]

OPath

WinFS includes an object query language, named OPath that was designed to specify the criteria for selecting and filtering data from a WinFS Store. OPath allows a query to be specified using Item properties, embedded Items, extensions as well as Relationships.[27] OPath works through a set of sequential operations:[28]

  • Bind - Bind the query to an ItemContext object, which scopes the set of objects to search against.[28] The set of objects can be the entire contents of a WinFS Store or a subset of it.
  • Find - The ItemContext object creates a StorageSearcher object.[27] The StorageSearcher object takes the type of the document to be retrieved as a type parameter, and an OPath query that specifies the criteria for filtering the results.[27] The StorageSearcher document can then be iterated over to examine and use the retrieved documents. To search for a single document, an ItemSearcher object can be used.[28]
  • Use - The retrieved data can be used after the Searcher objects yield the results. Changes to the retrieved results need to be explicitly saved. Or the Searcher objects may be used to create different Views[28] of the data, which are further grouping, classification, and projection of the retrieved data.
  • Close - After using, connection to the WinFS store needs to be closed.[28]

The OPath query is a query language that somewhat resembles SQL in terms of the operators that it provides. For example,

Name LIKE a% && Name NOT EQUAL an%

is a valid OPath query which selects all objects that has a property called Name and whose values start with a, excluding those start with an. OPath queries can use C# like &&, ||, =, != for specifying the boolean and relational criteria, as well as their English-like equivalent like Equal, Not Equal. It also supports SQL-like operators — LIKE for wildcard searches along with specific operators like Exists which tests for a presence of a certain property.

Application Support

Shell namespace

WinFS Beta 1 includes a shell namespace extension, which surfaces WinFS stores as top level objects in My Computer view.[10] Files can be copied into and out of the stores, as well as applications can be directly used to save there. Even folders such as My Documents can be redirected to the stores.[10] WinFS uses Importer plug-ins to analyze the files as they were being imported to the store and create proper WinFS schemas and objects, and when taking the objects out, re-pack them into files.[26] If importers for certain files are not installed, they are stored as generic File types.

Microsoft Rave

Microsoft Rave is an application that shipped with WinFS Beta 1. It allows synchronization of two or more WinFS stores. It supports synchronization in full mesh mode as well as the central hub topology. While synchronizing, Microsoft Rave will determine the changes made to each store since the last sync, and update accordingly. When applying the changes, it also detects if there is any conflict, i.e., the same data has been changed on both stores since the last synchronization. It will either log the conflicting data for later resolution or have it resolved immediately. Microsoft Rave uses peer-to-peer technology to communicate and transfer data.

StoreSpy

File:Storespy.jpg
WinFS included StoreSpy, an WinFS Item browser that could be used to browse structured data instances with their properties and relationships.

With WinFS Beta 1, Microsoft included an unsupported application called StoreSpy,[29] which allowed one to browse WinFS stores by presenting a hierarchical view of WinFS Items. It automatically generated virtual folders based on access permissions, date and other metadata, and presented them in a hierarchical tree view, akin to what traditional folders are presented in. The application generated tabs for different Item types. StoreSpy allowed viewing Items, Relationships, MultiSet, Nested Elements, Extensions[30] and other types in the store along with its full metadata. It also presented a search interface to perform manual searches, and save them as virtual folders. The application also presented a graphical view of WinFS Rules. However, it did not allow editing of Items or their properties, though it was slated for inclusion in a future release.[31] But the WinFS project was cut back before it could materialize.

Type Browser

WinFS also includes another application, named WinFS Type Browser, which can be used to browse the WinFS types, as well as visualize the hierarchical relationship between WinFS types.[32] A WinFS type, both built-in types as well as custom schemas, can be visualized along with all the properties and methods that it supports. It also shows the types that it derives from as well as other types that extend the type schema. However, while it was included with WinFS, it was released as an unsupported tool.[32]

OPather

WinFS Beta 1 also includes an unsupported application, named OPather.[33] It preents a graphical interface for writing Opath queries. It can be used by selecting target object type and specifying the parameters of the query. It also includes Intellisense-like parameter completion feature. It can then be used to perform visualization tasks like binding results of a query to a DataGrid control, create views of the data in WinFS itself, or just extract the query string.

Project "Orange"

Microsoft launched a project to build a data visualization application for WinFS. It was codenamed "Project Orange" and was supposedly built using Windows Presentation Foundation.[34] It was supposed to provide exploration of Items stored in WinFS stores, and data relationships were supposed to be a prominent part of the navigation model. It was supposed to let people allow organization of the WinFS stores graphically as well - productizing many of the concepts shown in the IWish Concept Video. However, since the WinFS project went dark, the status of this project is unknown.

References

Template:Reflist

See also

External links


Template:MSNav

ar:WinFS cs:WinFS da:WinFS de:WinFS es:WinFS fr:WinFS it:WinFS nl:WinFS ja:WinFS no:WinFS pl:WinFS pt:WinFS ru:WinFS fi:WinFS sv:WinFS

  1. Leaked Windows hints at changes to come. Retrieved on 2007-05-04.
  2. 2.0 2.1 Quentin Clark (June 23 2006). WinFS Update. What's in Store. MSDN Blogs. Retrieved on 2006-06-23.
  3. WinFS Still In The Works Despite Missing Vista. Retrieved on 2007-06-30.
  4. 4.00 4.01 4.02 4.03 4.04 4.05 4.06 4.07 4.08 4.09 4.10 4.11 4.12 4.13 4.14 4.15 4.16 4.17 4.18 4.19 4.20 4.21 Shawn Wildermuth. A Developer's Perspective on WinFS: Part 1. MSDN. Retrieved on 2007-06-30.
  5. 5.0 5.1 5.2 5.3 Vijay Bangaru. Unify, Organize, Explore, and Innovate. Oh my! (Part 2). WinFS Team Blog. Retrieved on 2007-06-30.
  6. 6.00 6.01 6.02 6.03 6.04 6.05 6.06 6.07 6.08 6.09 6.10 Sean Grimaldi. The WinFS Files: Divide et Impera. MSDN. Retrieved on 2007-06-30.
  7. 7.0 7.1 Thomas Rizzo. WinFS 101: Introducing the New Windows File System. MSDN. Retrieved on 2007-06-30.
  8. 8.0 8.1 8.2 8.3 8.4 WinFS on The .NET Show. Retrieved on 2007-07-04.
  9. Vijay Bangaru. Unify, Organize, Explore, and Innovate. Oh my! (Part 1). WinFS Team Blog. Retrieved on 2007-06-30.
  10. 10.00 10.01 10.02 10.03 10.04 10.05 10.06 10.07 10.08 10.09 10.10 10.11 10.12 10.13 Paul Thurrott. Windows Storage Foundation (WinFS) Preview. Retrieved on 2007-06-30.
  11. Cath Everett. Will Longhorn be worth the pain?. ZDNet. Retrieved on 2007-06-30.
  12. WinFS for Developers. NTFS.com. Retrieved on 2007-07-04.
  13. Vijay Bangaru. WinFS Beta 1 Refresh now available. WinFS Team Blog. Retrieved on 2007-06-30.
  14. Shan Sinha. Showing off the next release of WinFS at Tech Ed 2006, in Boston! Join us!. WinFS Team Blog.
  15. Sanjay Anand. My tryst with Destiny, err… Integrated Storage. WinFS Team Blog. Retrieved on 2007-06-30.
  16. Quentin Clark. Update to the Update. WinFS Team Blog. Retrieved on 2007-06-30.
  17. Nate Mook. MS Explains WinFS, Releases Beta 1. BetaNews. Retrieved on 2007-07-02.
  18. 18.0 18.1 Shishir Mehrotra (September 2005). "WinFS" Future Directions: An Overview. Professional Developers Conference 2005 presentations. Microsoft. Retrieved on 2006-05-22.(Currently offline, mirror).
  19. Vijay Bangaru. WinFS Mailbox. WinFS Team Blog. Retrieved on 2007-06-30.
  20. 20.00 20.01 20.02 20.03 20.04 20.05 20.06 20.07 20.08 20.09 20.10 20.11 Richard Grimes. Revolutionary File Storage System Lets Users Search and Manage Files Based on Content. MSDN Magazine. Retrieved on 2007-06-30.
  21. 21.00 21.01 21.02 21.03 21.04 21.05 21.06 21.07 21.08 21.09 21.10 21.11 21.12 Shawn Wildermuth (July 2004). A Developer's Perspective on WinFS: Part 2. MSDN. Microsoft. Retrieved on 2007-06-30.
  22. 22.0 22.1 Shawn Wildermuth. A Developer's Perspective on WinFS: Part 1. MSDN. Retrieved on 2007-06-30.
  23. 23.0 23.1 23.2 23.3 Kati Dimitrova. About WinFS Rules. WinFS Team Blog. Retrieved on 2007-06-30.
  24. Vijay Bangaru. Unify, Organize, Explore, and Innovate. Oh my! (Part 4). WinFS Team Blog. Retrieved on 2007-06-30.
  25. 25.0 25.1 Thomas Rizzo, Sean Grimaldi (October 18 2004). An Introduction to "WinFS" OPath. MSDN. Microsoft. Retrieved on 2007-06-30.
  26. 26.0 26.1 26.2 26.3 26.4 26.5 Neil Padgett. Getting Data Into WinFS with WinFS Synchronization. WinFS Team Blog. Retrieved on 2007-06-30.
  27. 27.0 27.1 27.2 Innovative Data Programming Platform. Retrieved on 2007-03-15.
  28. 28.0 28.1 28.2 28.3 28.4 An Introduction to "WinFS" OPath. Retrieved on 2007-03-15.
  29. Wei-Meng Lee. WinFS -StoreSpy. Retrieved on 2007-06-30.
  30. Stefano Demiliani WeBlog:WinFS StoreSpy v0.8 for the WinHEC 2004 Longhorn Build. Retrieved on 2007-03-12.
  31. StoreSpy should become StoreEditor. Retrieved on 2007-06-30.
  32. 32.0 32.1 Sanjay Nagamangalam. Visualizing WinFS Types. WinFS Team Blog. Retrieved on 2007-07-03.
  33. Luiz Miranda. Using OPather To Help Write Queries. WinFS Team Blog. Retrieved on 2007-06-30.
  34. Shishir Mehrotra. The killer app for getting users organized. WinFS Team Blog. Retrieved on 2007-06-30.