C# 클래스 FluidDB.FluidNamespace

FluidDB namespaces provide a simple hierarchical way of organizing names - names of tags, and names of other (sub-)namespaces. When a new user is created within FluidDB, a top-level namespace is created for them. For example, if Tim chooses the FluidDB user name tim, a top-level tim namespace is created for him. FluidDB user names are case insensitive. Tim may then add a tag called rating within that namespace with the intention of tagging objects with his ratings. With its name qualified by his namespace, Tim’s rating tag can be unambiguously referred to as tim/rating. By using namespace and tag names, with components separated by /, we can avoid any conflict or confusion with other FluidDB rating tags, e.g., sara/rating. Namespaces are hierarchical. Tim can later create a new namespace, for example books, within his tim namespace, and in that namespace create an i-own tag. That tag would have a full name of tim/books/i-own. Tim could use it to tag objects in FluidDB that correspond to books he owns. Because objects in FluidDB are not owned, another user, Sara, would be free to add her own information to the book objects Tim had tagged. Thus an object might have both tim/books/i-own and sara/rating tags on it, making it possible to ask FluidDB to find books with a high Sara rating but which Tim does not own.
파일 보기 프로젝트 열기: ntoll/FluidDB.NET 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateNamespace FluidNamespace
FluidNamespace System

공개 메소드들

메소드 설명
GetNamespace ( FluidConnector connection, string name, bool returnDescription, bool returnNamespaces, bool returnTags ) : FluidNamespace

Gets information for specified namespace The FluidConnector instance to make calls to The namespace to query, can be empty or null for top-level namespace Whether to return a description of the namespace Whether to return all namespaces within this namespace Whether or not to return all tags for this namespace

비공개 메소드들

메소드 설명
CreateNamespace ( FluidConnector c, string namesp, string description ) : FluidNamespace

Creates a new namespace in the current users namespace

FluidNamespace ( FluidConnector c, string name ) : System

메소드 상세

GetNamespace() 공개 정적인 메소드

Gets information for specified namespace The FluidConnector instance to make calls to The namespace to query, can be empty or null for top-level namespace Whether to return a description of the namespace Whether to return all namespaces within this namespace Whether or not to return all tags for this namespace
public static GetNamespace ( FluidConnector connection, string name, bool returnDescription, bool returnNamespaces, bool returnTags ) : FluidNamespace
connection FluidConnector
name string
returnDescription bool
returnNamespaces bool
returnTags bool
리턴 FluidNamespace