C# Класс RDFSharp.Model.RDFContainer

RDFContainer represents a generic container in the RDF model. It is made up of items, which must be all resources or all literals.
Наследование: IEnumerable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
IEnumerable IEnumerator

Открытые методы

Метод Описание
AddItem ( Object item ) : RDFContainer

Adds the given item to the container

ClearItems ( ) : void

Removes all the items from the container

RDFContainer ( RDFModelEnums containerType, RDFModelEnums itemType ) : System

Default ctor to build an empty container of the given flavor and given type

ReifyContainer ( ) : RDFGraph

Builds the reification graph of the container: Subject -> rdf:type -> [rdf:Bag|rdf:Seq|rdf:Alt] Subject -> rdf:_N -> RDFContainer.ITEM(N)

RemoveItem ( Object item ) : RDFContainer

Removes the given item from the container

Приватные методы

Метод Описание
IEnumerable ( ) : IEnumerator

Exposes an untyped enumerator on the container's items

Описание методов

AddItem() публичный Метод

Adds the given item to the container
public AddItem ( Object item ) : RDFContainer
item Object
Результат RDFContainer

ClearItems() публичный Метод

Removes all the items from the container
public ClearItems ( ) : void
Результат void

RDFContainer() публичный Метод

Default ctor to build an empty container of the given flavor and given type
public RDFContainer ( RDFModelEnums containerType, RDFModelEnums itemType ) : System
containerType RDFModelEnums
itemType RDFModelEnums
Результат System

ReifyContainer() публичный Метод

Builds the reification graph of the container: Subject -> rdf:type -> [rdf:Bag|rdf:Seq|rdf:Alt] Subject -> rdf:_N -> RDFContainer.ITEM(N)
public ReifyContainer ( ) : RDFGraph
Результат RDFGraph

RemoveItem() публичный Метод

Removes the given item from the container
public RemoveItem ( Object item ) : RDFContainer
item Object
Результат RDFContainer