C# Class RDFSharp.Model.RDFCollection

RDFCollection represents a generic collection in the RDF model. It is made up of items, which must be all resources or all literals.
Inheritance: IEnumerable
Datei anzeigen Open project: mdesalvo/RDFSharp Class Usage Examples

Private Properties

Property Type Description
IEnumerable IEnumerator

Public Methods

Method Description
AddItem ( Object item ) : RDFCollection

Adds the given item to the collection, avoiding duplicate insertions

ClearItems ( ) : void

Removes all the items from the collection

RDFCollection ( RDFModelEnums itemType ) : System

Default ctor to build an empty collection of the given type

ReifyCollection ( ) : RDFGraph

Builds the reification graph of the collection

RemoveItem ( Object item ) : RDFCollection

Removes the given item from the collection

Private Methods

Method Description
IEnumerable ( ) : IEnumerator

Exposes an untyped enumerator on the collection's items

Method Details

AddItem() public method

Adds the given item to the collection, avoiding duplicate insertions
public AddItem ( Object item ) : RDFCollection
item Object
return RDFCollection

ClearItems() public method

Removes all the items from the collection
public ClearItems ( ) : void
return void

RDFCollection() public method

Default ctor to build an empty collection of the given type
public RDFCollection ( RDFModelEnums itemType ) : System
itemType RDFModelEnums
return System

ReifyCollection() public method

Builds the reification graph of the collection
public ReifyCollection ( ) : RDFGraph
return RDFGraph

RemoveItem() public method

Removes the given item from the collection
public RemoveItem ( Object item ) : RDFCollection
item Object
return RDFCollection