Exemple #1
0
 public void CreateArcs(Unitoken subject, Dictionary <string, PredicateToggle> selectedP)
 {
     foreach (KeyValuePair <string, PredicateToggle> x in selectedP)
     {
         string value    = x.Value.myPredicate.value;
         string property = x.Value.myPredicate.property;
         ArcFactory.Instance.AddNewArc(subject, value, StructConstructor.CreateUnitokenStruct(property));
     }
 }
Exemple #2
0
    public void CreateArcs(Dictionary <string, PredicateToggle> selectedP)
    {
        Unitoken subject = TokenFactory.Instance.AddNewToken(StructConstructor.CreateUnitokenStruct(selectedSearchElement));

        foreach (KeyValuePair <string, PredicateToggle> x in selectedP)
        {
            string value    = x.Value.myCategory.URI;
            string property = x.Value.myCategory.Label;
            ArcFactory.Instance.AddNewArc(subject, value, StructConstructor.CreateUnitokenStruct(property));
        }
    }