C# Class 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.
Inheritance: IEnumerable
Mostrar archivo Open project: mdesalvo/RDFSharp Class Usage Examples

Private Properties

Property Type Description
IEnumerable IEnumerator

Public Methods

Method Description
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

Private Methods

Method Description
IEnumerable ( ) : IEnumerator

Exposes an untyped enumerator on the container's items

Method Details

AddItem() public method

Adds the given item to the container
public AddItem ( Object item ) : RDFContainer
item Object
return RDFContainer

ClearItems() public method

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

RDFContainer() public method

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
return System

ReifyContainer() public method

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
return RDFGraph

RemoveItem() public method

Removes the given item from the container
public RemoveItem ( Object item ) : RDFContainer
item Object
return RDFContainer