In the name of heavens and earth
GOD

Dynamic Web File System


WebFS

WebFS stand for Web Dynamic File System. WebFS must give independency of directory and file structure in way that Moving or Renaming files and directories get easy and without resulting any broken link. In today's web if you change a file name you must change all files which have a links to bookmarks on that file. By WebFS you must only change the file name in file table too, the rest must need no changes and work as always did. And so is about directories. By WebFS, you must get able to move your files and directories up and down in your directory structure only by updating the directory or file records as your changes, the rest must work without need for any changes and as usual. 

The smallest object in web is some written lines with or without Title identified by a bookmark. Web texts must get independent from their physical placement in way that you can cut and paste your HTML bookmarks from this file to another as you wish by only update your changes in link table. All the links to these small titles must work as usual without need for any update. WebFS must as well prepare a good database for organizing the web in categories. WebFS must give possibility to easily create new menu item or categories and relate it to its links. Beside every Category's link must be a felt with mentioning relation percent of link to that Category.

Making WebFS need a good web database supported by  nice and easy to use programs. It is possible to make 1000 lines of code and copy codes from one file to another but in WebFS codes must as well follow order of a database system. There must not be more than one code for a procedure in entire web. Fro example bookmaking a new link must happen with only calling a function and so making link to a bookmark. These type of functions or procedures must cover all the needs and keep remaining simple. A Html file must not need no more code than an include sentence to code file and only function calls for bookmarks and links. HTML Files must remain clean of codes even special codes for this special page. 

There are as well need for programs and functions to keep the WebFS up-to-date and optimized. All these programs must gathered in on HTML file and run by clicking on their link. These programs must be beside control codes to make damages with mistakenly calls. Finally this system is out of work if it need everyday recoding here or there or manually change here or there. It will be as well a big help if there be some programs to automatically move a web from its actual state to WebFS. 

WebFS is a Web Server File System but there are sometimes that there is need that Web or part of it work without any database or Server. For example if you copy your web on a CD-ROM. Therefore, it is best if there be program to regenerate the old or actual file system. If WebFS give both Dynamic and Physical dependent possibilities it is widely usable for every web designer. A Web designer can simply by call a program change his Web state to dynamic WebFS system, then he can make his changes in his directory and file structure, organize his categories and when he is fully satisfied with his new design he can run the link maker program to relink all the web for the new structure. If WebFS get build so good, there is less need to use of database for normal links or archives after organizing the system. This as well reduce database calls and gain higher response speed. It is possible to reduce WebFS database use in this way but if you want to be beside a dynamic Category or menu structure you must keep WebFS running.. 

A good categorized web by WebFS give as well good possibilities to make a good search system. The most simplest is what link titles are mentioned in two categories. In this way it is easy to make under Categories. If you know what people search for in your web by WebFS you are able to make Category type search keys. But WebFS is not a search facility nor any search facility give you a good categorizing facilities. 

I have reached to over told after my own problems and needs in organizing www.seyed.com  Over told WebFS is not a new tool. I think there are companies that have designed their WebFS and use it. But, I did not heard about a HTML Editor or Web Builder which give this facility. When I look at big Webs like News webs or TV webs, Msn or Yahoo it look like all of them are beside such tools to keep their sites organized and running. These webs data get increments daily with large amount of data belong to different categories and mostly most as well be beside good archives and search facilities. So either these companies are beside a big department with large number of people working there to cover their needs or they use very good tools like WebFS or both. Otherwise it is impossible to keep such webs keep running as they do. 

I have moved my site to www.iPowerWeb.com which offer MySQL database and PHP. These as I heard are one of the best and free facilities to make database oriented web applications. I think MySQL and PHP give me a good opportunity to make my WebFS. But, I think ASP and MySQL or any other  database give as well the same possibility in ASP Web Servers. 

I will make my WebFS as a hobby. If any interested or can help me with any knowledge or information or knowing products that can help me or do what I need I will be happy to hear about it. As well whomever like my over told idea is welcome to make it as he want. If you have got able to make a good WebFS, I will be grateful to get beside a copy of it.

Seyed Mohammad Ali Mearaji
www.seyed.com
08 Marts 2003

 

Basic E/R Diagram of WebFS database 

Category Table  
Many CAT Many Link
CATLink Table
Many CAT Many Link
Link Table 1 Link 1 Link data Link Data Table
1 File many Link  
File Table
1 Dir many File
Dir Table

All the tables have small records and main part of their records will be indexed. Link Data is divided to two Table for optimizing the process. 

 

Tables Fields

Category Table
CATID INT P Key Unique  
CATTitle VarChar(80-255)      
CATDiscribtion VarChar(255)      

 

CATLink Table
CATID INT  Composite Key   Indexed
LinkID INT Composite Key   Indexed
Relation pct Enum 10 - 100      

 

Link Table
LinkID INT P Key Unique Indexed
LinkTitle VarChar(80-100)      
FileID        
LinkBookmark VarChar(80-100)      

 

File Table
FileID INT P Key Unique Indexed
FileName VarChar(8)      
FileExtention Enum      
DirID INT      

 

Dir Table 
DirID INT P Key Unique Indexed
DirName/full path VarChar(8)      
DirExtention Enum      
ParentDirID INT      

 

Link Data Table
LinkID INT P Key    
LinkDiscribtion VarChar(255)      

 

How WebFS database work

Link Function by LinkID open Link Table and get the Link's Record. In Link Record there are both Links Bookmark (if needed) and FileID. Link Function by FileID open File Table and get File Record. File Record give File name and Extention and ID of the Dir that file is placed in there. Link Function get the DirID and open Dir Table and by that get the Dir Name and Extention as well as ID of the Parent dir. Link Function include the name to the path variable and look again in Dir Table by DirParentID. By each look in Dir Table Link Function include the dir name to the path and go after Parent dir Until it reach the Root dir. Now Link Function has all what he need which are Bookmark, file name and path from root. Now it can call the exact file and Bookmark.

Dir Name can as well be Dir name with its full path to root. In such case process get much more optimized. It does not damage the Dynamic nature WebFS because now in dir manipulation you must update ParentDirID, in case of full path there will be no need for ParentDirID instead you must write the full path of dir. Every tree command show dir path. Less program counting reduce error percent too. But furtur reductions in database use damage Dynamic nature of WebFS, if instead of Filename you use the full path, on Dir manipulations you have to update all filename exist on that dir. This is inconsistent in database and against nature of WebFS. WebFS strengths is in indecency of Link, Filename and Dir or their Physical placement.

WebFS data amount can get reduced by parallel tables like Link Data Table. WebFS code must as well get reduced by not being so critic about the database. It is possible to include code fields to reduce table search or if sentences. These extra 1 Char fields sometimes have more benefit than counting the result by code. Speed of work is one of the most important facts in WebFS.


www.seyed.com  
Seyed Mohammad Ali Mearaji  
Email: seyed@seyed.com