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 | |
return | 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";
}
}