Ejemplo n.º 1
0
 public Relation(List<KeyValuePair<string,string>> relationsWithLabels)
 {
     entities = new List<RelationEntity>();
     foreach (KeyValuePair<string,string> s in relationsWithLabels)
     {
         entities.Add(new RelationEntity( s.Key , s.Value, null));
     }
     for (int i = 0; i < relationsWithLabels.Count ; i++)
     {
         if (i < entities.Count - 1)
             this.entities[i].next = this.entities[i + 1];
     }
     source = entities[0];
     destination = entities[entities.Count - 1];
 }
Ejemplo n.º 2
0
        public Relation(List<string> relations)
        {
            entities = new List<RelationEntity>();

            foreach (string s in relations)
            {
                entities.Add(new RelationEntity(s,null,null));
            }
            for (int i = 0; i < relations.Count; i++)
            {
                if(i < entities.Count-1 )
                this.entities[i].next = this.entities[i+1];
            }
            source = entities[0];
            destination = entities[entities.Count - 1];
        }
Ejemplo n.º 3
0
 public Relation(List <KeyValuePair <string, string> > relationsWithLabels)
 {
     entities = new List <RelationEntity>();
     foreach (KeyValuePair <string, string> s in relationsWithLabels)
     {
         entities.Add(new RelationEntity(s.Key, s.Value, null));
     }
     for (int i = 0; i < relationsWithLabels.Count; i++)
     {
         if (i < entities.Count - 1)
         {
             this.entities[i].next = this.entities[i + 1];
         }
     }
     source      = entities[0];
     destination = entities[entities.Count - 1];
 }
Ejemplo n.º 4
0
        public Relation(List <string> relations)
        {
            entities = new List <RelationEntity>();

            foreach (string s in relations)
            {
                entities.Add(new RelationEntity(s, null, null));
            }
            for (int i = 0; i < relations.Count; i++)
            {
                if (i < entities.Count - 1)
                {
                    this.entities[i].next = this.entities[i + 1];
                }
            }
            source      = entities[0];
            destination = entities[entities.Count - 1];
        }
Ejemplo n.º 5
0
 public Relation()
 {
     this.source      = new RelationEntity();
     this.destination = new RelationEntity();
     this.entities    = new List <RelationEntity>();
 }
Ejemplo n.º 6
0
 public Relation()
 {
     this.source = new RelationEntity();
     this.destination = new RelationEntity();
     this.entities = new List<RelationEntity>();
 }
Ejemplo n.º 7
0
 public RelationEntity(string uri, string label, RelationEntity next)
 {
     this.uri   = uri;
     this.label = label;
     this.next  = next;
 }
Ejemplo n.º 8
0
 public RelationEntity()
 {
     next = new RelationEntity();
 }
Ejemplo n.º 9
0
 public RelationEntity(string uri, string label, RelationEntity next)
 {
     this.uri = uri;
     this.label = label;
     this.next = next;
 }
Ejemplo n.º 10
0
 public RelationEntity()
 {
     next = new RelationEntity();
 }