mergedServices.SPARQLQueryBuilder.toPattern C# (CSharp) Méthode

toPattern() private méthode

this function puts the query terms subject, predicate, object
private toPattern ( string s, string p, string o, bool toObject ) : string
s string the subject
p string the predicate
o string the object
toObject bool
Résultat string
        private string toPattern(string s, string p, string o, bool toObject)
        {
            if (toObject)
            {
                return s + ' ' + p + ' ' + o + " . \n";
            }
            else
            {
                return o + ' ' + p + ' ' + s + " . \n";
            }
        }