44 if (this.triples is
null)
49 this.triples.
Add(Triple);
70 IEnumerator IEnumerable.GetEnumerator()
77 #region Adding triples
98 this.
Add(Subject,
new UriNode(Predicate), Object);
442 Uri Type,
string Language)
454 this.triples.
Add(Triple);
459 #region Adding Linked Lists
468 params
object[] Items)
480 params
object[] Items)
482 int i, c = Items.Length;
485 for (i = 0; i < c; i++)
488 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
498 params
string[] Items)
510 params
string[] Items)
512 int i, c = Items.Length;
515 for (i = 0; i < c; i++)
518 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
530 int i, c = Items.Length;
533 for (i = 0; i < c; i++)
536 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
546 params
byte[][] Items)
548 int i, c = Items.Length;
551 for (i = 0; i < c; i++)
554 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
564 params decimal[] Items)
566 int i, c = Items.Length;
569 for (i = 0; i < c; i++)
572 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
582 params
double[] Items)
584 int i, c = Items.Length;
587 for (i = 0; i < c; i++)
590 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
600 params
float[] Items)
602 int i, c = Items.Length;
605 for (i = 0; i < c; i++)
608 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
620 int i, c = Items.Length;
623 for (i = 0; i < c; i++)
626 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
636 params sbyte[] Items)
638 int i, c = Items.Length;
641 for (i = 0; i < c; i++)
644 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
654 params
short[] Items)
656 int i, c = Items.Length;
659 for (i = 0; i < c; i++)
662 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
674 int i, c = Items.Length;
677 for (i = 0; i < c; i++)
680 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
692 int i, c = Items.Length;
695 for (i = 0; i < c; i++)
698 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
710 int i, c = Items.Length;
713 for (i = 0; i < c; i++)
716 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
726 params ushort[] Items)
728 int i, c = Items.Length;
731 for (i = 0; i < c; i++)
734 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
746 int i, c = Items.Length;
749 for (i = 0; i < c; i++)
752 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
762 params ulong[] Items)
764 int i, c = Items.Length;
767 for (i = 0; i < c; i++)
770 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
780 params BigInteger[] Items)
782 int i, c = Items.Length;
785 for (i = 0; i < c; i++)
788 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
798 params TimeSpan[] Items)
800 int i, c = Items.Length;
803 for (i = 0; i < c; i++)
806 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Literals);
832 foreach (
object Item
in Items)
859 this.
AddLinkedList(Subject, Predicate, (IEnumerable<ISemanticElement>)Items);
869 IEnumerable<ISemanticElement> Items)
881 IEnumerable<ISemanticElement> Items)
886 this.
Add(Subject, Predicate, Container);
910 #region Adding Containers
920 params
object[] Items)
933 params
object[] Items)
935 int i, c = Items.Length;
938 for (i = 0; i < c; i++)
941 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
952 params
string[] Items)
965 params
string[] Items)
967 int i, c = Items.Length;
970 for (i = 0; i < c; i++)
973 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
986 int i, c = Items.Length;
989 for (i = 0; i < c; i++)
992 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1003 params
byte[][] Items)
1005 int i, c = Items.Length;
1008 for (i = 0; i < c; i++)
1011 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1022 params decimal[] Items)
1024 int i, c = Items.Length;
1027 for (i = 0; i < c; i++)
1030 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1041 params
double[] Items)
1043 int i, c = Items.Length;
1046 for (i = 0; i < c; i++)
1049 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1060 params
float[] Items)
1062 int i, c = Items.Length;
1065 for (i = 0; i < c; i++)
1068 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1081 int i, c = Items.Length;
1084 for (i = 0; i < c; i++)
1087 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1098 params sbyte[] Items)
1100 int i, c = Items.Length;
1103 for (i = 0; i < c; i++)
1106 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1117 params
short[] Items)
1119 int i, c = Items.Length;
1122 for (i = 0; i < c; i++)
1125 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1138 int i, c = Items.Length;
1141 for (i = 0; i < c; i++)
1144 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1155 params
long[] Items)
1157 int i, c = Items.Length;
1160 for (i = 0; i < c; i++)
1163 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1174 params
byte[] Items)
1176 int i, c = Items.Length;
1179 for (i = 0; i < c; i++)
1182 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1193 params ushort[] Items)
1195 int i, c = Items.Length;
1198 for (i = 0; i < c; i++)
1201 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1212 params uint[] Items)
1214 int i, c = Items.Length;
1217 for (i = 0; i < c; i++)
1220 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1231 params ulong[] Items)
1233 int i, c = Items.Length;
1236 for (i = 0; i < c; i++)
1239 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1250 params BigInteger[] Items)
1252 int i, c = Items.Length;
1255 for (i = 0; i < c; i++)
1258 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1269 params TimeSpan[] Items)
1271 int i, c = Items.Length;
1274 for (i = 0; i < c; i++)
1277 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Literals);
1305 foreach (
object Item
in Items)
1334 this.
AddContainer(Subject, Type, Predicate, (IEnumerable<ISemanticElement>)Items);
1345 IEnumerable<ISemanticElement> Items)
1358 IEnumerable<ISemanticElement> Items)
1363 this.
Add(Subject, Predicate, Container);
1372 #region Type Conversions
1393 ColumnNames =
new string[] {
"Subject",
"Predicate",
"Object" }
In-memory semantic model.
void Add(ISemanticElement Subject, Uri Predicate, float Object)
Adds a triple to the model.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params long[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, ISemanticElement Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params byte[][] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, ushort Object)
Adds a triple to the model.
void Add(ISemanticElement Subject, Uri Predicate, short Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, IEnumerable Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params uint[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, Uri Predicate, params ISemanticElement[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, string Object, Uri Type, string Language)
Adds a triple to the model.
void Add(ISemanticElement Subject, Uri Predicate, decimal Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params sbyte[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, Uri Predicate, params object[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, string Object, string Language)
Adds a triple to the model.
IEnumerator< ISemanticTriple > GetEnumerator()
Gets an enumerator of available triples.
void AddContainer(ISemanticElement Subject, Uri Type, Uri Predicate, IEnumerable Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, ISemanticElement Predicate, string Object, string Language)
Adds a triple to the model.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params uint[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, Uri Predicate, IEnumerable Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, ISemanticElement Predicate, object Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, Uri Predicate, params string[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, Uri Predicate, IEnumerable< ISemanticElement > Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params TimeSpan[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params sbyte[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, uint Object)
Adds a triple to the model.
ChunkedList< ISemanticTriple > triples
Triples in model.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params ulong[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, Uri Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params ulong[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params int[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, byte[] Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params string[] Items)
Adds a linked list of items to the graph.
IElement ToVector()
Converts the object to a vector.
void Add(ISemanticElement Subject, Uri Predicate, string Object)
Adds a triple to the model.
void Add(ISemanticElement Subject, ISemanticElement Predicate, string Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, Uri Predicate, params ISemanticElement[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, Uri Predicate, IEnumerable< ISemanticElement > Items)
Adds a linked list of items to the graph.
virtual void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, IEnumerable< ISemanticElement > Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, string Object, Uri Type)
Adds a triple to the model.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params ushort[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, ulong Object)
Adds a triple to the model.
void Add(ISemanticElement Subject, Uri Predicate, int Object)
Adds a triple to the model.
void Add(ISemanticElement Subject, ISemanticElement Predicate, string Object, Uri Type, string Language)
Adds a triple to the model.
void Add(ISemanticElement Subject, Uri Predicate, long Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, Uri Predicate, params object[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, ISemanticElement Predicate, string Object, Uri Type)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params short[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params BigInteger[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, object Object)
Adds a triple to the model.
void Add(ISemanticElement Subject, ISemanticElement Predicate, ISemanticElement Object)
Adds a triple to the model.
void Add(ISemanticElement Subject, Uri Predicate, bool Object)
Adds a triple to the model.
virtual void Add(ISemanticTriple Triple)
Adds a triple to the model.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params short[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, DateTime Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params Duration[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params byte[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params decimal[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, byte Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params long[] Items)
Adds a linked list of items to the graph.
virtual void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, IEnumerable< ISemanticElement > Items)
Adds a linked list of items to the graph.
InMemorySemanticModel(IEnumerable< ISemanticTriple > Triples)
In-memory semantic model.
void Add(ISemanticElement Subject, Uri Predicate, BigInteger Object)
Adds a triple to the model.
void AddLinkedList(ISemanticElement Subject, Uri Predicate, params string[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, sbyte Object)
Adds a triple to the model.
IMatrix ToMatrix()
Converts the object to a matrix.
void Add(ISemanticElement Subject, Uri Predicate, TimeSpan Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params ushort[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params Duration[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params decimal[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params string[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params float[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params byte[][] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params double[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params object[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params TimeSpan[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params bool[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params int[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params float[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params double[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, Duration Object)
Adds a triple to the model.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params bool[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params BigInteger[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params byte[] Items)
Adds a linked list of items to the graph.
InMemorySemanticModel()
In-memory semantic model.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params ISemanticElement[] Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, IEnumerable Items)
Adds a linked list of items to the graph.
void AddLinkedList(ISemanticElement Subject, ISemanticElement Predicate, params object[] Items)
Adds a linked list of items to the graph.
void AddContainer(ISemanticElement Subject, Uri Type, ISemanticElement Predicate, params ISemanticElement[] Items)
Adds a linked list of items to the graph.
void Add(ISemanticElement Subject, Uri Predicate, double Object)
Adds a triple to the model.
Represents a byte[] literal.
Represents a bool literal.
Represents a custom literal.
Represents a dateTime literal.
Represents a decimal literal.
Represents a double literal.
Represents a Duration literal.
Represents a 16-bit integer literal.
Represents a 32-bit integer literal.
Represents a 64-bit integer literal.
Represents a 8-bit integer literal.
Represents an integer literal of undefined size.
Represents a float literal.
Represents a string literal.
Represents a time literal.
Represents a 16-bit unsigned integer literal.
Represents a 32-bit unsigned integer literal.
Represents a 64-bit unsigned integer literal.
Represents a 8-bit unsigned integer literal.
Set of semantic elements.
static ISemanticLiteral EncapsulateLiteral(object Value)
Encapsulates an object as a semantic literal.
Implements a semantic triple.
static readonly Uri nil
URI representing rdf:nil
static readonly Uri type
URI representing rdf:type
static readonly Uri first
URI representing rdf:first
static readonly Uri rest
URI representing rdf:rest
static Uri ListItem(int Index)
URI representing an item in a list.
static readonly Uri List
URI representing rdf:List
A chunked list is a linked list of chunks of objects of type T .
IEnumerator< T > GetEnumerator()
Returns an enumerator for the collection.
void Add(T Item)
Adds an item to the collection.
static IElement Encapsulate(Array Elements, bool CanEncapsulateAsMatrix, ScriptNode Node)
Encapsulates the elements of a vector.
Interface for semantic nodes.
Interface for semantic models.
Interface for semantic triples.
ISemanticElement Object
Object element
ISemanticElement Predicate
Predicate element
ISemanticElement Subject
Subject element
Basic interface for all types of elements.
Basic interface for matrices.
Interface for objects that can be converted into matrices.
Interface for objects that can be converted into matrices.
Represents a duration value, as defined by the xsd:duration data type: http://www....